Skip to content

Commit 08457de

Browse files
committed
Disable audios with Opus codec
1 parent fbb6a03 commit 08457de

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

services/youtube/YoutubeStreamExtractor.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -147,9 +147,10 @@ public ItagItem(int id, ItagType type, MediaFormat format, int avgBitrate, int s
147147
//////////////////////////////////////////////////////////////////////////////////////////
148148
// AUDIO ID ItagType Format Bitrate SamplingR Bandwidth ///
149149
////////////////////////////////////////////////////////////////////////////////////////
150-
new ItagItem(249, ItagType.AUDIO, MediaFormat.WEBMA, 50, 0, 0),
151-
new ItagItem(250, ItagType.AUDIO, MediaFormat.WEBMA, 70, 0, 0),
152-
new ItagItem(251, ItagType.AUDIO, MediaFormat.WEBMA, 160, 0, 0),
150+
// Disable Opus codec as it's not well supported in older devices
151+
// new ItagItem(249, ItagType.AUDIO, MediaFormat.WEBMA, 50, 0, 0),
152+
// new ItagItem(250, ItagType.AUDIO, MediaFormat.WEBMA, 70, 0, 0),
153+
// new ItagItem(251, ItagType.AUDIO, MediaFormat.WEBMA, 160, 0, 0),
153154
new ItagItem(171, ItagType.AUDIO, MediaFormat.WEBMA, 128, 0, 0),
154155
new ItagItem(172, ItagType.AUDIO, MediaFormat.WEBMA, 256, 0, 0),
155156
new ItagItem(140, ItagType.AUDIO, MediaFormat.M4A, 128, 0, 0),

0 commit comments

Comments
 (0)