Nimisha Ranipa
Nimisha Ranipa

Reputation: 8324

How to set AVPlayer buffer empty in ios

I am using AVPlayer for play Video in my app.

In my app, I have added functionality for play next/previous video so how can i set empty buffer.

so, if any one have solution for this help me.

Upvotes: 5

Views: 1949

Answers (1)

jose920405
jose920405

Reputation: 8049

Try with

[self.player.currentItem cancelPendingSeeks];
[self.player.currentItem.asset cancelLoading];

Upvotes: 2

Related Questions