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(FEC-14248): shouldAddKs to be based on if the session contains ks #916

Merged
merged 2 commits into from
Feb 10, 2025

Conversation

roeedean
Copy link
Contributor

@roeedean roeedean commented Feb 3, 2025

Description of the Changes

shouldAddKs to be based on if the session contains ks instead of session.isAnonymous === false

Related PR: kaltura/playkit-js-providers#259

FEC-14248

roeedean added a commit to kaltura/playkit-js-providers that referenced this pull request Feb 10, 2025
### Description of the Changes

- Added a new service for Kaltura User Get using it inside the
OVPProvider
- Concentrated the dealing with the flag config.session._isAnonymous in
a single place in the file, instead of several places.
- Fixed the flag config.session._isAnonymous logic:
until now, config.session._isAnonymous was set to 'false' for every
session that has ks (even if it's anonymous ks).
The fix insure that the flag config.session._isAnonymous will be set to
'false' only for sessions that have ks containing a valid user inside,
otherwise the flag will be set to 'true'.

Related PR: kaltura/kaltura-player-js#916

[FEC-14248](https://kaltura.atlassian.net/browse/FEC-14248)

[FEC-14248]:
https://kaltura.atlassian.net/browse/FEC-14248?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ

---------

Co-authored-by: Roee Dean <[email protected]>
@roeedean roeedean merged commit de71d11 into master Feb 10, 2025
11 checks passed
roeedean added a commit to kaltura/playkit-js-providers that referenced this pull request Feb 11, 2025
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.

2 participants