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

add filename video param #570

Merged
merged 2 commits into from
Dec 1, 2023
Merged

add filename video param #570

merged 2 commits into from
Dec 1, 2023

Conversation

unclekingpin
Copy link
Contributor

No description provided.

@@ -860,7 +862,8 @@ fn subtitles_update<E: Env + 'static>(
.extend_one(
&VIDEO_SIZE_EXTRA_PROP,
video_params.size.as_ref().map(|size| size.to_string()),
),
)
.extend_one(&VIDEO_FILENAME_EXTRA_PROP, video_params.filename.to_owned()),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since this is going to be part of Stream.behaviourHints object, maybe we should take from there?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that logic is in stremio-video

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tho that means that every client will have to duplicate this logic, extracting values from Stream.behaviourHints and passing them via VideoParams instead of core taking care of that.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, every non js app :(
we can think of way to move that logic to rust

@unclekingpin unclekingpin merged commit df9b510 into development Dec 1, 2023
1 check passed
@elpiel elpiel deleted the filename-video-param branch January 24, 2024 09:43
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

Successfully merging this pull request may close these issues.

2 participants