2015-12-02 76 views
1

我正在使用AVPlayerViewController并使用它我正在播放HLS视频。是否有可能在tvOS的进度条上以不同的时间间隔(例如,10,20等分黄点)添加点?定制AVPlayerViewController进度条

或者是我们可以实现这一点的任何其他方法。

+0

分享你到目前为止尝试过的吗? – Irshad

回答

1

最后得到的答案通过苹果开发者博客和其他各种博客

我们可以用setInterstitialTimeRanges方法设置AVPlayerItem

的InterstitialTimeRanges财产会后

[self.playerItem setInterstitialTimeRanges:self.timeRangeArray]。

其中self.timeRangeArray是将在AVPlayerViewController的进度条上显示的AVInterstitialTimeRange对象的数组。