HTTP API¶
访问地址:http://liveapi.sinacloud.com
接口列表¶
调用示例¶
curl -u username:passowrd 'http://liveapi.sinacloud.com/tube/create' -d 'name=test&despcrition=test'
{"code":0,"data":{"tube_id":"3ae472830c41148bef633d6cc80dbb2c"}}
curl -u username:passowrd 'http://liveapi.sinacloud.com/tube/query' -d 'tube_id=3ae472830c41148bef633d6cc80dbb2c'
{"code":0,"data":{"tube_id":"3ae472830c41148bef633d6cc80dbb2c","name":"test","description":null,"status":0,"publish_url":"rtmp:\/\/live2.sinacloud.com\/publish\/3ae472830c41148bef633d6cc80dbb2c","play_url":{"hls_origin":"live.sinacdn.com\/play\/3ae472830c41148bef633d6cc80dbb2c.m3u8","hls_low":"live.sinacdn.com\/play_low\/3ae472830c41148bef633d6cc80dbb2c.m3u8"}}}
curl -u username:passowrd 'http://liveapi.sinacloud.com/tube/start' -d 'tube_id=3ae472830c41148bef633d6cc80dbb2c'
{"code":0,"data":null}