angular-media-player
angular-media-player copied to clipboard
Problem in safari this.$domEl.load()
I get this error when trying to use the player in safari browser:
'undefined' is not a function (evaluating 'this.$domEl.play()') scripts/360c0ed9.vendor.js:8
It looks Iike you're minifying or otherwise processing the file before its included. Are you?
If so, have you tried it without minification?
I am facing same issue. 'undefined' is not a function (evaluating 'this.$domEl.load()') http://localhost:9000/bower_components/angular-media-player/dist/angular-media-player.js:54 Offending code is this:
load: function (mediaElement, autoplay) {
// method overloading
if (typeof mediaElement === 'boolean') {
autoplay = mediaElement;
mediaElement = null;
} else if (typeof mediaElement === 'object') {
this.$clearSourceList();
this.$addSourceList(mediaElement);
}
this.$domEl.load();
this.ended = undefined;
if (autoplay) {
this.$element.one('canplay', this.play.bind(this));
}
},
Is there any solution?