• Jean-Michel Trivi's avatar
    OpenMAX AL: consolidate MediaPlayer implementations under superclass · 68d56b8e
    Jean-Michel Trivi authored
    The OpenMAX AL MediaPlayer object has two implementations: one
     for playing from URI/FD (LocAVPlayer) and one for playing from
     AndroidBufferQueue (StreamPlayer). They both inherit from AVPlayer.
    This CL makes LocAVPlayer and StreamPlayer inherit from
     GenericMediaPlayer (new name of AVPlayer) which encapsulates the
     interaction with an android::MediaPlayer instance running in
     the media server process.
    Also it makes GenericMediaPlayer inherit from GenericPlayer, the
     player superclass also used in OpenSL ES.
    
    After this CL, the OpenMAX AL and OpenSL ES have a common class
     hierarchy for their players.
    
    Change-Id: I5f6e279fc29b7f6f26c9ed5c83a9455cfda88ff4
    68d56b8e
android_GenericMediaPlayer.cpp 3.78 KB