@@ -1248,7 +1248,7 @@ QUnit.test('buffer checks are noops when only the main is ready', function(asser
12481248 assert . strictEqual ( this . requests . length , 1 , 'one request was made' ) ;
12491249 assert . strictEqual (
12501250 this . requests [ 0 ] . url ,
1251- absoluteUrl ( 'manifest/media1 .m3u8' ) ,
1251+ absoluteUrl ( 'manifest/media .m3u8' ) ,
12521252 'media playlist requested'
12531253 ) ;
12541254
@@ -1269,16 +1269,16 @@ QUnit.test('selects a playlist below the current bandwidth', function(assert) {
12691269
12701270 // the default playlist has a really high bitrate
12711271 this . player . tech_ . vhs . playlists . main . playlists [ 0 ] . attributes . BANDWIDTH = 9e10 ;
1272- // playlist 1 has a very low bitrate
1273- this . player . tech_ . vhs . playlists . main . playlists [ 1 ] . attributes . BANDWIDTH = 1 ;
1272+ // playlist 2 has a very low bitrate
1273+ this . player . tech_ . vhs . playlists . main . playlists [ 2 ] . attributes . BANDWIDTH = 1 ;
12741274 // but the detected client bandwidth is really low
12751275 this . player . tech_ . vhs . bandwidth = 10 ;
12761276
12771277 const playlist = this . player . tech_ . vhs . selectPlaylist ( ) ;
12781278
12791279 assert . strictEqual (
12801280 playlist ,
1281- this . player . tech_ . vhs . playlists . main . playlists [ 1 ] ,
1281+ this . player . tech_ . vhs . playlists . main . playlists [ 2 ] ,
12821282 'the low bitrate stream is selected'
12831283 ) ;
12841284
@@ -1383,12 +1383,12 @@ QUnit.test('raises the minimum bitrate for a stream proportionially', function(a
13831383 this . player . tech_ . vhs . bandwidth = 11 ;
13841384
13851385 // 9.9 * 1.1 < 11
1386- this . player . tech_ . vhs . playlists . main . playlists [ 1 ] . attributes . BANDWIDTH = 9.9 ;
1386+ this . player . tech_ . vhs . playlists . main . playlists [ 2 ] . attributes . BANDWIDTH = 9.9 ;
13871387 const playlist = this . player . tech_ . vhs . selectPlaylist ( ) ;
13881388
13891389 assert . strictEqual (
13901390 playlist ,
1391- this . player . tech_ . vhs . playlists . main . playlists [ 1 ] ,
1391+ this . player . tech_ . vhs . playlists . main . playlists [ 2 ] ,
13921392 'a lower bitrate stream is selected'
13931393 ) ;
13941394
@@ -1416,7 +1416,7 @@ QUnit.test('uses the lowest bitrate if no other is suitable', function(assert) {
14161416 // playlist 1 has the lowest advertised bitrate
14171417 assert . strictEqual (
14181418 playlist ,
1419- this . player . tech_ . vhs . playlists . main . playlists [ 1 ] ,
1419+ this . player . tech_ . vhs . playlists . main . playlists [ 0 ] ,
14201420 'the lowest bitrate stream is selected'
14211421 ) ;
14221422
@@ -2892,7 +2892,7 @@ QUnit.test('resets the switching algorithm if a request times out', function(ass
28922892
28932893 assert . strictEqual (
28942894 this . player . tech_ . vhs . playlists . media ( ) ,
2895- this . player . tech_ . vhs . playlists . main . playlists [ 1 ] ,
2895+ this . player . tech_ . vhs . playlists . main . playlists [ 0 ] ,
28962896 'reset to the lowest bitrate playlist'
28972897 ) ;
28982898
@@ -4693,7 +4693,7 @@ QUnit.test('populates quality levels list when available', function(assert) {
46934693 // media
46944694 this . standardXHRResponse ( this . requests . shift ( ) ) ;
46954695
4696- assert . equal ( addCount , 4 , 'four levels added from main' ) ;
4696+ assert . equal ( addCount , 3 , 'three levels added from main' ) ;
46974697 assert . equal ( changeCount , 1 , 'selected initial quality level' ) ;
46984698
46994699 this . player . dispose ( ) ;
@@ -5837,7 +5837,7 @@ QUnit.test('aborts all in-flight work when disposed', function(assert) {
58375837 const vhs = VhsSourceHandler . handleSource ( {
58385838 src : 'manifest/main.m3u8' ,
58395839 type : 'application/vnd.apple.mpegurl'
5840- } , this . tech ) ;
5840+ } , this . tech , { vhs : { useNetworkInformationApi : false } } ) ;
58415841
58425842 vhs . mediaSource . trigger ( 'sourceopen' ) ;
58435843 // main
@@ -5859,7 +5859,7 @@ QUnit.test('stats are reset on dispose', function(assert) {
58595859 const vhs = VhsSourceHandler . handleSource ( {
58605860 src : 'manifest/main.m3u8' ,
58615861 type : 'application/vnd.apple.mpegurl'
5862- } , this . tech ) ;
5862+ } , this . tech , { vhs : { useNetworkInformationApi : false } } ) ;
58635863
58645864 vhs . mediaSource . trigger ( 'sourceopen' ) ;
58655865 // main
@@ -5891,7 +5891,7 @@ QUnit.skip('detects fullscreen and triggers a fast quality change', function(ass
58915891 const vhs = VhsSourceHandler . handleSource ( {
58925892 src : 'manifest/main.m3u8' ,
58935893 type : 'application/vnd.apple.mpegurl'
5894- } , this . tech ) ;
5894+ } , this . tech , { vhs : { useNetworkInformationApi : false } } ) ;
58955895
58965896 let qualityChanges = 0 ;
58975897 let fullscreenElementName ;
@@ -5933,7 +5933,7 @@ QUnit.test('downloads additional playlists if required', function(assert) {
59335933 const vhs = VhsSourceHandler . handleSource ( {
59345934 src : 'manifest/main.m3u8' ,
59355935 type : 'application/vnd.apple.mpegurl'
5936- } , this . tech ) ;
5936+ } , this . tech , { vhs : { useNetworkInformationApi : false } } ) ;
59375937
59385938 // Make segment metadata noop since most test segments dont have real data
59395939 vhs . playlistController_ . mainSegmentLoader_ . addSegmentMetadataCue_ = ( ) => { } ;
@@ -5987,7 +5987,7 @@ QUnit.test('waits to download new segments until the media playlist is stable',
59875987 const vhs = VhsSourceHandler . handleSource ( {
59885988 src : 'manifest/main.m3u8' ,
59895989 type : 'application/vnd.apple.mpegurl'
5990- } , this . tech ) ;
5990+ } , this . tech , { vhs : { useNetworkInformationApi : false } } ) ;
59915991 const pc = vhs . playlistController_ ;
59925992
59935993 pc . mainSegmentLoader_ . addSegmentMetadataCue_ = ( ) => { } ;
@@ -6039,7 +6039,7 @@ QUnit.test('live playlist starts three target durations before live', function(a
60396039 const vhs = VhsSourceHandler . handleSource ( {
60406040 src : 'manifest/main.m3u8' ,
60416041 type : 'application/vnd.apple.mpegurl'
6042- } , this . tech ) ;
6042+ } , this . tech , { vhs : { useNetworkInformationApi : false } } ) ;
60436043
60446044 vhs . mediaSource . trigger ( 'sourceopen' ) ;
60456045 this . requests . shift ( ) . respond (
@@ -6099,7 +6099,7 @@ QUnit.test(
60996099 let vhs = VhsSourceHandler . handleSource ( {
61006100 src : 'manifest/main.m3u8' ,
61016101 type : 'application/vnd.apple.mpegurl'
6102- } , this . tech ) ;
6102+ } , this . tech , { vhs : { useNetworkInformationApi : false } } ) ;
61036103
61046104 vhs . playlistController_ . selectPlaylist ( ) ;
61056105 assert . equal ( defaultSelectPlaylistCount , 1 , 'uses default playlist selector' ) ;
@@ -6116,7 +6116,7 @@ QUnit.test(
61166116 vhs = VhsSourceHandler . handleSource ( {
61176117 src : 'manifest/main.m3u8' ,
61186118 type : 'application/vnd.apple.mpegurl'
6119- } , this . tech ) ;
6119+ } , this . tech , { vhs : { useNetworkInformationApi : false } } ) ;
61206120
61216121 vhs . playlistController_ . selectPlaylist ( ) ;
61226122 assert . equal ( defaultSelectPlaylistCount , 0 , 'standard playlist selector not run' ) ;
@@ -6170,7 +6170,7 @@ QUnit.test('excludes playlist if key requests fail', function(assert) {
61706170 const vhs = VhsSourceHandler . handleSource ( {
61716171 src : 'manifest/encrypted-main.m3u8' ,
61726172 type : 'application/vnd.apple.mpegurl'
6173- } , this . tech ) ;
6173+ } , this . tech , { vhs : { useNetworkInformationApi : false } } ) ;
61746174
61756175 vhs . mediaSource . trigger ( 'sourceopen' ) ;
61766176 this . requests . shift ( )
@@ -6219,7 +6219,7 @@ QUnit.test(
62196219 const vhs = VhsSourceHandler . handleSource ( {
62206220 src : 'manifest/encrypted-main.m3u8' ,
62216221 type : 'application/vnd.apple.mpegurl'
6222- } , this . tech ) ;
6222+ } , this . tech , { vhs : { useNetworkInformationApi : false } } ) ;
62236223
62246224 vhs . mediaSource . trigger ( 'sourceopen' ) ;
62256225 this . requests . shift ( )
0 commit comments