Skip to content
This repository has been archived by the owner on Jan 12, 2019. It is now read-only.

fix for loaded in player error state #60

Closed
wants to merge 1 commit into from
Closed

Conversation

tomjohnson916
Copy link
Contributor

No description provided.

@tomjohnson916
Copy link
Contributor Author

@gkatsev @BCjwhisenant please review when convenient.

@gkatsev
Copy link
Member

gkatsev commented May 14, 2014

LGTM.
Just wanted to note that this depends on the new error handling of vjs that was added in videojs/video.js#1197

@tomjohnson916
Copy link
Contributor Author

Would adding a if player.error().message condition make this backwards compatible? Because pre error api, that would be false and the rest would be skipped, correct?

// loaded in error state fix
if (player.error() && player.error().code === 4 && srcUrl) {
player.error(null);
player.one('play', function() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be player.on.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is for first play only. per player.js instructions it should be player.one.

@gkatsev
Copy link
Member

gkatsev commented May 20, 2014

This should no longer be needed once the HLS Tech (#62) PR gets merged in.

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

Successfully merging this pull request may close these issues.

3 participants