Video mit Play/Pause-Button

Das HTML5-Video-Element:

[video id="myVideo" loop="" muted="muted"][source src="../myVideo.mp4" ][button onclick="vid_play_pause()" type="button"]Play/Pause[/button]Video tag is not supported by your browser [/video]

____________________________________________________________________________________________




____________________________________________________________________________________________
Das Javascript-Button-Element:
[script] function vid_play_pause() { var myVideo = document.getElementById("myVideo"); if (myVideo.paused) { myVideo.play(); } else { myVideo.pause(); } } [/script]


Anmerkung: Ersetze [..] mit <...>