简体   繁体   English

在http live流(M3U8)上寻求AVPlayer

[英]Seeking of AVPlayer on http live stream(M3U8)

If you do seeking again and again, you will get wrong current play time by AVPlayer's "currentTime" method. 如果您一次又一次地搜索,则通过AVPlayer的“ currentTime”方法将获得错误的当前播放时间。

if don't seek, AVPlayer's "currentTime" is fine. 如果不寻求,则AVPlayer的“ currentTime”很好。 However, our users often do seeking, and we will lost right current time. 但是,我们的用户经常会寻找,而我们将失去当前的正确时间。 Unfortunately current time is very important for our business. 不幸的是,当前时间对我们的业务非常重要。 I have researched every page related with the question at stackoverflow. 我研究了与stackoverflow问题相关的每个页面。

No answer. 没有答案。 No possible solution. 没有可能的解决方案。 No any idea. 不知道

Stackoverflow is so good website for programer to discuss hard problems. Stackoverflow是一个非常好的网站,程序员可以用来讨论棘手的问题。 I still keep hope about you, genius guys. 我仍然对你充满希望,天才们。


AVPlayerItem *thePlayerItem = [self.player currentItem];
if (thePlayerItem.status == AVPlayerItemStatusReadyToPlay)
{

        CMTime nowTime = self.player.currentTime;
}

Apple tell me, the problem is related with m3u8 segment. 苹果告诉我,问题与m3u8段有关。 Bad m3u8 segment or bad m3u8 file is the resource of the problem. 错误的m3u8段或错误的m3u8文件是问题的资源。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 m3u8音频流在MPMoviePlayerController中播放,但不在AVPlayer中播放吗? - m3u8 audio stream plays in MPMoviePlayerController but not AVPlayer? 使用.m3u8和.ts文件与iPhone作为服务器的直播 - Live Stream using .m3u8 and .ts files with iPhone as server 如何在iOS上下载LIVE HLS m3u8流 - How to download a LIVE HLS m3u8 stream on iOS Chromecast可以在默认接收器上投射.m3u8实时流吗? - Can Chromecast cast .m3u8 live stream on default receiver? HTTP Live流iOS无法刷新索引.m3u8文件 - HTTP Live streaming iOS not refreshing the index .m3u8 file iPhone可以流式传输彩信,RTSP(RTP,SDP),HTTP渐进式流媒体,HTTP直播(M3U8)文件 - Can iPhone stream MMS, RTSP (RTP, SDP), HTTP progressive streaming ,HTTP live streaming (M3U8) files 当AVPlayer播放m3u8流时如何捕获图像? - How can I capture an image when AVPlayer playing m3u8 stream? 如何在 iOS 应用程序中创建 HTTP 服务器,将 .m3u8 数据提供给 AVPlayer? - How to create HTTP server inside iOS app that will feed the .m3u8 data to AVPlayer? 在AVPlayer中静音HTTP实时流 - Mute an HTTP Live Stream in an AVPlayer 如何从i3上的m3u8直播中获取缩略图? - How to get thumbnail photo from m3u8 live stream on ios?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM