mirror of
https://github.com/ossrs/srs.git
synced 2025-02-15 04:42:04 +00:00
extract the srs.js
This commit is contained in:
parent
ff4b28f4d4
commit
6e4795ee5c
1 changed files with 5 additions and 1 deletions
|
@ -25,10 +25,14 @@ function parse_query_string(){
|
|||
|
||||
function build_default_url() {
|
||||
var query = parse_query_string();
|
||||
|
||||
var schema = (query.schema == undefined)? "rtmp":query.schema;
|
||||
var port = (query.port == undefined)? 1935:query.port;
|
||||
var vhost = (query.vhost == undefined)? window.location.hostname:query.vhost;
|
||||
var app = (query.app == undefined)? "live":query.app;
|
||||
var stream = (query.stream == undefined)? "livestream":query.stream;
|
||||
|
||||
return "rtmp://"+vhost+":"+port+"/live/livestream";
|
||||
return schema + "://" + vhost + ":" + port + "/" + app + "/" + stream;
|
||||
}
|
||||
|
||||
function srs_init(url_obj) {
|
||||
|
|
Loading…
Reference in a new issue