WaterMediaTeam / watermedia

Library and API for Multimedia, Powered by LibVLC. Working on pure JAVA and all Minecraft Modloaders
13 stars 10 forks source link

[CacheAPI] Overhaul CacheCore and build it in a API #33

Open SrRapero720 opened 1 year ago

SrRapero720 commented 1 year ago

Rework of the internal CacheCore and make it accessible in a API Should works hand-to-hand with the ImageAPI and PlayerAPI for local catching multimedia (like videos)

Speeding media loading times and reduce bandwidth usage.

SrRapero720 commented 7 months ago

TODO related to #61 We should also modify fallback code to ensure (even if digest fails) not have long filenames or duplicated filenames (which occurred sometimes using Base64

zFERDQFREZrzfq commented 7 months ago

As far as I know, the fallback is actually never used since the digest can only fail if the SHA-256 is actually removed from the Java's MessageDigest. I left it to have a return outside of the try, but I don't know if it's the best way to do.

SrRapero720 commented 7 months ago

is a "just in case" fallback. modding is super weird. native threads have problems with forge's event bus... making context classloader always null (instead of fallback on system classloader) so i expect everything at this point

SrRapero720 commented 1 month ago

this needs more observation. Is planned merge it on MRL class