
pause video on the specific time
Hi ,
I'm trying to make a video stop on 3:46 of the video. (226 seconds)
I was able to do it when I set the number low as 10, 20, 30. But when I set the number to 226.
It's not working. Actually it stopped working when I set it to 36. Here is the code
jwplayer("video-holder").setup({
file: "/sites/as3/media/video/<?php echo $Action->file;?>",
width: 808.5,
height: 480,
autostart: true,
mute: false,
stretching: "exactfit",
image: "/sites/as3/media/images/<?php echo $Action->thumb;?>",
events: {
onTime: function(event) {
if (file_name == "MOD_5_Making_Suggestions_V2-1.mp4"){
if (event.position == "36") {
this.seek(36).pause();
}else if(event.position == "37") {
this.seek(37).play();
}
}
},
onComplete: function(e){
this.load({
file: "/sites/as3/media/video/<?php echo $Action->file;?>",
image: "/sites/as3/media/images/<?php echo $Action->thumb;?>"
});
oncomplete:$('fieldset.video-submit').show();
}
}
});
Any idea what it could be