Skip to content

Commit 359d76b

Browse files
committed
Explicitly signal HE-AAC in DASH manifest
This works around an issue in the Chromium MediaSource implementation[1]. Chromium will not play a video when the audio track uses HE-AAC, unless it is explicitly signaled in the manifest. [1]: https://code.google.com/p/chromium/issues/detail?id=370927#c3
1 parent 8acacd0 commit 359d76b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dash/ngx_rtmp_dash_module.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ ngx_rtmp_dash_write_playlist(ngx_rtmp_session_t *s)
412412
p = ngx_slprintf(buffer, last, NGX_RTMP_DASH_MANIFEST_AUDIO,
413413
&ctx->name,
414414
codec_ctx->audio_codec_id == NGX_RTMP_AUDIO_AAC ?
415-
"40.2" : "6b",
415+
(codec_ctx->aac_sbr ? "40.5" : "40.2") : "6b",
416416
codec_ctx->sample_rate,
417417
(ngx_uint_t) (codec_ctx->audio_data_rate * 1000),
418418
name, sep,

0 commit comments

Comments
 (0)