Play .m3u file

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By ivanmih81
:warning: Old Version Published before Godot 3 was released.

Hey. How to play the “.m3u” file. Thank you

:bust_in_silhouette: Reply From: ludosar

a “.m3u” file is just a text file with links to either local or web hosted mp3 files.

If you want to play this file, you’ll have to parse it yourself, discarding all the lines starting with a #, and then play each file with a streamplayer node.

And don’t forget to convert them to ogg or something else Godot actually can handle.

atze | 2016-09-05 09:08

Many thanks. I’ll try

ivanmih81 | 2016-09-05 09:34

But if the file like this -

ivanmih81 | 2016-09-05 09:56

this file contains a link to a stream. I don’t think Godot is able to play an online stream.

ludosar | 2016-09-05 10:10

Ok. Many thanks.

ivanmih81 | 2016-09-05 10:30