mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
add srs player
This commit is contained in:
parent
40c1298476
commit
5bfb561f89
4 changed files with 28 additions and 19 deletions
|
@ -104,7 +104,7 @@ package
|
|||
return 0;
|
||||
}
|
||||
|
||||
public function js_call_play(url:String, _width:int, _height:int):int {
|
||||
public function js_call_play(url:String, _width:int, _height:int, _buffer_time:Number):int {
|
||||
this.url = url;
|
||||
trace("start to play url: " + this.url);
|
||||
|
||||
|
@ -120,6 +120,7 @@ package
|
|||
}
|
||||
|
||||
stream = new NetStream(conn);
|
||||
stream.bufferTime = _buffer_time;
|
||||
stream.client = {};
|
||||
stream.client.onMetaData = function(metadata:Object):void {
|
||||
var customItems:Array = [new ContextMenuItem("SrsPlayer")];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue