carlanton / m3u8-parser

A simple HLS playlist parser for Java
MIT License
184 stars 60 forks source link

Provider "http" not installed #55

Closed wishygupta closed 1 year ago

wishygupta commented 2 years ago

I am getting this error

java.nio.file.FileSystemNotFoundException: Provider "http" not installed at java.base/java.nio.file.Path.of(Path.java:212) at java.base/java.nio.file.Paths.get(Paths.java:98)

When I read playlist

MasterPlaylist playlist = parser.readPlaylist(Paths.get(new URI(sourceUrl)));

carlanton commented 1 year ago

Hi,

Paths.get usually only works with local files. You probably want to use a http client to fetch the playlist content before feeding it to the parser.

Cheers, Anton