Get Duration of media
Posted: 18 Nov 2010 11:33
Hello again,us I see the mediaPlayer.getlength() has some problems.
If the file that i have choose isn't playing the getlength() gives me 0 length.When the file that i have choose starts playing the length of file is correct.
Any way to take the duration of the media file that i have choose before playing the file?
The mediaPlayer.prepareMedia() what stands for?with this command the mediaplayer() loads the file for playing and waits for play command???
If the file that i have choose isn't playing the getlength() gives me 0 length.When the file that i have choose starts playing the length of file is correct.
Any way to take the duration of the media file that i have choose before playing the file?
The mediaPlayer.prepareMedia() what stands for?with this command the mediaplayer() loads the file for playing and waits for play command???