[英]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.