1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

support publish

This commit is contained in:
winlin 2013-12-21 19:25:43 +08:00
parent 85515f05d3
commit a6e2f19a0f
9 changed files with 825 additions and 35 deletions

View file

@ -258,6 +258,10 @@ package
* function for js to call: to stop the stream. ignore if not play.
*/
private function js_call_stop():void {
if (this.media_video) {
this.removeChild(this.media_video);
this.media_video = null;
}
if (this.media_stream) {
this.media_stream.close();
this.media_stream = null;
@ -266,10 +270,6 @@ package
this.media_conn.close();
this.media_conn = null;
}
if (this.media_video) {
this.removeChild(this.media_video);
this.media_video = null;
}
}
/**