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

need to play then pause after page load and continue playing on "play"

$
0
0
I have a page that when loaded, grabs a video from the archive or stream and it should pause to show at least the first frame. Then when the "play" button is clicked, it should continue playing. I found the following snippet on a jwplayer forum. It does the pause after start part, but when "play" is clicked, it pauses again. This is placed directly after the jwplayer().setup script in the functions.js for the site. jwplayer().onPlay(function(){ this.pause(); this.setMute(false); }); I have tried different ways to execute the above code one time only, but it appears to be executing each time the "play" button is clicked. I'm sure I'm missing something quite simple... any ideas? Tom

Viewing all articles
Browse latest Browse all 2800

Trending Articles



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