Advertisement
|
[x]
Attachment Details
|
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: |
//publish stream
var livestream:NetConnection = new NetConnection();
livestream.objectEncoding = ObjectEncoding.AMF0;
livestream.client = this;
livestream.addEventListener( NetStatusEvent.NET_STATUS , netStatus );
livestream.connect("rtmp://domain/oflaDemo");
var hostStream:NetStream = new NetStream(livestream);
hostStream.attachCamera(cam);
hostStream.publish("lecture", "live");
function netStatus (event:NetStatusEvent):void
{
trace( event.info.code );
if ( event.info.code == "NetConnection.Connect.Rejected" )
{
trace( event.info.application );
}
if ( event.info.code == "NetConnection.Connect.Rejected" )
{
trace( event.info.application );
}
}
|
|
Loading Advertisement... |