Seefin / lightweight-theology

Music player app
0 stars 0 forks source link

Add Playlist functionality #4

Open Seefin opened 9 years ago

Seefin commented 9 years ago

From the view side, I need to decide how to display this. From the model side, I think I just need to add a Playlist class, and iterate through it, adding music to a queue.

  1. From the view side, I might display it in a table, with title, artist etc.
  2. From the model side, I have a playlist object (effectively a M3U parser that wraps a list), and just need to modify playFile() to return a Boolean when it's done; then I queue the next song, using the already existing mechanisms.
    • This could make asynchronousity break.
  3. There may be issues with paths - for now, the m3u will need to contain absolute paths.
Seefin commented 9 years ago

From the model side, playlist functionality is about finished. I just need to implement the view for this, and then I'm happy; however, at this point the program can only read playlists, it can't actually write them.

Seefin commented 9 years ago

The program can now read and display playlists. I am currently working to increment to the next song after the current song is finished and find where I have been stupid in converting indicies - something is off-by-one :(