javascript - Why resuming media doesn't work after a playlist is loaded in JW Player 6.9? -
i'm trying push new item jw player playlist update player on-the-fly, using javascript api.
i can using:
var newitem = {}; // media properties... var playlist = jwplayer().getplaylist(); playlist.push(newitem); jwplayer().load(playlist);
and works! new item succesfully added. however, jw player pauses when load new playlist.
there's event fired right when new playlist loaded player (after .load()
method), .onplaylist()
. thought resume playing @ moment... however, .play()
doesn't work here.
jwplayer().onplaylist(function() { jwplayer().play(); });
i have tried calling .seek()
instead of play, seems work people, nothing happened.
why wrong? there way resuming media after loading new playlist?
edit:
i see people achieved this, think using earlier versions of jw player since solution isn't working me.
edit 2:
here's fiddle: http://jsfiddle.net/4fbm13fz/
Comments
Post a Comment