WATERMeDIA: Multimedia API

WATERMeDIA: Multimedia API

551k Downloads

Add support for M3U playlist formats in MIME type validation

rlishchyshyn opened this issue ยท 0 comments

commented

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.

if (type != null) {
if (type.startsWith("video"))
throw new VideoTypeException();
if (!type.startsWith("image"))
throw new NoImageException();

I suggest doing something like this

image