2023-10-03, 10:32 AM
The web client only controls how are the files sorted in the "Version:" dropdown. This sorting behaviour is described here:
https://jellyfin.org/docs/general/server/media/movies/
However this is only relevant if you're starting playback from the Movie details page (where the dropdown is). If you instead start playback from a library view, the version selection is controlled by this:
https://github.com/jellyfin/jellyfin/blo...er.cs#L337
As far as I can tell the first two DirectPlay/DirectStream checks don't actually do anything and the files seem to just get sorted by bitrate in descending order. For my own purposes I just reversed the order to always get the smaller file by default (and leave the high bitrate one as an "opt-in" that has to be manually selected) which was fairly trivial but a proper smart version selector will be more complicated.
https://jellyfin.org/docs/general/server/media/movies/
However this is only relevant if you're starting playback from the Movie details page (where the dropdown is). If you instead start playback from a library view, the version selection is controlled by this:
https://github.com/jellyfin/jellyfin/blo...er.cs#L337
As far as I can tell the first two DirectPlay/DirectStream checks don't actually do anything and the files seem to just get sorted by bitrate in descending order. For my own purposes I just reversed the order to always get the smaller file by default (and leave the high bitrate one as an "opt-in" that has to be manually selected) which was fairly trivial but a proper smart version selector will be more complicated.