I am using jwplayer to play videos on my site. I want to implement this scenario:
- A small image of a finger nail represents a video.
- when the user clicks on the thumb image, the jvplayer div shows and starts playing, and the thumb image is hidden.
- An external close button allows you to close the video. Then the thumb image will appear again.
I am trying to accomplish this using js. To play the video, use the following:
jwplayer('container').play();
and this is used to stop jwplayer:
jwplayer('container').stop();
Functions work in chrome. But in firefox , when I try to play the video a second time, jwplayer is in the BUFFERING state. Also go back to the placeholder image.
console error is also displayed
Error: Permission denied to access the 'toString' property
This is a jsfiddle demo example
http://jsfiddle.net/35bGW/
Please help me find a solution for this.
thanks
source share