publish camera stream to rootInstall/applications/multicast of FMS4.5 with no data?
I try to publish my camera stream to FMS4.5 (applications/multicast) as a P2P stream on the client-side,and I get reponse:“NetStream.Publish.Start ” and “NetStream.Connect.Success” ,
but the NetStream info is "currentBytesPerSecond=0 byteCount=0 maxBytesPerSecond=0 audioBytesPerSecond=0 audioByteCount=0 ....metaData=null xmpData=null uri=rtmfp://218.199.102.119/multicast resourceName=null isLive=true" .
By the way, when I run another client to join the same group to play the video stream ,it ends with "
NetStream.Connect.Success
NetStream.Play.Reset
NetStream.Play.Start
NetStream.Connect.Success
NetStream.Play.Reset
NetStream.Play.Start
NetStream.MulticastStream.Reset "
and it can't play any video,I don't know why,can someone help me? I will very appreciate for it.
Here is my pubish side key code:
server = "rtmfp://218.199.102.119/multicast";
...
case "NetConnection.Connect.Success":
groupSpecifier = new GroupSpecifier(videoName);//不透明的 groupspec 字符串。groupspec 指定 RTMFP 对等组
groupSpecifier.serverChannelEnabled = true; //设置允许创建到服务端的通道,方便服务器通告其他peers新增一个peer
groupSpecifier.ipMulticastMemberUpdatesEnabled = true;
groupSpecifier.multicastEnabled = true;//启用多播
groupSpecifier.postingEnabled = true;//为NetGroup启用发布
netGroup = new NetGroup(netConnection,groupSpecifier.groupspecWithAuthorizations());
netGroup.addEventListener(NetStatusEvent.NET_STATUS,NetStatus_Handler);
break;
case "NetGroup.Connect.Success":
trace(e.info.code);
netStream = new NetStream(netConnection,groupSpecifier.groupspecWithAuthorizations());
netStream.addEventListener(NetStatusEvent.NET_STATUS,NetStatus_Handler);
//发布视频
trace("to publish stream: "+videoName);
netStream.attachCamera(camera);
netStream.publish(videoName);
break;
case "NetStream.Publish.Start":
trace(e.info.code+" "+" 成功发布");
trace("NetStream info: "+netStream.info.toString());
break;
case "NetStream.Connect.Success":
trace(e.info.code+ " P2P连接成功");
break;
when running the console print:
Connecting sever rtmfp://218.199.102.119/multicast
NetConnection.Connect.Success
NetGroup.Connect.Success
to publish stream: Video 1 (T306E Card 1)
NetStream.Publish.Start 成功发布
NetStream info: currentBytesPerSecond=0 byteCount=0 maxBytesPerSecond=0 audioBytesPerSecond=0 audioByteCount=0 videoBytesPerSecond=0 videoByteCount=0 dataBytesPerSecond=0 dataByteCount=0 playbackBytesPerSecond=0 droppedFrames=0 audioBufferLength=0 videoBufferLength=0 dataBufferLength=0 audioBufferByteLength=0 videoBufferByteLength=0 dataBufferByteLength=0 srtt=0 audioLossRate=0 videoLossRate=0 metaData=null xmpData=null uri=rtmfp://218.199.102.119/multicast resourceName=null isLive=true
NetStream.Connect.Success P2P连接成功
NetGroup.Neighbor.Connect
