Opened 9 years ago

Last modified 7 months ago

#6670 new bug

mediaplayer unable to play .m3u files (easy)

Reported by: the ringmaster Owned by: stippi
Priority: normal Milestone: R1
Component: Applications/MediaPlayer Version: R1/alpha2
Keywords: Cc:
Blocked By: Blocking: #9567
Has a Patch: no Platform: All

Description (last modified by stippi)

When I try to play a Jamendo .m3u file, the mediaplayer gives an error and crashes. I have attached a screenshot of the problem. The .m3u file contains:

#EXTM3U
#EXTINF:206,...si no vuela
#EXTALBUMARTURL:http://imgjam.com/albums/s76/76006/covers/1.200.jpg
http://stream28.jamendo.com/stream/656339/mp31/01%20-%20borriqueros%20-%20...si%20no%20vuela.mp3?u=0&h=26aa290ffe
#EXTINF:296,miss manias
#EXTALBUMARTURL:http://imgjam.com/albums/s76/76006/covers/1.200.jpg
http://stream28.jamendo.com/stream/656340/mp31/02%20-%20borriqueros%20-%20miss%20manias.mp3?u=0&h=0162c25a67
#EXTINF:298,en mis 13
#EXTALBUMARTURL:http://imgjam.com/albums/s76/76006/covers/1.200.jpg
http://stream28.jamendo.com/stream/656341/mp31/03%20-%20borriqueros%20-%20en%20mis%2013.mp3?u=0&h=4fc7739208
#EXTINF:171,euphoria
#EXTALBUMARTURL:http://imgjam.com/albums/s76/76006/covers/1.200.jpg
http://stream28.jamendo.com/stream/656337/mp31/04%20-%20borriqueros%20-%20euphoria.mp3?u=0&h=e0ca5a7abb
#EXTINF:214,en su intención
#EXTALBUMARTURL:http://imgjam.com/albums/s76/76006/covers/1.200.jpg
http://stream28.jamendo.com/stream/656338/mp31/05%20-%20borriqueros%20-%20en%20su%20intencion.mp3?u=0&h=0e246ad44e

Attachments (1)

m3uerror.png (436.2 KB ) - added by the ringmaster 9 years ago.

Download all attachments as: .zip

Change History (10)

by the ringmaster, 9 years ago

Attachment: m3uerror.png added

comment:1 by stippi, 9 years ago

Description: modified (diff)

comment:2 by stippi, 9 years ago

MediaPlayer does not yet support streaming, but the crash should not happen indeed.

comment:3 by halilpk, 8 years ago

Haiku revision: hrev42211 still a bug. The system opens m3u files with StyledEdit App.You can't open it with MediaPlayer . System: Haiku hrev1-alpha3 on VMware workstation 8 on windows 7 32 bit

comment:4 by pulkomandy, 5 years ago

Can't reproduce the crash. Things are not going too well however:

  • We don't even parse the M3U file. Supporting that and adding the items to the playlist would be nice, even if we can't play them
  • When run from Terminal, with the m3u file as an argumen, MediaPlayer shows the BAlert saying it can't play it. The main window doesn't come up, but the application continues running.

comment:5 by pulkomandy, 5 years ago

Summary: mediaplayer unable to play .m3u filesmediaplayer unable to play .m3u files (easy)

comment:6 by pulkomandy, 5 years ago

Blocking: 9567 added

(In #9567) This is the (basic) m3u playlist format. So a duplicate of #6670.

in reply to:  4 comment:7 by jakob, 7 months ago

Hi, I'm interested in working on this ticket.

Replying to pulkomandy:

Can't reproduce the crash. Things are not going too well however:

  • We don't even parse the M3U file. Supporting that and adding the items to the playlist would be nice, even if we can't play them
  • When run from Terminal, with the m3u file as an argumen, MediaPlayer shows the BAlert saying it can't play it. The main window doesn't come up, but the application continues running.

Is this description of M3U support still current? I've tried to access a few streams and ran into an OOM each time, which I'd imagine is an issue in and of itself, but I'm interested in whether or not MediaPlayer can at least add items from the M3U to the playlist.

comment:8 by pulkomandy, 7 months ago

Things have changed since 4 years ago, as now we have actual streaming support. I suggest trying:

  • An m3u file which plays local files (to work without streams, first)
  • An m3u file which plays online music (Jamendo if they still offer that feature, or some other website, or create an m3u pointing to http files)

And see what happens.

Note that Jamendo files are not streaming, there is just one track in each entry. This is different from webradios, which usually also offer an m3u file, but the content is a single mp3 (or other) url that plays a continuous stream of music. We should handle both cases, but currently I think the first will work better.

comment:9 by waddlesplash, 7 months ago

hrev53037 implements loading an M3U with entries pointing to local files; it does not yet support M3Us with URLs. Supporting this will probably not be too difficult however.

Note: See TracTickets for help on using tickets.