[Live-devel] AMRInterleaver has MIMEType() "binary/octed-stream" and InitiateByMediaType() fails ?

Ross Finlayson finlayson at live555.com
Thu Jun 10 15:28:01 PDT 2010


>  I'm unable to receive AMR audio using InitiateByMediaType( 
>"audio/AMR"). The reason is readSource(), which is AMRInterleaver in 
>this case, has no MIMEType() redefined. It returns a generic 
>type, something like "binary/octed-stream" instead "audio/AMR", and 
>function fails at this line :
>
>
>// Make sure the source's MIME type is one that we handle:
>00482     if 
>(strcmp(<http://www.live555.com/liveMedia/doxygen/html/AVIFileSink_8cpp.html#25e0e015bb23ec5ef03f7e9b9be9b7f4>subsession-><http://www.live555.com/liveMedia/doxygen/html/classMediaSubsession.html#98fd05e720ca289f4f6f68ad86ec3d37>readSource()-><http://www.live555.com/liveMedia/doxygen/html/classMediaSource.html#3e7802f6dbeb9da5adde539b6c1410e5>MIMEtype(), 
>mimeType) != 0) {
>00483       if (!wasAlreadyInitiated) 
><http://www.live555.com/liveMedia/doxygen/html/AVIFileSink_8cpp.html#25e0e015bb23ec5ef03f7e9b9be9b7f4>subsession-><http://www.live555.com/liveMedia/doxygen/html/classMediaSubsession.html#d39152d0b5807cd59fb345b4308c6be5>deInitiate();
>00484       continue;
>
>Of course, I'm not sure that I'm doing everything ok, but it looks 
>like a bug to me.

Yes, you're right - we were failing to redefine the "MIMEtype()" 
virtual function for "AMRAudioSource" (of which "AMRDeinterleaver" is 
a subclass).

This will be fixed in the next release of the code.
-- 

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/20100610/06692475/attachment.html>


More information about the live-devel mailing list