• Jean-Michel Trivi's avatar
    Bug 3329759 support commands in SLAndroidBufferQueueItf · 70c49ae2
    Jean-Michel Trivi authored
    Support for EOS, DISCONTINUITY, and DISCONTINUITY with
     a PTS.
    
    - in IAndroidBufferQueue structure, added buffer type
    - modified AdvancedBufferHeader structure to have a buffer
     type-specific structure that contains all the items for each
     buffer
    - added parsing of items when enqueueing a buffer
    - enforce buffer size enqueue to be a multiple of MPEG-2 TS
     block size for buffer of the corresponding types
    - when enqueueing a buffer on an empty queue, implemented
     an asynchronous notification on StreamPlayer to consume
     the newly queued buffer. Verified this kicks off playback
     after having starved the framework for buffers.
    - report unknown duration when using AndroidBufferQueue
    
    Change-Id: I9bde97a6c6ffca7d376b4963313b820b35f50a26
    70c49ae2
android_GenericMediaPlayer.cpp 4.07 KB