File tree Expand file tree Collapse file tree 2 files changed +2
-27
lines changed
Expand file tree Collapse file tree 2 files changed +2
-27
lines changed Original file line number Diff line number Diff line change @@ -2307,12 +2307,8 @@ shaka.dash.DashParser = class {
23072307 return element . attributes [ 'schemeIdUri' ] == expectedUri &&
23082308 element . attributes [ 'value' ] == expectedValue ;
23092309 } ) ;
2310- const codecs = context . representation . codecs ;
2311- // Detect the presence of Dolby Atmos audio content based on the codec and
2312- // bandwidth. Bandwidth above 384 kbps is a good indicator of Atmos content.
2313- const isAtmos = codecs . includes ( 'ec-3' ) && context . bandwidth > 384000 ;
23142310 let spatialAudio = false ;
2315- if ( hasJoc || isAtmos ) {
2311+ if ( hasJoc ) {
23162312 spatialAudio = true ;
23172313 }
23182314
@@ -2344,6 +2340,7 @@ shaka.dash.DashParser = class {
23442340
23452341 let hdr ;
23462342 const profiles = context . profiles ;
2343+ const codecs = context . representation . codecs ;
23472344
23482345 const hevcHDR = 'http://dashif.org/guidelines/dash-if-uhd#hevc-hdr-pq10' ;
23492346 if ( profiles . includes ( hevcHDR ) && ( codecs . includes ( 'hvc1.2.4.L153.B0' ) ||
Original file line number Diff line number Diff line change @@ -540,28 +540,6 @@ describe('DashParser Manifest', () => {
540540 expect ( stream . spatialAudio ) . toBe ( true ) ;
541541 } ) ;
542542
543- it ( 'Detects spatial audio by codec and bandwidth' , async ( ) => {
544- const source = [
545- '<MPD>' ,
546- ' <Period duration="PT30M">' ,
547- ' <AdaptationSet mimeType="audio/mp4" lang="\u2603">' ,
548- ' <Representation bandwidth="768000" codecs="ec-3">' ,
549- ' <BaseURL>http://example.com</BaseURL>' ,
550- ' <SegmentTemplate media="2.mp4" duration="1" />' ,
551- ' </Representation>' ,
552- ' </AdaptationSet>' ,
553- ' </Period>' ,
554- '</MPD>' ,
555- ] . join ( '\n' ) ;
556-
557- fakeNetEngine . setResponseText ( 'dummy://foo' , source ) ;
558-
559- /** @type {shaka.extern.Manifest } */
560- const manifest = await parser . start ( 'dummy://foo' , playerInterface ) ;
561- const stream = manifest . variants [ 0 ] . audio ;
562- expect ( stream . spatialAudio ) . toBe ( true ) ;
563- } ) ;
564-
565543 it ( 'correctly parses CEA-608 closed caption tags without channel numbers' ,
566544 async ( ) => {
567545 const source = [
You can’t perform that action at this time.
0 commit comments