kidliuxu / apple-http-osmf

Automatically exported from code.google.com/p/apple-http-osmf
0 stars 0 forks source link

Stream playback fails when audio PTS flag == 0x03 #28

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hi,

I am trying to playback a stream where in the class 
at.matthew.httpstreaming.HTTPStreamingMP2PESAudio
the audio ES processing fails.
The line is in method "processES":

var flags:uint = (packet.readUnsignedByte() & 0xc0) >> 6;
if(flags != 0x02 )
{ 
    throw new Error("No PTS in this audio PES packet");
}

For the stream I'm trying to play the variable "flags" is in fact "0x03" - thus 
the error. If I comment that out I see something happening but it's neither 
playing back video nor sound.
When I just return a blank ByteArray for processES I see the first video frame 
but nothing else happens.

I have no idea what that flags = 3 in the packet header is signaling but I 
would guess it's a different audio format that needs different processing?
Is this an error on the streaming provider's end? If I wanted him to change the 
stream settings/encoding what should I suggest?
Any help would be appreciated!

Original issue reported on code.google.com by radiore...@gmail.com on 15 Sep 2013 at 6:37