souporserious / react-media-player

React audio and video player.
https://souporserious.github.io/react-media-player/
ISC License
470 stars 100 forks source link

DOMException: The play() request was interrupted by a call to pause(). #78

Closed debotos closed 4 years ago

debotos commented 4 years ago

How can I solve this error - Uncaught (in promise) DOMException: The play() request was interrupted by a call to pause(). https://goo.gl/LdLk22

Sometimes because of it, the browser hangs.

debotos commented 4 years ago

Okay, I found the error. I was unintentionally calling media.playPause() function twice, that's why I was getting that exception. After removing one function call it's working without any exception.