From 359d76b55593308a269f8824a7928be0f15b37b6 Mon Sep 17 00:00:00 2001 From: Nathan Caldwell Date: Wed, 27 Aug 2014 19:48:39 -0600 Subject: [PATCH] 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 --- dash/ngx_rtmp_dash_module.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dash/ngx_rtmp_dash_module.c b/dash/ngx_rtmp_dash_module.c index de702a9..88f55ef 100644 --- a/dash/ngx_rtmp_dash_module.c +++ b/dash/ngx_rtmp_dash_module.c @@ -412,7 +412,7 @@ ngx_rtmp_dash_write_playlist(ngx_rtmp_session_t *s) p = ngx_slprintf(buffer, last, NGX_RTMP_DASH_MANIFEST_AUDIO, &ctx->name, codec_ctx->audio_codec_id == NGX_RTMP_AUDIO_AAC ? - "40.2" : "6b", + (codec_ctx->aac_sbr ? "40.5" : "40.2") : "6b", codec_ctx->sample_rate, (ngx_uint_t) (codec_ctx->audio_data_rate * 1000), name, sep,