Setting `[Player].playing = false` does not pause playback
See original GitHub issueThe docs say on the playing
property:
Set to true or false to pause or play the media
However, setting to true or false on the react-player
instance doesn’t change the player state. Is this supposed to mean “Set to true to autoplay. Set to false to start in a paused state”? If so, this is confusingly worded, along with other similar options. The wording seems to imply that this is how you control the player instance after it has been created.
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Setting [Player].playing = false does not pause playback #441
The docs say on the playing property: Set to true or false to pause or play the media However, setting to true or...
Read more >React-player How to handle Play Pause state with autoplay
Now the problem is when the user clicks on the play button, state doesn't change because it is already true, the solution is...
Read more >Only change from Play to Pause if the audio link is working
Start by removing the playPauseIcon(true) from the then() handler, and uncomment your player.onloadstart thing. next page →.
Read more >MediaPlayer - Android Developers
Playback can be paused and stopped, and the current playback position can be ... If the looping mode was set to false ,...
Read more >Troubleshooting YouTube Music - Google Support
Try these steps: Make sure your device's operating system is updated. · Try these steps: Pause playback on one device if you're trying...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@cookpete Ohhh derp, of course, I didn’t think about tying it to state to get React to re-render. I was confused about how to think about the problem because there are other cross-platform methods like
seekTo()
, but no method forplay()
orpause()
.@cookpete thanks for that snippet… also, this package is amazing… solid work!