We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0561b3d commit b7ffa46Copy full SHA for b7ffa46
src/controller/stream-controller.ts
@@ -1222,7 +1222,7 @@ export default class StreamController
1222
}
1223
1224
// HE-AAC is broken on Android, always signal audio codec as AAC even if variant manifest states otherwise
1225
- if (audioCodec.indexOf('mp4a.40.5') !== -1) {
+ if (audioCodec && audioCodec.indexOf('mp4a.40.5') !== -1) {
1226
if (ua.indexOf('android') !== -1 && audio.container !== 'audio/mpeg') {
1227
// Exclude mpeg audio
1228
audioCodec = 'mp4a.40.2';
0 commit comments