mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
for #179, enable http api crossdomain for dvr api.
This commit is contained in:
parent
1445086451
commit
c67a4fdf97
11 changed files with 267 additions and 3 deletions
|
@ -109,6 +109,9 @@ http_api {
|
|||
# the http api port
|
||||
# default: 1985
|
||||
listen 1985;
|
||||
# whether enable crossdomain request.
|
||||
# default: on
|
||||
crossdomain on;
|
||||
}
|
||||
# embeded http server in srs.
|
||||
# the http streaming config, for HLS/HDS/DASH/HTTPProgressive
|
||||
|
@ -286,6 +289,31 @@ vhost dvr.srs.com {
|
|||
# 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__, 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"
|
||||
# }]}
|
||||
# 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"
|
||||
# }
|
||||
# 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}
|
||||
# default: session
|
||||
dvr_plan session;
|
||||
# the dvr output path.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue