mirror of
https://github.com/zotanmew/nginx-rtmp-module.git
synced 2024-06-25 23:08:59 +02:00
added buffering based on fraglen
This commit is contained in:
parent
2c7111cf10
commit
8c0b83514c
|
@ -248,7 +248,7 @@ ngx_rtmp_dash_write_playlist(ngx_rtmp_session_t *s)
|
|||
" xmlns=\"urn:mpeg:dash:schema:mpd:2011\"\n" \
|
||||
" availabilityStartTime=\"%V\"\n" \
|
||||
" minimumUpdatePeriod=\"PT%uiS\"\n" \
|
||||
" minBufferTime=\"PT1S\"\n" \
|
||||
" minBufferTime=\"PT%uiS\"\n" \
|
||||
" timeShiftBufferDepth=\"PT0H0M0.00S\"\n" \
|
||||
" profiles=\"urn:mpeg:dash:profile:isoff-live:2011\">\n" \
|
||||
" <Period start=\"PT0S\" id=\"dash\">\n"
|
||||
|
@ -328,7 +328,10 @@ ngx_rtmp_dash_write_playlist(ngx_rtmp_session_t *s)
|
|||
last = buffer + sizeof(buffer);
|
||||
|
||||
p = ngx_slprintf(buffer, last, NGX_RTMP_DASH_MANIFEST_HEADER,
|
||||
&ctx->start_time, (ngx_uint_t) (dacf->fraglen / 1000));
|
||||
&ctx->start_time,
|
||||
(ngx_uint_t) (dacf->fraglen / 1000),
|
||||
(ngx_uint_t) (dacf->fraglen / 500));
|
||||
|
||||
n = ngx_write_fd(fd, buffer, p - buffer);
|
||||
|
||||
if (ctx->has_video) {
|
||||
|
|
Loading…
Reference in a new issue