flowplayer - Can't disable autoplay after calling .load -
i have page full of video links when clicked, opens modal window flowplayer inside it. load video modal calling .load function can't stop video autoplaying.
<div class="modal hide fade"> <div class="flowplayer"> <video preload="none"> <!-- these dummy videos replaced .load function --> <source type="video/mp4" src="/assets/video/dummy.mp4"> <source type="video/webm" src="/assets/video/dummy.webm"> </video> </div> </div> //script, called when user clicks video link var api = flowplayer(); api.load([ { mp4: //path video clicked, stored in data- in div }, { webm: //path video clicked, stored in data- in div } ]);
videos load , play fine, can't figure out how stop autoplay.
my approach display splash screen, when modal displayed. when user clicks on splash screen need load video.
you bind load event , update source(s) there.
api.bind("load", function(e, api) { // thing });
Comments
Post a Comment