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