Tag:android style java Issues amp size on sp
in order to find the buffer playback mode on the Android platform, it took a lot of effort, in this exploration process, Decisively negated the way native media, and a nuplayer was attempted before the steaming Source player was found. We put the android inside the Nuplayer alone can be used to run the NDK compiler loading library, running on the Samsung and Xiaomi mobile phone is no problem, the overall function is OK, but want Android platform take-all, will encounter many compatibility issues, because nuplayer to docking the underlying OMX-related modules, not each of the OMX package to do in place or implemented, so there will be crashes in other platforms and other issues, Finally by tracking the Android multimedia framework from the Java layer (e.g. Android4.3\frameworks\base\media\java\android\media\ Mediaplayer.java) starts, then the JNI layer (android4.3\frameworks\base\media\jni\android_media_mediaplayer.cpp), and then the Media Library layer (android4.3\frameworks\av\media\libmedia\mediaplayer.cpp In this layer of careful words will find that there is a datasource almost rarely used and in the JNI layer will never be called, this mysterious datasource is Istreamsource,api prototype for status_t MediaPlayer:: Setdatasource (const sp<istreamsource> &source).