[Live-devel] How to add audio stream later?
Ross Finlayson
finlayson at live555.com
Fri Aug 23 22:59:13 PDT 2013
> In my RTSP server, I create a ServerMediaSession with ServerMediaSubsession for H.264 video stream. Somehow, I need to turn audio on later while streaming. I can add a ServerMediaSubsession into the ServerMediaSession, so the ServerMediaSession has 2 sub-sessions. But in this case, the player client is not aware of that the audio is on now. Per my understanding, the RTSP server shall notify the client by sending ANNOUNCE command with new SDP payload. So, is there anyway to let RTSP to do so?
No, not with our software (or any other software that I'm aware of). The "ANNOUNCE" RTSP command has always been optional, and is barely implemented by anyone. Our library allows a RTSP client to send an "ANNOUNCE" command to the server, but we do not support a server sending an "ANNOUNCE" command to the client, nor do we have any way for the client to handle such a command.
Your best solution would be to create your "ServerMediaSession" initially with an audio "ServerMediaSubsession", even if the audio stream doesn't actually exist at first. Then later, if you wish, you can actually start streaming the audio, and clients should start playing it.
Ross Finlayson
Live Networks, Inc.
http://www.live555.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20130823/9ee2911a/attachment.html>
More information about the live-devel
mailing list