Interface IQCBasicMediaPlayerControl

  • All Known Implementing Classes:
    QCPlayerView

    public interface IQCBasicMediaPlayerControl
    The interface Iqc basic media player control.
    • Method Detail

      • play

        void play()
        Play.
      • pause

        void pause()
        Pause.
      • getDuration

        int getDuration()
        Gets duration.
        Returns:
        the duration
      • getCurrentPosition

        int getCurrentPosition()
        Gets current position.
        Returns:
        the current position
      • seekTo

        void seekTo​(long ms)
        Seek to.
        Parameters:
        ms - the ms
      • isIdle

        boolean isIdle()
        以下9个方法是播放器在当前的播放状态
        Returns:
        the boolean
      • isPreparing

        boolean isPreparing()
        Is preparing boolean.
        Returns:
        the boolean
      • isPrepared

        boolean isPrepared()
        Is prepared boolean.
        Returns:
        the boolean
      • isBufferingPlaying

        boolean isBufferingPlaying()
        Is buffering playing boolean.
        Returns:
        the boolean
      • isBufferingPaused

        boolean isBufferingPaused()
        Is buffering paused boolean.
        Returns:
        the boolean
      • isPlaying

        boolean isPlaying()
        Is playing boolean.
        Returns:
        the boolean
      • isPaused

        boolean isPaused()
        Is paused boolean.
        Returns:
        the boolean
      • isError

        boolean isError()
        Is error boolean.
        Returns:
        the boolean
      • isCompleted

        boolean isCompleted()
        Is completed boolean.
        Returns:
        the boolean
      • getBufferPercentage

        int getBufferPercentage()
        Gets buffer percentage.
        Returns:
        the buffer percentage
      • canPause

        boolean canPause()
        Can pause boolean.
        Returns:
        the boolean
      • canSeekBackward

        boolean canSeekBackward()
        Can seek backward boolean.
        Returns:
        the boolean
      • canSeekForward

        boolean canSeekForward()
        Can seek forward boolean.
        Returns:
        the boolean
      • start

        void start​(long position)
        从指定的位置开始播放
        Parameters:
        position - 播放位置
      • restart

        void restart()
        重新播放,播放器被暂停、播放错误、播放完成后,需要调用此方法重新播放