On Wed, Sep 9, 2009 at 3:17 PM, Ross Finlayson <finlay...@live555.com>wrote:
> testOnDemandRTSPServer uses WAVAudioFileServerMediaSubsession, which has an >> option to convert to ulaw--this class is sort of like what I want (?), >> although it reads from a file instead of a live source (hence the "seek" and >> "scale" methods that are irrelevant to a live source) and my ulaw source is >> already encoded, so clearly there are some differences. Would a good >> approach be to create my own class that inherits from >> OnDemandServerMediaSubsession, and then overriding the appropriate methods? >> > > Yes, exactly. Remember, when you instantiate > "OnDemandServerMediaSubsession", to set the "reuseFirstSource" parameter to > True, because you're reading from a live source rather than a file. > > And if yes, what methods would you recommend overriding? >> > > You must write your own implementation of "createNewStreamSource()" and > "createNewRTPSink()". As you noted, you can use the existing implementation > of these functions in "WAVAudioFileServerMediaSubsession" as a model. > Thanks, that helps. I have stuff sort of working, but I think I have a problem with my framer. I'm starting to think I need to have my framer inherit from AudioInputDevice and _not_ FramedSource; I believe this because VLC is incorrectly reporting the # of bits per sample as 16, and that's the only inheritance hierarchy I can see that clearly communicates such a value. Is that correct?
_______________________________________________ live-devel mailing list live-devel@lists.live555.com http://lists.live555.com/mailman/listinfo/live-devel