whats the problem that the video does not stop when i click the button.
hi,
i would like to ask two questions.
i want a button on a video to pause the video.
i cant get it to work, not with the regular snippet nor with this code.
could anyone help me why this does not work.
...in the long run i want some buttons on the video that stop the running video and start a new one, a seperate one for every button.
i would be very thankful if someone could give me advice.
thanks a lot!
tomes
free video from here: https://videos.pexels.com/video-files/2960875/2960875-hd_1920_1080_30fps.mp4
......btw. cant attach .fla files....any idea why ?
/* Mouse Click Event
Clicking on the specified symbol instance executes a function in which you can add your own custom code.
Instructions:
1. Add your custom code on a new line after the line that says "// Start your custom code" below.
The code will execute when the symbol instance is clicked.
*/
this.video01btn.addEventListener("click", fl_MouseClickHandler.bind(this));
function fl_MouseClickHandler()
{
// Start your custom code
// This example code displays the words "Mouse clicked" in the Output panel.
alert("Mouse clicked");
// End your custom code
}
/* Pause a Video
Use this code snippet to pause the selected video.
*/
{
$("#video01")[0].pause();
}
