WaterMediaTeam / watermedia

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

[NetworkAPI] Overhaul entrypoints #24

Open SrRapero720 opened 1 year ago

SrRapero720 commented 1 year ago

OVERVIEW

Current UrlAPI and NetworkAPI sucks. The most important change is have an URL-like class containing the whole set of variables (source string, URL, attached fixers and url type). Catching the URLs is neccesary to avoid had to re-fix the URL (in case urls needs to be "Refixed" everytime can be done just "reloading it".

Network request should be done using java 8 openConnection in a wrapper class just to have better control of the InputStream and the gson coversion

This also will add support for some custom protocols for local files (Addressing all kind of special support on modders/devs side)

PROTOCOLS here is the list of the added protocols to let users have access to their local files

Task to acomplish this

SrRapero720 commented 1 month ago

Updated protocols

Discarted