Download the New LearnVern Android App and enter Lucky Draw to win Free Certificate
Multimedia in Android
In today's video our topic is Multimedia.
Multimedia is essential part of day to day life. Everywhere we are connected with multimedia personally or professionally.
To handle audio and video with Android we use Media player. Media player is the basic class that we will use to work with audio and video services.
For this we will need to create media player instance. It's syntax is :
MediaPlayer mediaPlayer=MediaPlayer.create(this, R.raw.song);
The main methods of media player are, mediaPlayer.start(); , mediaPlayer.pause(); ,
and mediaPlayer.reset(); .
We also have different methods of media player to work with like reset(), isPlaying(), seekTo(position), release(), getTrackInfo() etc...
Have a friend to whom you would want to share this course?