...
Code Block | ||||
---|---|---|---|---|
| ||||
private function handleStreamStatus(event:NetStatusEvent):void{ Logger.info("handleStreamStatus: "+event.info.code); switch (event.info.code) { ... case "NetStream.Unpublish.Success": publishStream.removeEventListener(NetStatusEvent.NET_STATUS, handleStreamStatus); publishStream=null; setPublishStatus("UNPUBLISHED"); publishBtn.visible = true; unpublishBtn.visible = false; break; ... } } |
Excerpt | ||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Setting a server application while RTMP stream publishingWhile publishing RTMP stream to WCS server, a server application can be set that will be used to backend server interaction. It can be done with parameter in stream URL:
Where
By default, if application key parameter is not set, the standard application Besides, an application can be explicitly specified as stream URL part. To do this, the following parameter in flashphoner.properties file should be set
Then application key must be set in stream URL as
In this case,
|
Known issues
1. When audio only stream is published, and this stream is played in browser via WebRTC, no sound is played.
...