Forum Discussion
belltown
10 years agoRoku Guru
"Transparent" wrote:"renojim" wrote:
You appear to have multiple variables referring to whether or not the video is paused:m.paused
m.player.paused
this.paused
You really need to clean this up. I doubt there's any reason to have anything other than a variable just called paused.
-JT
Hi Jim,
That code is actually from CustomVideoPlayer, supplied by Roku https://sourceforge.net/projects/rokusdkexamples/files/
The Custom Video Player SDK example you linked to works just fine (if you use a working stream url). So if your code doesn't handle play/pause, you must have changed something that introduced the error. I suggest you look at what you've changed, perhaps even go back to the original code, substitute your own Stream url, make sure the StreamFormat is correct, e.g. "ism", and it should work.
I also noticed that the code you posted is not the same code as that in the Custom Video Player example. For instance, there's no use of m.player.paused in the SDK example.