mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
for #179, revert dvr http api. 2.0.128.
This commit is contained in:
parent
4505983944
commit
fb3fced8d0
10 changed files with 7 additions and 932 deletions
|
@ -288,52 +288,7 @@ vhost dvr.srs.com {
|
|||
# session reap flv when session end(unpublish).
|
||||
# segment reap flv when flv duration exceed the specified dvr_duration.
|
||||
# append always append to flv file, never reap it.
|
||||
# api reap flv when api required.
|
||||
# about the api plan, the HTTP api to dvr,
|
||||
# http url to control dvr, for example, http://dev:1985/api/v1/dvrs
|
||||
# method=GET
|
||||
# to query dvrs of server.
|
||||
# request params, for example ?vhost=__defaultVhost__&&app=live&&stream=livestream, where:
|
||||
# vhost, <required>, query all dvr of this vhost.
|
||||
# app, [optinal], query all dvr of this app. query all app if not specified.
|
||||
# stream, [optional], query specified dvr stream. query all stream if not specified.
|
||||
# response in json, where:
|
||||
# {code:0, dvrs: [{path_tmpl:"./[15].[04].[05].[999].flv", path_dvr:"./22.7.43.312.flv",
|
||||
# vhost:"__defaultVhost", app:"live", stream:"livestream",
|
||||
# wait_keyframe:true, callback:"http://127.0.0.1:8085/api/v1/dvrs",
|
||||
# status:"stop"|"start"
|
||||
# }]}
|
||||
# method=POST
|
||||
# to start dvr of specified vhost.
|
||||
# request should encode in json, specifies the dvr to create, where:
|
||||
# {path_tmpl:"./[15].[04].[05].[999].flv",
|
||||
# vhost:"__defaultVhost", app:"live", stream:"livestream",
|
||||
# wait_keyframe:true, callback:"http://127.0.0.1:8085/api/v1/dvrs"
|
||||
# }
|
||||
# @remark, the app and stream is required for POST.
|
||||
# response in json, where:
|
||||
# {code:0}
|
||||
# method=DELETE, to stop dvr
|
||||
# to stop dvr of specified vhost.
|
||||
# request params, for example ?vhost=__defaultVhost__, where:
|
||||
# vhost, stop all dvr of this vhost.
|
||||
# response in json, where:
|
||||
# {code:0}
|
||||
# method=PUT, use as RPC(remote process call).
|
||||
# reap_segment, the request params in json, where:
|
||||
# {action:"reap_segment", vhost:"__defaultVhost", app:"live", stream:"livestream",
|
||||
# path_tmpl:"./[15].[04].[05].[999].flv"
|
||||
# }
|
||||
# @remark, the app and stream is optional.
|
||||
# when reap segment, the callback POST request in json:
|
||||
# {action:"on_dvr_reap_segment", client_id:100, vhost:"__defaultVhost__",
|
||||
# app:"live", stream:"livestream", cwd:"/home/winlin/srs", file:"./dvr.flv"
|
||||
# }
|
||||
# for the dvr http callback, @see http_hooks.on_dvr of vhost hooks.callback.srs.com
|
||||
# @read https://github.com/winlinvip/simple-rtmp-server/wiki/v2_CN_DVR#http-callback
|
||||
# @read https://github.com/winlinvip/simple-rtmp-server/wiki/v2_EN_DVR#http-callback
|
||||
# default: session
|
||||
# TODO: FIXME: update wiki for the api plan.
|
||||
dvr_plan session;
|
||||
# the dvr output path.
|
||||
# we supports some variables to generate the filename.
|
||||
|
@ -369,27 +324,20 @@ vhost dvr.srs.com {
|
|||
# @see https://github.com/winlinvip/simple-rtmp-server/wiki/v2_CN_DVR#custom-path
|
||||
# @see https://github.com/winlinvip/simple-rtmp-server/wiki/v2_EN_DVR#custom-path
|
||||
# segment,session apply it.
|
||||
# api apply before api specified the path.
|
||||
# default: ./objs/nginx/html
|
||||
dvr_path ./objs/nginx/html;
|
||||
# the duration for dvr file, reap if exeed, in seconds.
|
||||
# segment apply it.
|
||||
# session,api ignore.
|
||||
# session,append ignore.
|
||||
# default: 30
|
||||
dvr_duration 30;
|
||||
# whether wait keyframe to reap segment,
|
||||
# if off, reap segment when duration exceed the dvr_duration,
|
||||
# if on, reap segment when duration exceed and got keyframe.
|
||||
# segment apply it.
|
||||
# session,api ignore.
|
||||
# session,append ignore.
|
||||
# default: on
|
||||
dvr_wait_keyframe on;
|
||||
# whether dvr auto start when publish.
|
||||
# if off, dvr wait for api to start it.
|
||||
# api apply it.
|
||||
# segment,session ignore.
|
||||
# default: on
|
||||
dvr_autostart on;
|
||||
# about the stream monotonically increasing:
|
||||
# 1. video timestamp is monotonically increasing,
|
||||
# 2. audio timestamp is monotonically increasing,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue