Quantcast
Channel: support.jwplayer.com :: Streaming
Viewing all articles
Browse latest Browse all 2800

JWPlayer setup() is it mandatory to have it before listening to player events ?

$
0
0
Hi , I am embedding jwplayer in my html page . The jwplayer.on() listeners is behaving differently in google chrome and MAC Safari . In google chrome the jwplayer().on("playlistItem", function() listener if called before jwplayer().setup() works fine . if the same html page loaded on safari is throwing TypeError: jwplayer().on is not a function. (In 'jwplayer().on', 'jwplayer().on' is undefined) when i added jwplayer().setup() just before jwplayer().on("playlistItem", function() it worked in both chrome and safari . The question is , is it mandatory to have jwplayer().setup() before the listening to the player events ? If so why it is working in google chrome and not in safari ? Thanks

Viewing all articles
Browse latest Browse all 2800

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>