[Live-devel] shared audio stream
Ross Finlayson
finlayson at live555.com
Wed Oct 23 13:02:40 PDT 2024
Oops, I made a mistake in my last email. Because the “StreamReplicator” will be reading from “audioSource”, you won’t be able to also use it in your first “ServerMediaSubsession”. Instead, make *two* replicas of the audio source, as follows:
If “audioSource” is your original audio “FramedSource”, then do:
StreamReplicator* replicator = StreamReplicator::createNew(*env, audioSource);
FramedSource* audioSourceReplica1 = replicator->createStreamReplica();
FramedSource* audioSourceReplica2 = replicator->createStreamReplica();
Then use “audioSourceReplica1” in your first “ServerMediaSubsession”, and use “audioSourceReplica2” in your second “ServerMediaSubsession”.
Ross Finlayson
Live Networks, Inc.
http://www.live555.com/
More information about the live-devel
mailing list