@Override
 public int getCurrentPosition() {
   if (mMediaPlayer != null && mIsMediaReadyToBePlayed) {
     return (int) mMediaPlayer.getCurrentPosition();
   } else {
     return -1;
   }
 }
Beispiel #2
0
 public long getCurrentPosition() {
   if (isInPlaybackState()) return mMediaPlayer.getCurrentPosition();
   return 0;
 }
Beispiel #3
0
 public long getCurrentPosition() {
   if (mInitialized) return mPlayer.getCurrentPosition();
   return 0;
 }