• Jean-Michel Trivi's avatar
    Implement GetPosition for players playing from a URI/FD · 4b0e0b28
    Jean-Michel Trivi authored
    AudioPlayer (OpenSL ES) and MediaPlayer (OpenMAX AL) that play
     media from a URI or FD are implemented on top of an Android
     MediaPlayer. This CL implements requesting the current position
     from the underlying MediaPlayer object inside the event loop.
     At this stage, GetPosition cannot be called from inside a
     callback as the callback is made on the same thread that will
     process the asynchronous part of the GetPosition implementation.
    Add test app for GetPosition.
    
    Change-Id: Ife768bc40e37fc60cc19f6ba84bbe6cb06cc6590
    4b0e0b28
android_GenericMediaPlayer.cpp 13.6 KB