@@ -192,7 +192,7 @@ export class PlaylistController extends videojs.EventTarget {
192192 this . playlistExclusionDuration = playlistExclusionDuration ;
193193 this . maxPlaylistRetries = maxPlaylistRetries ;
194194 this . enableLowInitialPlaylist = enableLowInitialPlaylist ;
195- this . experimentalUseMMS_ = experimentalUseMMS ;
195+ this . usingManagedMediaSource_ = false ;
196196
197197 if ( this . useCueTags_ ) {
198198 this . cueTagsTrack_ = this . tech_ . addTextTrack (
@@ -216,6 +216,7 @@ export class PlaylistController extends videojs.EventTarget {
216216 // Airplay source not yet implemented. Remote playback must be disabled.
217217 this . tech_ . el_ . disableRemotePlayback = true ;
218218 this . mediaSource = new window . ManagedMediaSource ( ) ;
219+ this . usingManagedMediaSource_ = true ;
219220
220221 videojs . log ( 'Using ManagedMediaSource' ) ;
221222 } else if ( window . MediaSource ) {
@@ -1959,7 +1960,7 @@ export class PlaylistController extends videojs.EventTarget {
19591960 }
19601961
19611962 // fmp4 relies on browser support, while ts relies on muxer support
1962- const supportFunction = ( isFmp4 , codec ) => ( isFmp4 ? browserSupportsCodec ( codec , this . experimentalUseMMS_ ) : muxerSupportsCodec ( codec ) ) ;
1963+ const supportFunction = ( isFmp4 , codec ) => ( isFmp4 ? browserSupportsCodec ( codec , this . usingManagedMediaSource_ ) : muxerSupportsCodec ( codec ) ) ;
19631964 const unsupportedCodecs = { } ;
19641965 let unsupportedAudio ;
19651966
@@ -2101,11 +2102,11 @@ export class PlaylistController extends videojs.EventTarget {
21012102 const codecs = codecsForPlaylist ( this . main , variant ) ;
21022103 const unsupported = [ ] ;
21032104
2104- if ( codecs . audio && ! muxerSupportsCodec ( codecs . audio ) && ! browserSupportsCodec ( codecs . audio , this . experimentalUseMMS_ ) ) {
2105+ if ( codecs . audio && ! muxerSupportsCodec ( codecs . audio ) && ! browserSupportsCodec ( codecs . audio , this . usingManagedMediaSource_ ) ) {
21052106 unsupported . push ( `audio codec ${ codecs . audio } ` ) ;
21062107 }
21072108
2108- if ( codecs . video && ! muxerSupportsCodec ( codecs . video ) && ! browserSupportsCodec ( codecs . video , this . experimentalUseMMS_ ) ) {
2109+ if ( codecs . video && ! muxerSupportsCodec ( codecs . video ) && ! browserSupportsCodec ( codecs . video , this . usingManagedMediaSource_ ) ) {
21092110 unsupported . push ( `video codec ${ codecs . video } ` ) ;
21102111 }
21112112
0 commit comments