diff --git a/src/hls-adapter.js b/src/hls-adapter.js index 27d77bbc..bb62a0bb 100644 --- a/src/hls-adapter.js +++ b/src/hls-adapter.js @@ -348,7 +348,6 @@ export default class HlsAdapter extends BaseMediaSourceAdapter { // Create video tracks let settings = { active: this._hls.startLevel === i, - label: hlsVideoTracks[i].name, bandwidth: hlsVideoTracks[i].bitrate, width: hlsVideoTracks[i].width, height: hlsVideoTracks[i].height, diff --git a/test/src/hls-adapter.spec.js b/test/src/hls-adapter.spec.js index ca7c3a96..4780ff56 100644 --- a/test/src/hls-adapter.spec.js +++ b/test/src/hls-adapter.spec.js @@ -166,6 +166,9 @@ describe('HlsAdapter Instance - Unit', function () { } }; let videoTracks = hlsAdapterInstance._parseVideoTracks(hls_tracks.levels); + player_tracks.videoTracks.forEach(t => { + t._label = t._height + 'p'; + }); JSON.parse(JSON.stringify(videoTracks)).should.deep.equal(player_tracks.videoTracks); });