<br><br><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">Ömer Düzyol</b> <span dir="ltr"><<a href="mailto:omerduzyol@gmail.com">omerduzyol@gmail.com</a>></span><br>
Date: Mon, Jun 13, 2011 at 6:00 PM<br>Subject: About librtmp for AudioStream<br>To: <a href="mailto:projects@mplayerhq.hu">projects@mplayerhq.hu</a>, <a href="mailto:contact@xbmc.org">contact@xbmc.org</a><br><br><br>Hi,<div>
<br></div><div>I'm using your rtmpdump and librtmp to stream rtmp audio sources in my iOS project . But, I need to extract audio bytes in chunk and push audio data to Apple's AudioQueue to decode sound in realtime. My rtmp sources serves FLV data and contains only m4a audio. I inspected all the source and I found an abstract "HandleAudio", "HandleVideo" methods in the librtmp's source. </div>

<div><br></div><div>static void <b>HandleAudio</b>(RTMP *r, const RTMPPacket *packet);</div><div><br></div><div>I tried to save <b>packet->m_body</b> chunks in a file but it doesnt play. But when I save the stream output like rtmpdump, it produces FLV file and VLC player can play the file correctly.</div>

<div><br></div><div>How can I parse m4a audio bytes in chunked FLV stream without saving all data?</div><div><br></div><div>Thanks a lot,</div><div><br></div><div>Omer</div>
</div><br>