John_Yard
10-16-2009, 05:08 AM
Hi All,
I am just trying to play a video from a raw folder available in my project resource by using the following simple code snippet provided by Android developers website.
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
MediaPlayer mp = MediaPlayer.create(getBaseContext(), R.raw.sample); // sample: it is a .m4v file.
mp.start();
}
But when i run my code, it plays only the sound, i didn't see video player or video. Only sound is coming. May i know what should be the problem and how to resolve this issue?
Note: I'm trying on Android OS 1.5 HTC T-mobile handset.
Can someone came across this please provide me your suggestions?
John..
I am just trying to play a video from a raw folder available in my project resource by using the following simple code snippet provided by Android developers website.
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
MediaPlayer mp = MediaPlayer.create(getBaseContext(), R.raw.sample); // sample: it is a .m4v file.
mp.start();
}
But when i run my code, it plays only the sound, i didn't see video player or video. Only sound is coming. May i know what should be the problem and how to resolve this issue?
Note: I'm trying on Android OS 1.5 HTC T-mobile handset.
Can someone came across this please provide me your suggestions?
John..