videojs-youtube
videojs-youtube copied to clipboard
error with ima from google
i have code in the videojs initializer, but it seems when youtube video is played the code not go in function
`videojs("principalVideo", {responsive:true}, function(){ myPlayer = this; // Player (this) is initialized and ready. console.log('video is initialized');
....code
//on pay click
myPlayer.on("play", function(){
......code
});
});`
i have to execute some code when video is youtube video where i can do it please ?