Lines Matching full:msec
360 status_t MediaPlayer::getCurrentPosition(int *msec)
367 *msec = mCurrentPosition;
370 return mPlayer->getCurrentPosition(msec);
375 status_t MediaPlayer::getDuration_l(int *msec)
383 if (msec)
384 *msec = mDuration;
391 status_t MediaPlayer::getDuration(int *msec)
394 return getDuration_l(msec);
397 status_t MediaPlayer::seekTo_l(int msec)
399 LOGV("seekTo %d", msec);
401 if ( msec < 0 ) {
402 LOGW("Attempt to seek to invalid position: %d", msec);
403 msec = 0;
404 } else if ((mDuration > 0) && (msec > mDuration)) {
405 LOGW("Attempt to seek to past end of file: request = %d, EOF = %d", msec, mDuration);
406 msec = mDuration;
409 mCurrentPosition = msec;
412 mSeekPosition = msec;
413 return mPlayer->seekTo(msec);
416 LOGV("Seek in progress - queue up seekTo[%d]", msec);
424 status_t MediaPlayer::seekTo(int msec)
428 status_t result = seekTo_l(msec);