I made this in jquery and it works fine,
but I need to make it in pure javascript.
The following code doesn't works, I don't understand why...
I'm not expert in javascript...
function playVideo() {
var popo = document.getElementsByTagName("object");
popo.forEach(function(index){
var obj = this.get(0);
obj.playVideo();
});
}
Update: I will try to post my workin jquery version
function pauseVideo() {
$("object").each(function(index){
obj = $(this).get(0);
obj.pauseVideo();
});
}