-
Notifications
You must be signed in to change notification settings - Fork 78
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
implement stream state management #553
Conversation
1dae6e8
to
6c09576
Compare
Closes #55 |
What are |
Should probably be named to reflect the stremio-video properties names:
|
Also do you think handling the extra subtitles tracks would be nice ? |
01f418e
to
42bc988
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.
2 small nitpicks. I need to test the PR more thoroughly.
This is to store any state of any action the user does manually. It should not store any info that is selected by default based on settings. |
In web / theater since we use For embedded tracks it's their index but for extra tracks it's the id returned by the addon: So maybe we can remove |
You can only have one selected subtitle at the time, so there shouldn't be any distinction. What you have is web specific, but still you have to decide which subs you're displaying so in the end there should be a single active id.
Like I mentioned, since it's an index for embedded tracks, you need some extra protection to check that if you want to select that track for the next stream that the order didn't change, so we need the language. |
I mean we need |
Atm in core subtitle id should be the url to the subtitle itself as that's unique, so it will be very different from embedded subs id, so you will be able to just iterate through combined array of embedded subs and addons subs and determine which ones need to be selected. |
I'm talking about |
Don't think we're on the same page here, so to clarify: Embedded subtitles usually come in format Addon subtitle response in core has structure So at any point you can always determine the subtitle Having |
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.
LGMT, Great job!
Allow storing stream state based on user actions (user changes default audio/subs track, changes sync or playback speed) and restoring it when playing the same stream or reusing parts of the state when playing next videos in the meta.