Coder Social home page Coder Social logo

Does playlist ordering work? about gerbera HOT 3 CLOSED

gerbera avatar gerbera commented on May 18, 2024
Does playlist ordering work?

from gerbera.

Comments (3)

whyman avatar whyman commented on May 18, 2024

Hi Graham,

That is not something I have tested, so I would assume it would be the same as MediaTomb. Somebody may have some more experience with playlists, such as @gburca.

I would encourage you to try it and report back, possibly with a test case, if you are wiling to!

from gerbera.

gburca avatar gburca commented on May 18, 2024

For me, it depends on the DLNA renderer I use. My receiver retained the same order as the m3u file. The Roku insisted on sorting the playlist alphabetically.

In my playlists.js I now append the playlistOrder to the title to make everyone happy. Ex:

var playlistOrder = 1;

function addPlaylistItem(location, title, playlistChain, order) {
    // ...
    item.playlistOrder = (order ? order : playlistOrder++);
    item.title = pad(item.playlistOrder, 3) + " " + item.title;
    // ...
}

from gerbera.

GrahamCobb avatar GrahamCobb commented on May 18, 2024

Thanks @gburca. That is what I am doing today (and will probably continue to do for my very long playlists as too many clients also forget where they are in the playlist if you pause them for a while, so it is helpful for moving to the right place to continue). But I would quite like to avoid having to do it for short playlists (especially as many tracks already have lots of information encoded into the title, like composer, movement numbers, etc).

I will give gerbera a try at some point and see if I can find some clients which keep the playlist ordering. I might then even see if I could make nested playlists work.

from gerbera.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.