0

At the beginning i would like to say sorry for my english.

I would like to publish stream as a record on my RED5 server but i have a problem because i want to save .flv + voice from my microphone on my server.

I'm trying to connect to my red5 server:

connection = new NetConnection();
connection.addEventListener(NetStatusEvent.NET_STATUS, netStatusEventR5);
connection.client = this;
connection.connect("rtmp://" + my_ip);

and it's works of course (btw. listener for connection take information something like "Netstream.Connect.Failed" and so forth). Anyway after connect to server i'm trying to publish *flv video and my voice and then save this like:

stream = new NetStream(connection);
stream.client = this;
stream.addEventListener(NetStatusEvent.NET_STATUS, netStatusEvent);
stream.bufferTime=0;
stream.play(filename);
stream.attachAudio(_micDevice.getMicrophone());
stream.publish(recfilename, "record");  

When i looked on my server after stream i saw that file was saved but included only voice from my microphone, without screen or audio from .flv. It's possible? Any advices?

user3015215
  • 97
  • 1
  • 10

1 Answers1

0

I know that's a little late to answer this question but I do for, may be, another person who need an answer.

I think that's impossible to play and publish over the same NetStream, adobe was clearly said :

Note:You cannot play and publish a stream over the same NetStream object.

See here for more details : http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/net/NetStream.html#badgeAnchorSupport

akmozo
  • 9,829
  • 3
  • 28
  • 44