Copy link to clipboard
Copied
I wanted to pause video while it plays.
For example after video started playing it has to be stopped at 21st second.
After it stopped, some button will show up.
If I click on the button, It will start playing from 30th second etc.
PS: I want to use it on the web.
Copy link to clipboard
Copied
and how are you playing the video? in a video component?
if yes, what's the component's instance name?
Copy link to clipboard
Copied
Yes, instance name is mainVideoId
If I click on the video, it will start playing.
So it should be paused or stopped at 21 seconds.
$('#dom_overlay_container').on('click', '#MainVideoId', function() {
$('#MainVideoId')[0].play();
}.bind(_this));
Copy link to clipboard
Copied
$('#dom_overlay_container').on('click', '#MainVideoId', function() {
$('#MainVideoId')[0].play();
setTimeout(stopVideoF,21000);
}.bind(_this));
function stopVideoF(){
}$('#MainVideoId')[0].stop();