I am using jwplayer to play videos on my site. I want to implement this scenario :
I am trying to accomplish it by using js. The following is used to play the video:
jwplayer('container').play();
and this is used to stop the jwplayer:
jwplayer('container').stop();
The functions are working in chrome . But in firefox when I try to play the video in second time the jwplayer is in BUFFERING state. Also revert back to the placeholder image.
also shows an error sometime in console
Error: Permission denied to access property 'toString'
This is a sample jsfiddle demo
http://jsfiddle.net/35bGW/
Please help me to find a solution for this.
Thanks
To fix JW player not working in Chrome, open settings after clicking on the three dot icon at the right, then choose Advanced. Fetch for Reset settings by scrolling down, It will ask for confirmation. Click on YES. Then restart your Chrome after this process gets complete.
The JW player doesn't show the browser menu. Right-click elsewhere on the page and choose the "Block an ad on this page" option. Then adjust the slider to the right until the JW player is no longer visible. Done!
As outlined in this Medium blog post, since most of the harder-to-block autoplay videos use Brightcove or JW Player, simply click the Privacy Badger icon and block anything detected with “jw” or “brightcove” in its name. That's regardless if it's seen by Privacy Badger as harmless (i.e. a green-colored setting) or not.
YouTube now defaults to HTML5 mode as primary in 6.9.
There are some issues with setting up the player again with YouTube in HTML5 mode.
I have reported this as an issue to the player team here.
A work around, for now, is in your code, under this line:
stretching: 'exactfit',
Add:
primary: 'flash',
This should work around the issue for the time being.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With