[Android] NuPlayer回调通知直至App

@startuml

package App{
    class CallBacks{
         notify mOnPreparedListener notify-END 
         notify mOnCompletionListener notify-END 
         notify mOnBufferingUpdateListener notify-END 
         notify mOnSeekCompleteListener notify-END 
         notify mOnVideoSizeChangedListener notify-END 
         notify mOnTimedTextListener notify-END 
         notify mExtSubtitleDataListener notify-END 
         notify mOnMediaTimeDiscontinuityListener notify-END 
         notify mOnTimedMetaDataAvailableListener notify-END 
         notify mOnErrorListener notify-END 
         notify mOnInfoListener notify-END 
         notify mOnDrmConfigHelper notify-END 
         notify mOnDrmInfoHandlerDelegate notify-END 
    }
}

package libmedia{
    class JAVA{
         notify private static void postEventFromNative(Object mediaplayer_ref,int what, int arg1, int arg2, Object obj)   notify 
         notify public void EventHandler::handleMessage(Message msg)   notify 
    }
    class JNI{
        JNIMediaPlayerListener
         notify void JNIMediaPlayerListener::notify(int msg, int ext1, int ext2, const Parcel *obj)  notify 
    }
    class MediaPlayer{
         notify  void MediaPlayer::notify(int msg, int ext1, int ext2, const Parcel *obj)  notify 
    }
}

package Interface{
    abstract class IMediaPlayerClient{
        IMediaPlayerClient.h
        处理来自Client的回调
         notify  {abstract}  void notify(int msg, int ext1, int ext2, const Parcel *obj) = 0;   notify 
    }
}

package libmediaplayerservice{
    class NuPlayerDriver{
         notify  void NuPlayerDriver::notifyListener_l(int msg, int ext1, int ext2, const Parcel *in)  notify 
    }
    class NuPlayer{
         notify-START  xxx()  notify 
    }
    class Client{
         notify  void MediaPlayerService::Client::notify(int msg, int ext1, int ext2, const Parcel *obj)  notify 
    }
}

NuPlayer --> NuPlayerDriver
NuPlayerDriver --> Client
IMediaPlayerClient --> MediaPlayer
Client --> IMediaPlayerClient
MediaPlayer --> JNI
JNI --> JAVA
JAVA --> CallBacks

@enduml

你可能感兴趣的:(Android,framework,android)