Player icon indicating copy to clipboard operation
Player copied to clipboard

Caching AVAssets

Open ghost opened this issue 9 years ago • 9 comments

Hi again @piemonte,

What would be the best way for caching AVAssets for multiple Player instances, i.e. a tableview and in each cell holds a Player instance with a different URL path? I am striving for the same logic being done for images, like in many other image caching optimised examples and libraries specialised with images. I will probably use HanekeSwift or something that I have to build from the ground up. Probably I have to modify or customize the setupAsset function in Player, but I am not certain yet.

I am just curious what comes to your mind about this @piemonte?

ghost avatar May 09 '15 17:05 ghost

+1

confile avatar May 11 '15 12:05 confile

+1

itsmeonline avatar Sep 09 '15 15:09 itsmeonline

+1

AncAinu avatar Jan 12 '16 20:01 AncAinu

I'm doing this with a tableview using this branch at my fork: https://github.com/gazialankus/Player/tree/separating I separated the assets to a PlayerContents class.

However, this line seems to happen a bit too early and sometimes I see the first frame of the previous video right after the new video is loaded: https://github.com/gazialankus/Player/blob/separating/Sources/Player.swift#L665

I hide/show, remove/add Player, but I still see the first frame sometimes.

Any input or help is appreciated to get rid of this "first frame" bug. Feel free to use this idea to separate assets from Player.

gazialankus avatar Apr 17 '16 15:04 gazialankus

+1

ghost avatar Mar 15 '17 11:03 ghost

had a big request for caching support, so may add in the coming weeks

piemonte avatar Sep 08 '19 20:09 piemonte

+1

yunustek avatar Sep 27 '19 13:09 yunustek

🙏 any updates on caching? @piemonte

honga avatar Jan 06 '20 16:01 honga

@honga negotiations never finalized on the contract, unfortunately

piemonte avatar Jul 23 '20 16:07 piemonte

+1 - Any updates on adding caching support?

Or, does anyone have any suggestions on how to implement your own version of video caching?

waterdrake avatar Nov 05 '23 07:11 waterdrake