Support and General Use > Audio Playback, Database and Playlists

EXTM3U format support?

<< < (2/5) > >>

Llorean:
It offers a length, in seconds, for each song, so if you parsed the whole playlist and summed it you'd know how much remained.

polygonal:
Initial patch FS#7652. Very basic functionality for now; only works for existing playlists that are already in EXTM3U format.


--- Quote from: soap on August 24, 2007, 01:06:00 AM ---I was not aware EXTM3U provided a way to do such a thing.  As a user I find that information the ONE thing I miss on my WPS.

--- End quote ---

I still don't know how to implement this though. I could  add an array of all track lengths to the current playlist structure, but that can takes up a lots of space... Parse the playlist file every time the playlist remaining time is requested is plainly too inelegant.  ::) And of course, I need to figure out how to fit the EXTM3U scheme into dynamic playlist before this is even possible; otherwise it will only work for existing playlists.

And a question for all: Is saving playlist in EXTM3U format functionality in Rockbox a good idea? If database is ready, the information needed is only a function call away (and this functionality should be disabled if database is not ready or user specifies otherwise in settings).

polygonal:
EXTM3U definitely does not fit into the current control file / dynamic playlist format; and IMO modifying the current scheme for such a trifle does not worth it. There are other ways to find out remaining time in a playlist, but those probably have nothing to do with the EXTM3U format anyway. I wrote a (buggy but mostly working) patch for myself that calls the database for track title when viewing playlist, so that eliminate my initial need for EXTM3U.

I still think support of EXTM3U format is nice though since it is (sort of) standard. The patch FS7652 I think works but needs quite a bit of cleaning up as I read through it again. So I'll probably improve it and keep it in sync if I have time, and add functionality to save EXTM3U or a plugin to convert normal m3u to EXTM3U if I have still more time, but for now I'm switching myself back to study mode and pack up for college dorm ;)

EDIT: Getting titles from the database is really slow on my ipod... I was tricked because it was fast on the simulator. Maybe EXTM3U is still the way to go.

Exitao:
I would certainly like to know who this works for you.  

In fact, aside from encouragement (that's the only way I think I'm qualified to help), my biggest reason to replay is to sucbscribe to this thread.

So I hope you post back when you have any information.

Febs:

--- Quote from: Exitao on August 26, 2007, 01:30:39 PM ---my biggest reason to replay is to sucbscribe to this thread.
--- End quote ---

You do not need to reply to the thread to subscribe.  Just use the "notify" button at the top of the thread.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version