Skip to main content
Inspiring
November 28, 2012
Question

How can you use one NetStream to publish video and audio from another NetStream in AS3?

  • November 28, 2012
  • 1 reply
  • 3566 views

Let's say one of your client programs in AS3 is able to receive live video and audio from a NetStream and play it on the screen.  How could you make it also take that video/audio stream that it's receiving, copy it over into another NetStream, and publish it elsewhere?  I need to know how to do with this regardless of whether RTMP, RTMFP, or some mixture is involved.  The reason why the stream needs to be relayed this way is a real long story, but it's necessary in this particular case. Thanks!

This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
November 28, 2012

if you can load the video file you can use the appendBytes method of the netstream class.

Inspiring
November 29, 2012

Can this be used to facilitate a live, three-way video chat?

kglad
Community Expert
Community Expert
November 30, 2012

Is there a way to take what it's loaded through appendBytes() and publish it on a separate NetConnection?  So far I haven't been able to find that.


:

http://blog.magicalhobo.com/2010/06/23/netstream-appendbytes/