How to merge multiple live audio streams into a single stream in FMS?
I need to merge multiple live audio streams into a single stream so that i can pass this stream as input to VOIP through a softphone.
For this i tried the following approach:
Created a new stream (str1) on FMS onAppStart and recorded the live streams (sent throgh microphone) in that new stream.
Below is the code :
application.onAppStart = function()
{
application.myStream=Stream.get("foo");
application.myStream.record();
}
application.onPublish = function (client,stream)
{
var streamName = stream.name;
application.myStream.play(streamName,-2,-1};
}
The problem is that the Stream.play plays only 1 live stream at a time.As soon as a the 2nd live stream is sent to FMS then Stream.play stops playing the previous live stream.So,only the latest live stream is getting recorded.Whereas i need to record all the live streams in the new stream simultaneously.
Any pointers regarding this are welcome.
Thanks
