1. Check out our companion app, Forums for Android! Download from Google Play

Tyring to play video in one AVD (Debian)

Discussion in 'Android Media' started by Jean-Louis Crouzet, Dec 3, 2010.

  1. Jean-Louis Crouzet

    Jean-Louis Crouzet New Member
    Thread Starter

    Dec 1, 2010
    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 (Text):
    1.         switch (Media) {
    2.                 case LOCAL_VIDEO:
    3.                     /*
    4.                      * TODO: Set the path variable to a local media file path.
    5.                      */
    6.                    Toast
    7.                     .makeText(
    8.                             MediaPlayerDemo_Video.this,
    9.                             "JLC OK now for mMediaPlayer!",
    10.                             Toast.LENGTH_LONG).show();
    12.                     mMediaPlayer = MediaPlayer.create(this, R.raw.myvideo);
    13.                     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.



Share This Page