diff --git a/dash/ngx_rtmp_dash_module.c b/dash/ngx_rtmp_dash_module.c index f151ea1..90d7ed6 100644 --- a/dash/ngx_rtmp_dash_module.c +++ b/dash/ngx_rtmp_dash_module.c @@ -275,7 +275,7 @@ ngx_rtmp_dash_write_playlist(ngx_rtmp_session_t *s) " maxHeight=\"%ui\"\n" \ " maxFrameRate=\"%ui\">\n" \ " \n" \ " width, codec_ctx->height, codec_ctx->frame_rate, + &ctx->name, codec_ctx->width, codec_ctx->height, codec_ctx->frame_rate, @@ -400,7 +401,8 @@ ngx_rtmp_dash_write_playlist(ngx_rtmp_session_t *s) } if (ctx->has_audio) { - p = ngx_slprintf(buffer, last, NGX_RTMP_DASH_MANIFEST_AUDIO, + 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->sample_rate,