WaterMediaTeam / watermedia

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

Add support for M3U playlist formats in MIME type validation #113

Open rlishchyshyn opened 3 days ago

rlishchyshyn commented 3 days ago

This change enhances MIME type validation by adding support for M3U playlist formats, specifically for video and HLS (HTTP Live Streaming) content. It checks for the MIME types application/vnd.apple.mpegurl and application/x-mpegurl, which are used for M3U playlists that are commonly associated with streaming video. https://github.com/WaterMediaTeam/watermedia/blob/5db212cec77c87b4faa3df0ee4878e97d63fa21f/src/main/java/org/watermedia/api/image/ImageFetch.java#L77-L82

I suggest doing something like this

image