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

Null check native tracks #2466

Closed
wants to merge 6 commits into from

Conversation

gkatsev
Copy link
Member

@gkatsev gkatsev commented Aug 11, 2015

This fixes #2454 and hopefully any of the text-track related CI test failures in master.
One thing I've noticed when working on this is that IE11 doesn't have removetrack handler (and seems like addtrack handler doesn't work if added via addEventListener). I've disabled the native text track tests that depend on removetrack if not available but this does mean that our custom controls won't update on IE11 and we need a solution for it. I've filed #2465 to figure that out since this PR should be just for fixing the tests.

@pam
Copy link

pam commented Aug 11, 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: cdb0740
Build details: https://travis-ci.org/pam/video.js/builds/75163002

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

@gkatsev
Copy link
Member Author

gkatsev commented Aug 11, 2015

@pam retry

@pam
Copy link

pam commented Aug 11, 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: cdb0740
Build details: https://travis-ci.org/pam/video.js/builds/75170147

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

@gkatsev
Copy link
Member Author

gkatsev commented Aug 11, 2015

@pam retry

@pam
Copy link

pam commented Aug 11, 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: cdb0740
Build details: https://travis-ci.org/pam/video.js/builds/75171237

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

1 similar comment
@pam
Copy link

pam commented Aug 11, 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: cdb0740
Build details: https://travis-ci.org/pam/video.js/builds/75171237

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

@@ -308,8 +308,8 @@ test('when switching techs, we should not get a new text track', function() {
ok(htmltracks === flashtracks, 'the tracks are equal');
});

if (Html5.supportsNativeTextTracks()) {
test('listen to remove and add track events in native text tracks', function(assert) {
if (Html5.supportsNativeTextTracks() && ('removetrack' in Html5.TEST_VID.textTracks)) {
Copy link
Member Author

Choose a reason for hiding this comment

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

since needs to change to onremovetrack.

Copy link
Member Author

Choose a reason for hiding this comment

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

Updated.

@pam
Copy link

pam commented Aug 12, 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: e90738c
Build details: https://travis-ci.org/pam/video.js/builds/75317266

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

@@ -308,8 +308,8 @@ test('when switching techs, we should not get a new text track', function() {
ok(htmltracks === flashtracks, 'the tracks are equal');
});

if (Html5.supportsNativeTextTracks()) {
test('listen to remove and add track events in native text tracks', function(assert) {
if (Html5.supportsNativeTextTracks() && ('onremovetrack' in Html5.TEST_VID.textTracks)) {
Copy link
Member

Choose a reason for hiding this comment

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

Should we just add this onremovetrack check to the supportsNativeTextTracks check?

Copy link
Member Author

Choose a reason for hiding this comment

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

If the solution to #2465 is to disable it for now, then, yes.

@heff
Copy link
Member

heff commented Aug 12, 2015

lgtm!

@pam
Copy link

pam commented Aug 12, 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: 887e45c
Build details: https://travis-ci.org/pam/video.js/builds/75319426

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

@pam
Copy link

pam commented Aug 12, 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: 98dfa9c
Build details: https://travis-ci.org/pam/video.js/builds/75319512

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

@@ -889,6 +893,9 @@ Html5.supportsNativeTextTracks = function() {
if (supportsTextTracks && browser.IS_FIREFOX) {
supportsTextTracks = false;
}
if (supportsTextTracks && !('onremovetrack' in Html5.TEST_VID.textTracks)) {
Copy link
Member

Choose a reason for hiding this comment

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

Looks like supportsNativeTextTracks could use some simplification now, but not worth blocking this.

@heff
Copy link
Member

heff commented Aug 12, 2015

Judging by pam it does look like this fixes the track specific issues, though we're still getting disconnect issues. Do we have any idea what those are related to?

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.

PR #2391 / #2425 break dispose when no native tt is supported
3 participants