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

Cannot mute volume before video plays.

$
0
0
I want to show the first frame of the video as start image without playing the video. I try to do this by muting the volume, call play(), and pause video after 500ms. But often I can hear audio for a second or so before video is paused. Seems like mute and volume functions do not work. My code looks like this: jwplayer("video_jw_@vcf.ID").setup({ file: '@vcf.FullFilename', bufferlength: 20, width: 640, height: 360, primary: 'html5', example_option: false, controlbar: 'bottom', autostart: false }); jwplayer("video_jw_@vcf.ID").onReady(function () { $this = this; jwplayer("video_jw_@vcf.ID").setVolume(1); jwplayer("video_jw_@vcf.ID").setMute(true); jwplayer("video_jw_@vcf.ID").play(); }); jwplayer("video_jw_@vcf.ID").onPlay(function () { $this = this; var pauseMe = window.setTimeout(function () { // pause video $this.pause(); }, 500); });

Viewing all articles
Browse latest Browse all 2800

Trending Articles



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