You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have YouTube videos on a page that I remove and re-initialize if they rotate the screen so I can show them at a different size.
I initialize the videos and store them in an array so I can remove them later
_loadedMediaElements.push(new MediaElementPlayer('#' + _mediaElementsIDList[mediaCount], media.mediaOptions));
And later call
_loadedMediaElements[mediaCount].remove();
This works fine when using the flash player, but when it's called on native HTML5 it throws the error
"TypeError: 'null' is not an object (evaluating 'this.pluginElement.id')"
on mediaelement-and-player.min.js:38:530
Which is the mejs.Utility.removeSwf(this.pluginElement.id); line
The loaded object of course doesn't have a pluginElement object within it.
The text was updated successfully, but these errors were encountered:
I have YouTube videos on a page that I remove and re-initialize if they rotate the screen so I can show them at a different size.
I initialize the videos and store them in an array so I can remove them later
_loadedMediaElements.push(new MediaElementPlayer('#' + _mediaElementsIDList[mediaCount], media.mediaOptions));
And later call
_loadedMediaElements[mediaCount].remove();
This works fine when using the flash player, but when it's called on native HTML5 it throws the error
"TypeError: 'null' is not an object (evaluating 'this.pluginElement.id')"
on mediaelement-and-player.min.js:38:530
Which is the mejs.Utility.removeSwf(this.pluginElement.id); line
The loaded object of course doesn't have a pluginElement object within it.
The text was updated successfully, but these errors were encountered: