diff --git a/package.json b/package.json index ee617d6a27..e23ff85f23 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "video.js", "description": "An HTML5 and Flash video player with a common API and skin for both.", - "version": "5.20.1", + "version": "5.20.1-jet", "main": "./es5/video.js", "style": "./dist/video-js.css", "copyright": "Copyright Brightcove, Inc. ", @@ -139,5 +139,8 @@ "ghooks": { "pre-push": "npm run lint -- --errors" } + }, + "publishConfig": { + "registry": "http://admin.babelcentral.com:10090/repository/npm-internal/" } } diff --git a/src/js/tracks/audio-track-list.js b/src/js/tracks/audio-track-list.js index 60b8c5bcc6..e0fed82a51 100644 --- a/src/js/tracks/audio-track-list.js +++ b/src/js/tracks/audio-track-list.js @@ -19,7 +19,7 @@ import document from 'global/document'; */ const disableOthers = function(list, track) { for (let i = 0; i < list.length; i++) { - if (track.id === list[i].id) { + if (!list[i].id || track.id === list[i].id) { continue; } // another audio track is enabled, disable it diff --git a/src/js/tracks/video-track-list.js b/src/js/tracks/video-track-list.js index 1d9aad20c5..bcb421b53b 100644 --- a/src/js/tracks/video-track-list.js +++ b/src/js/tracks/video-track-list.js @@ -18,7 +18,7 @@ import document from 'global/document'; */ const disableOthers = function(list, track) { for (let i = 0; i < list.length; i++) { - if (track.id === list[i].id) { + if (!list[i].id || track.id === list[i].id) { continue; } // another video track is enabled, disable it