获取当前播放位置的时间点 单位: ms, 需要在收到onPrepare的通知后调用
返回:
当前播放位置的时间点 -1: 失败
Get the timestamp of the current playback position. Unit: milliseconds.
The method is called after receiving the notification sent by onPrepare.
Return:
The current playback position. -1: failure
设置缓冲策略, 在prepaerAsync前调用 默认使用nelpLowDelay为直播低延时模式。
Set a buffer strategy before calling prepareAsync. By default, use nelpLowDelay for low latency mode.
设置拉流超时时间, 需要在设置播放路径接口后调用(范围: 0 ~ 10秒,不包括0,默认是10秒,设置的值超过10秒使用默认值)
Set the playback timeout. Call the API after you configure the playback path. Timeout range: 0 ~ 10 seconds.
The value 0 is excluded. The default value is 10. If a value is set to a number greater than 10, the default value is applied.
设置prepareAsync完成后是否自动播放,若设置成false,需要手动调用start()进行播放, 在prepareAsync前调用
Enable or disable autoPlay after prepareAsync is complete.
If the value is set to false, you must manually play by calling the start() method before prepareAsync is called.
播放过程中切换播放地址,第一次播放不能调用该接口,仅支持当前播放结束切换到下一个视频,或者播放过程中切换下一个视频
参数:
url - 播放地址
You can change the playback URL during playback. You cannot call the API for the first playback.
However, you can change the URL for the following video file or switch to the next video file during playback.
Parameter:
url - playback URL
设置预调度结果有效期
validity 有效期(单位秒)。默认:3060 最小取值:60
Android 可以设置initAndroid 中的Config:refreshPreLoadDuration
Set the validity period for preload results for iOS
validity Validity period in seconds. Default value: 3060. Minimal value: 60.
Android Set initAndroid in Config: refreshPreLoadDuration