Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

playOrPause method not working #366

Open
moshOntong-IT opened this issue Apr 10, 2023 · 1 comment
Open

playOrPause method not working #366

moshOntong-IT opened this issue Apr 10, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@moshOntong-IT
Copy link

Describe the bug
I am using the playOrPause method, when I press the button, it actually play the audio or video but when I try to play it again, it does not work anymore

Minimal reproducible code

          IconButton(
            onPressed: () {
              player.playOrPause();
            },
            icon: AnimatedIcon(
                icon: AnimatedIcons.pause_play, progress: animation),
          ),

Flutter logs

[√] Flutter (Channel stable, 3.7.7, on Microsoft Windows [Version 10.0.22621.1413], locale en-PH)
    • Flutter version 3.7.7 on channel stable at C:\flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Edge (web)        • edge    • web-javascript • Microsoft Edge 112.0.1722.34

[√] HTTP Host Availability
    • All required HTTP hosts are available

• No issues found!

Operating system:

  • Platform: Windows.
  • OS version: Windows 11 .
@moshOntong-IT moshOntong-IT added the bug Something isn't working label Apr 10, 2023
@moshOntong-IT
Copy link
Author

Also the pause method, So I am actually load a media file from network, so while the media is playing, and sudden to pause. But the pause method is not working

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant