-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Fix audio/subtitle index reset when switching episodes #6112
Fix audio/subtitle index reset when switching episodes #6112
Conversation
eb0d790
to
3812791
Compare
72787e1
to
d671da9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ESLint doesn't pass. Please fix all ESLint issues.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ESLint doesn't pass. Please fix all ESLint issues.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ESLint doesn't pass. Please fix all ESLint issues.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Switching to the previous episode doesn't restore the last selected subtitles (it performs "auto set"). The previous behavior was the same.
According to the Item Details page, we should use DefaultSubtitleStreamIndex
from the item, but it isn't populated.
We can probably skip autoSetNextTracks
when switching back, the server will return the last selected streams. But we need some kind of "marker" in playOptions
.
This doesn't fix secondary subtitles, though.
Let's assume for now that we fix the switching to the next episode and leave the switching to the previous episode for the next PR.
I think we need to squash commits. Other than that, LGTM.
This should be as simple as passing a flag to |
I'd prefer if we could fix the inconsistencies together in one PR |
From a quick look, yes. IMO, it is better to use
I'd prefer to make one change per commit or even PR (if we are squashing PRs on merge). |
7d3487c
to
4c31742
Compare
Quality Gate passedIssues Measures |
Cloudflare Pages deployment
|
@dmitrylyzo Hey, sorry, I can't seem to find |
It doesn't exist. We need to introduce it here:
Then, we can use it to skip "autoset". |
Apologies if this is not the right place to continue this discussion. Skipping autoset when going back doesn't seem to always pick the previously selected tracks in my testing. I've tried it like this:
Manually POSTing to PlaybackInfo also does not seem to return the previously specified stream indexes when omitted. This is my branch https://github.com/viown/jellyfin-web/commits/keep-settings-on-previous-track/ |
Based on the comment from here #5998 (comment).
Fixes audio/subtitle track not being set according to the UI's selected tracks.
I've tested this on a variety of different media with "Set audio/subtitle track based on previous item" on and off and it seems to work as expected, but any further testing would be appreciated.
Changes
Set
audioStreamIndex
&subtitleStreamIndex
to match player.Issues
Fixes #3994
Fixes #5873