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

Error on player ready state. #651

Closed
FDiskas opened this issue Nov 11, 2015 · 6 comments
Closed

Error on player ready state. #651

FDiskas opened this issue Nov 11, 2015 · 6 comments

Comments

@FDiskas
Copy link

FDiskas commented Nov 11, 2015

http://jsfiddle.net/frzkqja8/

@FDiskas
Copy link
Author

FDiskas commented Nov 11, 2015

If video is ended the folowing events are triggered:

PLAYER_PAUSE
PLAYER_ENDED
PLAYER_TIMEUPDATE

Strange order. The video ends and how its could be paused? Ok - video ended but how it can still update time?
Here is some example: Please open the console by pressing F12 https://jsfiddle.net/gt5tkdhb/

@leandromoreira
Copy link
Member

@FDiskas
Copy link
Author

FDiskas commented Nov 11, 2015

Please take a look at first link to.

@leandromoreira
Copy link
Member

Hey @FDiskas I just try to run it on cdn.clappr.io and it was working okay, can we close this?

var playerElement = document.getElementById("player-wrapper");

var player = new Clappr.Player({
  source: 'http://www.streambox.fr/playlists/x36xhzz/x36xhzz.m3u8',
  baseUrl: '/latest',
  poster: 'http://clappr.io/poster.png',
  mute: true,
  height: 360,
  width: 640
});
player.on(Clappr.PLAYER_ERROR, (e) => console.log(e))
player.attachTo(playerElement);

@FDiskas
Copy link
Author

FDiskas commented Dec 2, 2015

No we can't close this.

$(function () {
    var player = new Clappr.Player({
        source: 'http://www.streambox.fr/playlists/x36xhzz/x36xhzz.m3u8',
        parentId: "#player-wrapper",
        //autoPlay: true
    });
    player.on(Clappr.Events.PLAYER_ERROR, function(a) { alert('PLAYER_ERROR!', a.error.code) });
});

Try this code. Same error. And there is nothing special with this code, but error event is frown.

@leandromoreira
Copy link
Member

@FDiskas cool, I think I know what it's this.
https://github.com/clappr/clappr/blob/master/src/playbacks/html5_video/html5_video.js#L48

this.el.src = options.src

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

No branches or pull requests

2 participants