Skip to content

Commit

Permalink
update dist
Browse files Browse the repository at this point in the history
related to video-dev#1197
  • Loading branch information
mangui committed Jun 9, 2017
1 parent e31ed8f commit 203afe5
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 8 deletions.
7 changes: 6 additions & 1 deletion dist/hls.js
Original file line number Diff line number Diff line change
Expand Up @@ -11466,6 +11466,8 @@ var PlaylistLoader = function (_EventHandler) {
}, {
key: 'parseMasterPlaylistMedia',
value: function parseMasterPlaylistMedia(string, baseurl, type) {
var audioCodec = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null;

var result = void 0,
medias = [],
id = 0;
Expand All @@ -11487,6 +11489,9 @@ var PlaylistLoader = function (_EventHandler) {
if (!media.name) {
media.name = media.lang;
}
if (audioCodec) {
media.audioCodec = audioCodec;
}
media.id = id++;
medias.push(media);
}
Expand Down Expand Up @@ -11711,7 +11716,7 @@ var PlaylistLoader = function (_EventHandler) {
var levels = this.parseMasterPlaylist(string, url);
// multi level playlist, parse level info
if (levels.length) {
var audioTracks = this.parseMasterPlaylistMedia(string, url, 'AUDIO');
var audioTracks = this.parseMasterPlaylistMedia(string, url, 'AUDIO', levels[0].audioCodec);
var subtitles = this.parseMasterPlaylistMedia(string, url, 'SUBTITLES');
if (audioTracks.length) {
// check if we have found an audio track embedded in main playlist (audio track without URI attribute)
Expand Down
4 changes: 2 additions & 2 deletions dist/hls.js.map

Large diffs are not rendered by default.

7 changes: 6 additions & 1 deletion dist/hls.light.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions dist/hls.light.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/hls.light.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/hls.min.js

Large diffs are not rendered by default.

0 comments on commit 203afe5

Please sign in to comment.