Play .M3G file in Android

Tutorials concerning the OpenGL® ES cross-platform API for full-function 2D and 3D graphics on the Google-Android platform.

Play .M3G file in Android

Postby chenky2981988 » Wed May 12, 2010 5:12 am

Hello Everyone
If someone know that How to play .M3G file in Android ?If know Pls Reply me
chenky2981988
Freshman
Freshman
 
Posts: 2
Joined: Tue May 11, 2010 12:53 pm
Location: India

Top

Postby vanessagarcia1 » Wed May 12, 2010 5:41 am

First you have to set this ,
1 mMediaPlayer = new MediaPlayer();
2 mMediaPlayer.setDataSource(path);
3 mMediaPlayer.setDisplay(holder);
4 mMediaPlayer.prepareAsync();
5 mMediaPlayer.setOnBufferingUpdateListener(this);
6 mMediaPlayer.setOnCompletionListener(this);
7 mMediaPlayer.setOnPreparedListener(this);
8 mMediaPlayer.setAudioStreamType(AudioManager.STREAM_MUSIC);
vanessagarcia1
Freshman
Freshman
 
Posts: 3
Joined: Sat May 08, 2010 7:05 am

Top

Return to Android 2D/3D Graphics - OpenGL Tutorials

Who is online

Users browsing this forum: No registered users and 4 guests