0

Possible Duplicate:
How to display Video in the Android Emulator from Remote URL?

I want to show/watch a video using a VideoView in android, my emulator only plays the sound of the video but doesnt show the video itself. Can you please help. here is the source code

VideoView vv;

   vv = (VideoView)findViewById(R.id.videoView);
    vv.setVideoPath("/sdcard/documentariesandyou.mp4");
    MediaController mediaController = new MediaController(this); 
     mediaController.setAnchorView(vv);  
    vv.setMediaController(mediaController); 
    vv.start();

}

}

Community
  • 1
  • 1
  • That is emulator problem. Please search before ask. Duplicate [link](http://stackoverflow.com/q/1425502/1050058) and [link](http://stackoverflow.com/q/2184364/1050058) – Trung Nguyen Sep 28 '12 at 01:11

1 Answers1

1

Testing video playback in an emulator is not a good idea. Due to performance issues you might end with the problem you mentioned.
Please try to test it in on a device first.

Lazy Ninja
  • 22,342
  • 9
  • 83
  • 103