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

fix(SUP-37490): Align captions with clipTo/SeekFrom Values in PlayManifest #880

Merged
merged 1 commit into from
Nov 12, 2024

Conversation

SivanA-Kaltura
Copy link
Contributor

@SivanA-Kaltura SivanA-Kaltura commented Nov 12, 2024

Description of the Changes

Move the processing of seekFrom and clipTo from loadMedia() into configure(), where instead of using values from loadMedia mediaOptions arguments, we can use the combined sources config set by merging mediaOptions values with sources config values (which is where the kalturaSeekFrom, kalturaClipTo values from URL are set).

Which means that:

  • If the values are set ONLY by URL, we use those values to clip captions.

  • If the values are set ONLY by loadMedia, we use those values.

  • If a value is set by URL and ALSO by mediaOptions, we prefer the value set by configuration over the value set by mediaOptions (which actually seems to be a bug because it should be the opposite, but this is the current behavior). So for example, kalturaSeekFrom=30 in URL would override the seekFrom value set by loadMedia(..., { seekFrom: 10, clipTo: 50 }).

  • If one value is set by URL and one is set by mediaOptions
    (i.e. inside the page https://...?kalturaSeekFrom=20) we call loadMedia(..., {clipTo: 60}),
    we use the combined values {seekFrom: 20, clipTo: 60} together to clip the captions.

@SivanA-Kaltura SivanA-Kaltura merged commit fb1522e into master Nov 12, 2024
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants