mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
for #179, support http api to start dvr.
This commit is contained in:
parent
c67a4fdf97
commit
849e59b05d
9 changed files with 320 additions and 21 deletions
|
@ -296,15 +296,14 @@ vhost dvr.srs.com {
|
|||
# request params, for example ?vhost=__defaultVhost__, where:
|
||||
# vhost, query all dvr of this vhost.
|
||||
# response in json, where:
|
||||
# {code:0, dvrs: [{plan:"api", path:"./objs/nginx/html",
|
||||
# autostart:true, wait_keyframe:true, jitter:"full"
|
||||
# {code:0, dvrs: [{path_tmpl:"./[15].[04].[05].[999].flv", path_dvr:"./22.7.43.312.flv",
|
||||
# wait_keyframe:true, vhost:"__defaultVhost", callback:"http://dvr/callback"
|
||||
# }]}
|
||||
# method=POST
|
||||
# to start dvr of specified vhost.
|
||||
# request should encode in json, specifies the dvr to create, where:
|
||||
# {plan:"api", path:"./objs/nginx/html",
|
||||
# autostart:true, wait_keyframe:true, jitter:"full",
|
||||
# vhost:"__defaultVhost", callback:"http://dvr/callback"
|
||||
# {path_tmpl:"./[15].[04].[05].[999].flv",
|
||||
# wait_keyframe:true, vhost:"__defaultVhost", callback:"http://dvr/callback"
|
||||
# }
|
||||
# response in json, where:
|
||||
# {code:0}
|
||||
|
@ -329,7 +328,7 @@ vhost dvr.srs.com {
|
|||
# [05], repleace this const to current second.
|
||||
# [999], repleace this const to current millisecond.
|
||||
# [timestamp],replace this const to current UNIX timestamp in ms.
|
||||
# @remark we use golang time format "2006-01-02 15:04:05.999"
|
||||
# @remark we use golang time format "2006-01-02 15:04:05.999" as "[2006]-[01]-[02]_[15].[04].[05]_[999]"
|
||||
# for example, for url rtmp://ossrs.net/live/livestream and time 2015-01-03 10:57:30.776
|
||||
# 1. No variables, the rule of SRS1.0(auto add [stream].[timestamp].flv as filename):
|
||||
# dvr_path ./objs/nginx/html;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue