Hi
I'm trying to use MediaPlayer, copying the code from KitchenSink, but it's not working, neither in the simulator or on an Android device, even though the video in KitchenSink plays on my Android device. This is my code:
MediaPlayer mp = new MediaPlayer();
try{
mp.setPlayIcon(Resources.openLayered("/theme").getImage("play_button.png"));
mp.setPauseIcon(Resources.openLayered("/theme").getImage("font-419.png"));
mp.setDataSource(URL_PREFIX+"uploads/"+(String)fileInfo.get("path"));
}catch(Exception e){
e.printStackTrace();
}
mStateMachine.findVideoContainer(c).addComponent(BorderLayout.CENTER, mp);
I think the real problem is that somehow the network thread is being blocked, or the queue in any case, since URLImages aren't loading, either, but data from a plain network call using ConnectionRequest works fine. I've attached the project source code. I really hope someone can help, I'm getting very frustrated with these problems. The MediaPlayer and URLImages that aren't working in the ConversationRenderer class.
Thanks a ton to anyone who can help