Skip to content

Playing a file from a playlists throws an error in VLC  #30

Description

@Borewit

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.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions