Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(SUP-37490): Align captions with clipTo/SeekFrom Values in PlayMan…
…ifest ### 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](#880), 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.
- Loading branch information