|
|
|
@ -1,3 +1,6 @@
|
|
|
|
|
//////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
//////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
//////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
/**
|
|
|
|
|
* padding the output.
|
|
|
|
|
* padding(3, 5, '0') is 00003
|
|
|
|
@ -112,6 +115,10 @@ function srs_init(rtmp_url, hls_url, modal_player) {
|
|
|
|
|
//////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
/**
|
|
|
|
|
* the SrsPlayer object.
|
|
|
|
|
* @param container the html container id.
|
|
|
|
|
* @param stream_url the url of stream, rtmp or http.
|
|
|
|
|
* @param width a float value specifies the width of player.
|
|
|
|
|
* @param height a float value specifies the height of player.
|
|
|
|
|
*/
|
|
|
|
|
function SrsPlayer(container, stream_url, width, height) {
|
|
|
|
|
if (!SrsPlayer.__id) {
|
|
|
|
@ -275,3 +282,8 @@ function __srs_on_player_timer(id, time, buffer_length) {
|
|
|
|
|
|
|
|
|
|
player.on_player_timer(time, buffer_length);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
//////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
//////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
|
|