Hi All,
I'm merely trying to play a video with the embedded player of the API MediaPlayerDemo example from Android (latest version) into a dedicated AVD as follow:
---------
Name: My_AVD_002
Path: /home/cnxt/.android/avd/My_AVD_002.avd
Target: Android 2.2 (API level 8)
Skin: HVGA
I choose one 3GP video from a BlackBerry (Torch) source and I have only the sound of my video. I'm working under Eclipse IDE with debugger working and so on but still no video.
I just customized the file /home/cnxt/android-sdk-linux_86/samples/android-8/ApiDemos/src/com/example/android/apis/media/MediaPlayerDemo_Video.java
with this (but I'm not a java expert):
and of course I have only sound not video. May be that's normal because there is no video sample anyway? Any idea what could be wrong here?
Many thanks in anticipation for your comments / answers.
Regards,
JL
I'm merely trying to play a video with the embedded player of the API MediaPlayerDemo example from Android (latest version) into a dedicated AVD as follow:
---------
Name: My_AVD_002
Path: /home/cnxt/.android/avd/My_AVD_002.avd
Target: Android 2.2 (API level 8)
Skin: HVGA
I choose one 3GP video from a BlackBerry (Torch) source and I have only the sound of my video. I'm working under Eclipse IDE with debugger working and so on but still no video.
I just customized the file /home/cnxt/android-sdk-linux_86/samples/android-8/ApiDemos/src/com/example/android/apis/media/MediaPlayerDemo_Video.java
with this (but I'm not a java expert):
Code:
switch (Media) {
case LOCAL_VIDEO:
/*
* TODO: Set the path variable to a local media file path.
*/
Toast
.makeText(
MediaPlayerDemo_Video.this,
"JLC OK now for mMediaPlayer!",
Toast.LENGTH_LONG).show();
mMediaPlayer = MediaPlayer.create(this, R.raw.myvideo);
mMediaPlayer.start();
Many thanks in anticipation for your comments / answers.
Regards,
JL