> Let's consider the following sdp file:
> ------------
> v=0
> o=- 0 0 IN IP4 127.0.0.1
> s=No Name
> c=IN IP4 224.1.168.100
> t=0 0
> a=tool:libavformat 56.36.100
> m=audio 5000 RTP/AVP 97
> b=AS:256
> a=rtpmap:97 L16/16000/1
> -------------
> 
> The resulting MediaSubsession from the MediaSubsessionIterator, has lots of 
> methods, like
> ->codecName()
> ->mediumName()
> ->numChannels()
> 
> .. that work nicely.
> 
> Is there any method in MediaSubsession that returns the sampling rate ?

Yes - “MediaSubsession::rtpTimestampFrequency()”

Note that for the “audio/L16” RTP payload format, the RTP timestamp frequency 
is the same as the audio sampling rate - in this case, 16000 
samples-per-second.  See RFC 3551, section 4.5


Ross Finlayson
Live Networks, Inc.
http://www.live555.com/


_______________________________________________
live-devel mailing list
live-devel@lists.live555.com
http://lists.live555.com/mailman/listinfo/live-devel

Reply via email to