com.aliyun.player

## 接口 AliLiveShiftPlayer

- 所有超级接口:
    IPlayer

      public interface AliLiveShiftPlayer
      extends IPlayer

- - ### 嵌套类概要

    嵌套类
    限定符和类型 | 接口和说明
    --- | ---
    `static interface` | `AliLiveShiftPlayer.OnSeekLiveCompletionListener` Timeshifting success callback.
    `static interface` | `AliLiveShiftPlayer.OnTimeShiftUpdaterListener` Timeshifting update callback.

    - ### 从接口继承的嵌套类/接口 com.aliyun.player.IPlayer

      `IPlayer.ConvertURLCallback, IPlayer.IPResolveType, IPlayer.MirrorMode, IPlayer.OnChooseTrackIndexListener, IPlayer.OnCompletionListener, IPlayer.OnErrorListener, IPlayer.OnInfoListener, IPlayer.OnLoadingStatusListener, IPlayer.OnPreparedListener, IPlayer.OnPreRenderFrameCallback, IPlayer.OnRenderFrameCallback, IPlayer.OnRenderingStartListener, IPlayer.OnReportEventListener, IPlayer.OnSeekCompleteListener, IPlayer.OnSeiDataListener, IPlayer.OnSnapShotListener, IPlayer.OnStateChangedListener, IPlayer.OnSubtitleDisplayListener, IPlayer.OnThumbnailListener, IPlayer.OnTrackChangedListener, IPlayer.OnTrackReadyListener, IPlayer.OnVideoRenderedListener, IPlayer.OnVideoSizeChangedListener, IPlayer.Option, IPlayer.PropertyKey, IPlayer.RenderFrameCallbackConfig, IPlayer.RotateMode, IPlayer.ScaleMode, IPlayer.SeekMode`

  - ### 字段概要

    - ### 从接口继承的字段 com.aliyun.player.IPlayer

      `completion, error, idle, initalized, paused, prepared, started, stopped, unknow`

  - ### 方法概要

    所有方法 实例方法 抽象方法
    限定符和类型 | 方法和说明
    --- | ---
    `long` | `getCurrentLiveTime()` Query the current broadcasting time.
    `long` | `getCurrentTime()` Query the time that the player currently seeks to.
    `void` | `seekToLiveTime(long liveTime)` Seek to a specified time.
    `void` | `setDataSource(LiveShift liveShift)` Specify a timeshift playback source.
    `void` | `setOnSeekLiveCompletionListener(AliLiveShiftPlayer.OnSeekLiveCompletionListener l)` Set a timeshifting success callback.
    `void` | `setOnTimeShiftUpdaterListener(AliLiveShiftPlayer.OnTimeShiftUpdaterListener l)` Set a timeshifting update callback.

    - ### 从接口继承的方法 com.aliyun.player.IPlayer

      `addExtSubtitle, clearScreen, currentTrack, currentTrack, enableHardwareDecoder, getCacheFilePath, getCacheFilePath, getConfig, getDuration, getMediaInfo, getMirrorMode, getNativeContextAddr, getOption, getPlayerName, getPropertyString, getRotateMode, getScaleMode, getSpeed, getVideoHeight, getVideoRotation, getVideoWidth, getVolume, isAutoPlay, isLoop, isMute, pause, prepare, redraw, release, reload, reset, seekTo, seekTo, selectExtSubtitle, selectTrack, selectTrack, sendCustomEvent, setAutoPlay, setCacheConfig, setConfig, setDefaultBandWidth, setDisplay, setDisplayView, setDrmCallback, setFastStart, setFilterConfig, setFilterInvalid, setIPResolveType, setLoop, setMaxAccurateSeekDelta, setMirrorMode, setMute, setOnChooseTrackIndexListener, setOnCompletionListener, setOnErrorListener, setOnInfoListener, setOnLoadingStatusListener, setOnPreparedListener, setOnPreRenderFrameCallback, setOnRenderFrameCallback, setOnRenderingStartListener, setOnReportEventListener, setOnSeekCompleteListener, setOnSeiDataListener, setOnSnapShotListener, setOnStateChangedListener, setOnSubtitleDisplayListener, setOnTrackChangedListener, setOnTrackReadyListener, setOnVideoRenderedListener, setOnVideoSizeChangedListener, setPreferPlayerName, setRenderFrameCallbackConfig, setRotateMode, setScaleMode, setSpeed, setStreamDelayTime, setSurface, setTraceId, setVideoBackgroundColor, setVideoTag, setVolume, snapshot, start, stop, surfaceChanged, updateFilterConfig`

- - ### 方法详细资料

    - #### setDataSource

          void setDataSource(LiveShift liveShift)

      Specify a timeshift playback source.
      参数:
        `liveShift` - The specified timeshift playback source: a local address or a URL. See `LiveShift`.

    - #### getCurrentLiveTime

          long getCurrentLiveTime()

      Query the current broadcasting time.
      返回:
        The current broadcasting time.

    - #### getCurrentTime

          long getCurrentTime()

      Query the time that the player currently seeks to.
      返回:
        The time that the player currently seeks to.

    - #### seekToLiveTime

          void seekToLiveTime(long liveTime)

      Seek to a specified time.
      参数:
        `liveTime` - The specified time that the player will seek to. Unit: milliseconds.

    - #### setOnTimeShiftUpdaterListener

          void setOnTimeShiftUpdaterListener(AliLiveShiftPlayer.OnTimeShiftUpdaterListener l)

      Set a timeshifting update callback.
      参数:
        `l` - The timeshifting update callback.

    - #### setOnSeekLiveCompletionListener

          void setOnSeekLiveCompletionListener(AliLiveShiftPlayer.OnSeekLiveCompletionListener l)

      Set a timeshifting success callback.
      参数:
        `l` - The timeshifting success callback.