Playing a file may throw an error like:
VLC Is Unable to Open the MRL 'file:///C:/Users/Borewit/AppData/Local/Temp/%EF%BB%BF'.
This is caused by the fact a temporary .m3u8 file is generated, and on Windows and on Windows only the playlist is prefixed with a BOM field.
|
if (OperatingSystem.isWindows()) |
|
{ |
|
// For some reason, linux players seem to choke on this header when I addAt it... perhaps the stream classes do it automatically. |
|
output.write(UnicodeUtils.getBOM("UTF-8")); |
|
} |
VLC not being able to handle a BOM field is also raised against VLC: https://code.videolan.org/videolan/vlc/-/issues/21860
listFix() version 2.4.2
VLC version 3.0.18
Workaround, use foobar2000 as the default player for .m3u8 playlists.
Playing a file may throw an error like:
This is caused by the fact a temporary
.m3u8file is generated, and on Windows and on Windows only the playlist is prefixed with a BOM field.listFix/src/main/java/listfix/io/writers/playlists/M3UWriter.java
Lines 142 to 146 in 9c15414
VLC not being able to handle a BOM field is also raised against VLC: https://code.videolan.org/videolan/vlc/-/issues/21860
listFix() version 2.4.2
VLC version 3.0.18
Workaround, use foobar2000 as the default player for
.m3u8playlists.