playOrPause method not working
moshOntong-IT opened this issue · 1 comments
moshOntong-IT commented
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 commented
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