diff --git a/dash/ngx_rtmp_dash_module.c b/dash/ngx_rtmp_dash_module.c index 939e959..84da966 100644 --- a/dash/ngx_rtmp_dash_module.c +++ b/dash/ngx_rtmp_dash_module.c @@ -273,7 +273,7 @@ ngx_rtmp_dash_write_playlist(ngx_rtmp_session_t *s) " frameRate=\"%ui\"\n" \ " sar=\"1:1\"\n" \ " startWithSAP=\"1\"\n" \ - " bandwidth=\"0\">\n" \ + " bandwidth=\"%ui\">\n" \ " \n" \ + " bandwidth=\"%ui\">\n" \ " width, codec_ctx->height, - codec_ctx->frame_rate, + codec_ctx->frame_rate, codec_ctx->width, codec_ctx->height, - codec_ctx->frame_rate, + codec_ctx->frame_rate, + (ngx_uint_t) (codec_ctx->video_data_rate * 1000), &ctx->name, &ctx->name); @@ -388,6 +389,7 @@ ngx_rtmp_dash_write_playlist(ngx_rtmp_session_t *s) codec_ctx->audio_codec_id == NGX_RTMP_AUDIO_AAC ? "40.2" : "6b", codec_ctx->sample_rate, + (ngx_uint_t) (codec_ctx->audio_data_rate * 1000), &ctx->name, &ctx->name);