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

Create an error setter on the base tech #2517

Closed
wants to merge 4 commits into from

Conversation

dmlap
Copy link
Member

@dmlap dmlap commented Aug 25, 2015

For #2323. Source Handlers may need to trigger player errors if they encounter unrecoverable playback issues. Provide a base implementation of an error setter they can use to do so at the tech level. The setter is overridden for HTML since Source Handlers should probably use something like MediaSource.endOfStream('network') to signal errors in that case. Update Flash error handling to take advantage of the new mechanism.

Pull in @gkatsev's improvements to Flash error handling in #2515

@pam
Copy link

pam commented Aug 25, 2015

Tests failed. Automated cross-browser testing via Sauce Labs and Travis CI shows that the JavaScript changes in this pull request are: BUSTED

Commit: b5925b5c15694122e8a5c36523872d0e3a35d341
Build details: https://travis-ci.org/pam/video.js/builds/77210946

(Please note that this is a fully automated comment.)

}

// trigger a custom error
tech.error('FLASH: ' + err);
Copy link
Member

Choose a reason for hiding this comment

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

possible change

let error = 'FLASH: ' + err;

if (err === 'srcnotfound') {
  error = 4;
}
tech.error(error);

@gkatsev
Copy link
Member

gkatsev commented Aug 25, 2015

LGTM.

dmlap added a commit to dmlap/videojs-contrib-media-sources that referenced this pull request Aug 25, 2015
Requires videojs/video.js#2517. The HTML implementation should support endOfStream errors natively.
@@ -11,6 +11,7 @@ import * as Url from '../utils/url.js';
import { createTimeRange } from '../utils/time-ranges.js';
import FlashRtmpDecorator from './flash-rtmp';
import Component from '../component';
import MediaError from '../media-error.js';
Copy link
Member

Choose a reason for hiding this comment

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

This doesn't appear to be used anywhere.

@heff
Copy link
Member

heff commented Aug 26, 2015

A few notes but otherwise looks good to me.

Source Handlers may need to trigger player errors if they encounter unrecoverable playback issues. Provide a base implementation of an error setter they can use to do so at the tech level. The setter is overridden for HTML since Source Handlers should probably use something like MediaSource.endOfStream('network') to signal errors in that case. Update Flash error handling to take advantage of the new mechanism.
@pam
Copy link

pam commented Aug 26, 2015

Tests passed. Automated cross-browser testing via Sauce Labs and Travis CI shows that the JavaScript changes in this pull request are: CONFIRMED

Commit: 4ad58a2
Build details: https://travis-ci.org/pam/video.js/builds/77403996

(Please note that this is a fully automated comment.)

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

Successfully merging this pull request may close these issues.

4 participants