Code Monkey home page Code Monkey logo

Comments (6)

eddywm avatar eddywm commented on July 24, 2024

Hi,
I'm not sure you need to await and also you don't absolutely have to specify whether the file is local or not.

Maybe you should look at the code samples again and the example project.

from audioplayer.

DevilWarrior avatar DevilWarrior commented on July 24, 2024

The example does use await. And there's a method for _playLocal hence why I used it.

  Future play() async {
    await audioPlayer.play(kUrl);
    setState(() {
      playerState = PlayerState.playing;
    });
  }

  Future _playLocal() async {
    await audioPlayer.play(localFilePath, isLocal: true);
    setState(() => playerState = PlayerState.playing);
  }

from audioplayer.

ThinkDigitalSoftware avatar ThinkDigitalSoftware commented on July 24, 2024

This is still an issue. Do you know what it indicates, @eddywm?

from audioplayer.

DevilWarrior avatar DevilWarrior commented on July 24, 2024

I believe the issue got solved but I can't quite remember now how. Will close this unless you think otherwise.

from audioplayer.

ThinkDigitalSoftware avatar ThinkDigitalSoftware commented on July 24, 2024

It's still an issue for me. I can't diagnose it because everything in our code seems to be just fine

from audioplayer.

DevilWarrior avatar DevilWarrior commented on July 24, 2024

Sorry, I just realized your previous comment was sent a separate user, re-opening in case someone else want to comment on this.

from audioplayer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.