How to set AVPlayer buffer in ios

I am using AVPlayer to play videos in my application.

In my application, I have a function to play the next / previous video, since I can set an empty buffer.

so if anyone has a solution for this, help me.

+5
source share
1 answer

Try

[self.player.currentItem cancelPendingSeeks]; [self.player.currentItem.asset cancelLoading]; 
+1
source

Source: https://habr.com/ru/post/1243573/


All Articles