Opened 14 years ago

Closed 4 years ago

#6670 closed bug (fixed)

mediaplayer unable to play .m3u files (easy)

Reported by: the ringmaster Owned by: korli
Priority: normal Milestone: R1/beta3
Component: Applications/MediaPlayer Version: R1/alpha2
Keywords: Cc:
Blocked By: Blocking: #9567
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 14 years ago.

Download all attachments as: .zip

Change History (15)

by the ringmaster, 14 years ago

Attachment: m3uerror.png added

comment:1 by stippi, 14 years ago

Description: modified (diff)

comment:2 by stippi, 14 years ago

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

comment:3 by halilpk, 13 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, 10 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, 10 years ago

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

comment:6 by pulkomandy, 10 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, 6 years 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, 6 years 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, 6 years 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.

comment:10 by pulkomandy, 4 years ago

Milestone: R1R1.1

comment:11 by xray7224, 4 years ago

I've got a patch which fixes this https://review.haiku-os.org/c/haiku/+/4050

comment:12 by korli, 4 years ago

Milestone: R1.1R1/beta3

comment:13 by korli, 4 years ago

Owner: changed from stippi to korli
Status: newassigned

comment:14 by korli, 4 years ago

Resolution: fixed
Status: assignedclosed

Patch applied in hrev55165. This was the last part of the ticket.

Note: See TracTickets for help on using tickets.