gpt4 book ai didi

ios - AVPlayer 是否支持直播事件倒带?

转载 作者:塔克拉玛干 更新时间:2023-11-02 10:03:31 29 4
gpt4 key购买 nike

我正在使用 AVPlayer 播放流媒体内容。 AFAIK,有3种流内容

  1. 渐进式下载:与 VOD 一样,这是一个完整的视频。我可以快退和快进并获取视频的时长
  2. 直播:这就像看电视 channel 。我无法获取时长
  3. 现场事件:如足球比赛

如果我错了请纠正我。

我的问题是 AVPlayer 可以处理实时事件吗?例如,足球比赛于早上 7:00 开始,将持续 2 小时。你在早上 8:00 打开流,你能倒回去吗? AVPlayer 是否连续更新持续时间?

另外,我找到了 currentPlaybackTime

For video-on-demand or progressively downloaded content, this value is measured in seconds from the beginning of the current item. Changing the value of this property moves the playhead to the new location. For content streamed live from a server, this value represents the time from the beginning of the playlist when it was first loaded.

不确定对于从服务器实时流式传输的内容,此值表示播放列表首次加载时从开头算起的时间。是什么意思

最佳答案

我发现这份文件很有用 Technical Note TN2288 Example Playlist Files for use with HTTP Live Streaming

基本视频点播 (VOD) 播放列表

The index file is static and contains a complete list of URLs to all media files created since the beginning of the presentation. This kind of session allows the client full access to the entire program

实时播放列表(滑动窗口)

For live sessions, the index file is updated by removing media URIs from the file as new media files are created and made available.

事件播放列表

However, with the EVENT tag, you cannot change the playlist at all; you may only append new segments to the end of the file. They cannot be added at the front. New segments are added until the event has concluded, at which time the EXT-X-ENDLIST tag is appended

所以从技术上讲,我认为 iOS AVPlayer 可以处理直播事件倒带,它只取决于服务器如何生成播放列表文件

关于ios - AVPlayer 是否支持直播事件倒带?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26532209/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com