• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Tyring to play video in one AVD (Debian)

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):
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();
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
 

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones