Home | History | Annotate | Download | only in libmedia

Lines Matching refs:msec

465 status_t MediaPlayer::getCurrentPosition(int *msec)
472 *msec = mCurrentPosition;
475 return mPlayer->getCurrentPosition(msec);
480 status_t MediaPlayer::getDuration_l(int *msec)
495 if (msec) {
496 *msec = durationMs;
505 status_t MediaPlayer::getDuration(int *msec)
508 return getDuration_l(msec);
511 status_t MediaPlayer::seekTo_l(int msec)
513 ALOGV("seekTo %d", msec);
516 if ( msec < 0 ) {
517 ALOGW("Attempt to seek to invalid position: %d", msec);
518 msec = 0;
529 if (msec > durationMs) {
532 msec,
535 msec = durationMs;
539 mCurrentPosition = msec;
541 mSeekPosition = msec;
542 return mPlayer->seekTo(msec);
545 ALOGV("Seek in progress - queue up seekTo[%d]", msec);
554 status_t MediaPlayer::seekTo(int msec)
558 status_t result = seekTo_l(msec);