com.aliyun.player

## 接口 AliLiveShiftPlayer

- 所有超级接口:
    IPlayer

      public interface AliLiveShiftPlayer
      extends IPlayer

- - ### 嵌套类概要

    嵌套类
    限定符和类型 | 接口和说明
    --- | ---
    `static interface` | `AliLiveShiftPlayer.OnSeekLiveCompletionListener` 时移seek完成通知。
    `static interface` | `AliLiveShiftPlayer.OnTimeShiftUpdaterListener` 时移时间更新监听事件

    - ### 从接口继承的嵌套类/接口 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.OutputAudioChannel, 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()` 获取当前直播的现实时间
    `long` | `getCurrentTime()` 获取当前直播的播放时间
    `void` | `seekToLiveTime(long liveTime)` 时移到某个时间
    `void` | `setDataSource(LiveShift liveShift)` 设置数据源
    `void` | `setOnSeekLiveCompletionListener(AliLiveShiftPlayer.OnSeekLiveCompletionListener l)` 设置时移seek完成通知。
    `void` | `setOnTimeShiftUpdaterListener(AliLiveShiftPlayer.OnTimeShiftUpdaterListener l)` 设置时移时间更新监听事件

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

      `addExtSubtitle, clearScreen, currentTrack, currentTrack, enableHardwareDecoder, getCacheFilePath, getCacheFilePath, getConfig, getDuration, getMediaInfo, getMirrorMode, getNativeContextAddr, getOption, getPlayerName, getPropertyString, getRotateMode, getScaleMode, getSpeed, getUserData, 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, setOutputAudioChannel, setPreferPlayerName, setRenderFrameCallbackConfig, setRotateMode, setScaleMode, setSpeed, setStreamDelayTime, setSurface, setTraceId, setUserData, setVideoBackgroundColor, setVideoTag, setVolume, snapshot, start, stop, surfaceChanged, updateFilterConfig`

- - ### 方法详细资料

    - #### setDataSource

          void setDataSource(LiveShift liveShift)

      设置数据源
      参数:
        `liveShift` - 本机地址或网络地址。见`LiveShift`。

    - #### getCurrentLiveTime

          long getCurrentLiveTime()

      获取当前直播的现实时间
      返回:
        现实时间

    - #### getCurrentTime

          long getCurrentTime()

      获取当前直播的播放时间
      返回:
        播放时间

    - #### seekToLiveTime

          void seekToLiveTime(long liveTime)

      时移到某个时间
      参数:
        `liveTime` - 时间。单位毫秒

    - #### setOnTimeShiftUpdaterListener

          void setOnTimeShiftUpdaterListener(AliLiveShiftPlayer.OnTimeShiftUpdaterListener l)

      设置时移时间更新监听事件
      参数:
        `l` - 时移时间更新监听事件

    - #### setOnSeekLiveCompletionListener

          void setOnSeekLiveCompletionListener(AliLiveShiftPlayer.OnSeekLiveCompletionListener l)

      设置时移seek完成通知。
      参数:
        `l` - seek完成通知。