I'm trying to load by AJAX a video working with VideoJS but I can't manage how to make it work after the AJAX load. I've been reading a lot about this but I couldn't find any solution.
I show you an example. You can check this link with a working video. And here I'm trying to load the previous link through an AJAX load.
This is the code I run after the AJAX call. You can check it also in the links I just entered.
_V_($('.video-container-large').find('.video-js')).ready(function(){
var myPlayer = this;
myPlayer.destroy();
myPlayer.play();
});
return false;
} );
Do you know why VideoJS is not initialized fine? I tried a lot of alternatives without any success, so any help will be much appreciated!
Thank you.