Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem in safari this.$domEl.load() #42

Open
tlambeir opened this issue Jul 8, 2014 · 2 comments
Open

Problem in safari this.$domEl.load() #42

tlambeir opened this issue Jul 8, 2014 · 2 comments

Comments

@tlambeir
Copy link

tlambeir commented Jul 8, 2014

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

@secretfader
Copy link

It looks Iike you're minifying or otherwise processing the file before its included. Are you?

If so, have you tried it without minification?

@rgjamkhedkar
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants