[Live-devel] How to update SDPLines info?

Eric_Hsieh at alphanetworks.com Eric_Hsieh at alphanetworks.com
Tue Apr 26 04:24:23 PDT 2016


Hi Ross,

Yes, it works. Thanks a lot.

> Ross Finlayson <finlayson at live555.com> 於 Apr 26, 2016 15:49 寫道:
>
>> Run rtsp server based on OnDemandServerMediaSubsession class.
>> We found the server will always return the same SDP into back to the rtsp client, even we update the NEW SDP info when call createNewRTPSink.
>
> Yes, this is an optimization that our server code makes - based on the (usually correct) assumption that the properties of the (same-named) stream will not change.
>
>
>> So, my question is, how to control live555 library update SDP info?
>
> You can do this by - in your “OnDemandServerMediaSubsession” subclass - redefining the virtual function
> virtual char const* sdpLines();
> and reimplementing it as follows:
> char const* yourOnDemandServerMediaSubsessionSubclass::sdpLines() {
> delete[] fSDPLines; fSDPLines = NULL;
> return OnDemandServerMediaSubsessionSubclass::sdpLines();
> }
>
>
> Ross Finlayson
> Live Networks, Inc.
> http://www.live555.com/
>
>
> _______________________________________________
> live-devel mailing list
> live-devel at lists.live555.com
> http://lists.live555.com/mailman/listinfo/live-devel

This electronic mail transmission is intended only for the named recipient. It contains information which may be privileged,confidential and exempt from disclosure under applicable law. Dissemination, distribution, or copying of this communication by anyone other than the recipient or the recipient's agent is strictly prohibited. If this electronic mail transmission is received in error, Please notify us immediately and delete the message and all attachments of it from your computer system. Thank you for your cooperation.



More information about the live-devel mailing list