Skip to main content
December 17, 2012
Answered

Publish a receiving stream

  • December 17, 2012
  • 1 reply
  • 718 views

Sorry to Disturb, but I'm searching this for some days, with no luck...

I get netstream from rtmfp(P2P,DIRECT_CONNECTIONS) ,I can play the stream,  now I want to publish the netStream to FMS so that FMS can record the stream.

Any suggestions  ????

ps:It's like a chat app,and many chats will be happened in the same time ,so I don't think the NetGroup(multicast) is a good idea.

And, the client(video source) can't publish to FMS directly with rtmp,because that's why I change rtmp to rtmfp

This topic has been closed for replies.
Correct answer

I don't think that it can be achieved on the client side as one NetStream can not be attached to another NetStream.

1 reply

December 17, 2012

Hi,

You can do server side play of the rtmfp stream using a Stream object on the same server where you want to record the stream. Also, make a NetConnection to other app where you want to record (rtmp://localhost/other_app) and then create a NetStream with this NetConnection and attach the Stream object with this NetStream. Once you receive play.start status code, then you can do NetStream.publish with record.

December 18, 2012

Thats's one of my options before, but this will put a lot pressure on bandwidth in the server side...

is this the only way???

Can i do something in the client side which play the video,  create a NetStream with new NetConnection and attach the  received NetStream or something???

Thx!

Correct answer
December 18, 2012

I don't think that it can be achieved on the client side as one NetStream can not be attached to another NetStream.