Uncaught Typeerror: This.pluginapi.setsrc Is Not A Function
I'm trying to change the source of a mediaelementplayer but I just can't. I get this error: 'Uncaught TypeError: this.pluginApi.setSrc is not a function' I tried all sort of sol
Solution 1:
for those searching for a solution to this probleme here is my solution at least it worked for me: so it was all about removing the old player than renitializing the attributes
var src = $(this).attr("href");
vartype="video/youtube";
player.pause();
var vid = $('#player1').first();
if (vid.attr('type') != type) {
vid.get(0).player.remove();
$("#youtube_player").attr('type', type).attr('src', src);
player = newMediaElementPlayer('#player1', {success: function(media) {
//media.play();
}});
thanks for all the help i got here^^
Post a Comment for "Uncaught Typeerror: This.pluginapi.setsrc Is Not A Function"