mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Player: Change the default from RTMP to HTTP-FLV.
This commit is contained in:
parent
5232f9e043
commit
6f66cf0868
6 changed files with 23 additions and 26 deletions
|
@ -421,9 +421,8 @@
|
|||
var query = parse_query_string();
|
||||
|
||||
// get the vhost and port to set the default url.
|
||||
// for example: http://192.168.1.213/players/srs_player.html?port=1935&vhost=demo
|
||||
// url set to: rtmp://demo:1935/live/livestream
|
||||
srs_init_rtmp("#txt_url", "#main_modal");
|
||||
// url set to: http://localhost:8080/live/livestream.flv
|
||||
srs_init_flv("#txt_url", "#main_modal");
|
||||
|
||||
// consts for buffer and max buffer.
|
||||
var bts = [0.1, 0.2, 0.3, 0.5, 0.8, 1, 2, 3, 4, 5, 6, 8, 10, 15, 20, 30];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue