video and m5

General topics about the Android-Platform itself.
Coding issues please to the subforum right below.

video and m5

Postby jessica » Thu Mar 20, 2008 7:37 am

Hi,
I want to play video files which under res/raw. With the previous version i play the video well. I modify my code with m5. Then i can hear the sound of the file with a black interface. Is this a problem of the new sdk? It puzzled me a long time. Please help me. I'm hurry-up!
jessica
Freshman
Freshman
 
Posts: 4
Joined: Thu Dec 27, 2007 2:45 am

Top

Postby venkat » Thu Mar 20, 2008 7:45 am

Hi jessica,
Can you post your code, then only i can tell anything.
Regards,
Venkat.
venkat
Senior Developer
Senior Developer
 
Posts: 152
Joined: Tue Nov 27, 2007 5:42 am
Location: India

Postby jessica » Thu Mar 20, 2008 7:52 am

hi venkat,
Here is my code:
private void playVideo() {

MediaPlayer mp = MediaPlayer.create(PlayVideo2.this, R.raw.bear);
if( mp== null){
Log.e(TAG, "media doesn't create");
}else{
mp.start();
}
}
jessica
Freshman
Freshman
 
Posts: 4
Joined: Thu Dec 27, 2007 2:45 am

Top

Return to General

Who is online

Users browsing this forum: No registered users and 7 guests