1
0
Fork 0
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:
winlin 2013-12-20 00:26:34 +08:00
parent 40c1298476
commit 5bfb561f89
4 changed files with 28 additions and 19 deletions

View file

@ -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")];