What is the purpose of all the client code in the MediaPlayer and Camera code in the native code?
I have the need to implement a new Java side class that talks to a native service via Binder since I am passing a Surface to another process. I have similar interfaces as to what is in the MediaPlayer (like setDisplay) so I planned to clone pasrts of the MediaPlayer code and remove what I don't need. There will be only one application that will need the use of the native side service. I understand all the code from MediaPlayer.java to android_media_MediaPlayer.cpp to mediaplayer.cpp to MediaPlayerService.cpp. The a bit lost in all the client/base code. Pretty clsoe to having my code working, but wanted to make sure I was not missing anything. Is that code there to allow the MediaPlayer to talk to multiple media processing - like PacketVideo, etc? Meaning this is client code on the native side - it has nothing to do with multiple clients on the JAVA app side? In my case where I only have one application and one native side service, is it fine not to need all the client code? Are there any things I should add in the Jave or Jni parts to ensure only one app can be in use at a time? Or just have it fail when it tries to create the native side service? Thanks, Mas -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en