Pregunta

If you do seeking again and again, you will get wrong current play time by AVPlayer's "currentTime" method.

if don't seek, AVPlayer's "currentTime" is fine. 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.

No answer. No possible solution. No any idea.

Stackoverflow is so good website for programer to discuss hard problems. I still keep hope about you, genius guys.


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

        CMTime nowTime = self.player.currentTime;
}
¿Fue útil?

Solución

Apple tell me, the problem is related with m3u8 segment. Bad m3u8 segment or bad m3u8 file is the resource of the problem.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top