Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open and manage .m3u8 files (playlists) #745

Closed
ghost opened this issue Mar 27, 2023 · 6 comments
Closed

Open and manage .m3u8 files (playlists) #745

ghost opened this issue Mar 27, 2023 · 6 comments

Comments

@ghost
Copy link

ghost commented Mar 27, 2023

It would be useful to be able to open m3u8 files. Not like in eOS6 player where you could have them organized, but just add all of the songs to the queue would be enough.

@jeremypw
Copy link
Collaborator

The solution to this could be similar to the one I suggested for opening music files except the FileChooser would have to filter on playlist files and after selecting one you would have to provide code to interpret the contents and convert it to an array of GLib.File objects before passing to the playback manager.

@jeremypw
Copy link
Collaborator

Yes, you would probably need to clear the previous playlist when loading a new one (or allow the user to choose whether to or not). I am not sure how the UX team would feel about adding too many features to this app though as the intention was to slim it down compared with the previous version.

@BAProductions
Copy link

Go back to using the eOS6 player instead

@ghost
Copy link
Author

ghost commented Apr 6, 2023

Possible duplicate from 4 years ago #515

@ghost
Copy link
Author

ghost commented Apr 22, 2023

Something along the lines of:

// music will run this kind of handlers over and over until all of the files listed are readable by the program
// (e.g. no directories or m3u8)
// files not supported will be ignored and not added to queue
abstract class FileHandler {
  abstract string[] mimeType;
  string[] files();
}

class MP3Handler extends FileHandler { ... }

class M3U8Handler extends FileHandler {
  string[] mimeType = ["audio/x-mpeg-url"]
  // Returns absolute path to all songs
  string[] files() {
    // parse m3u8
    // return files in it
    return ["/home/foo/bar"];
  }
}

@danirabbit
Copy link
Member

Closing as a duplicate of #515

@danirabbit danirabbit closed this as not planned Won't fix, can't repro, duplicate, stale Aug 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants