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(srgssr-middleware): geoblocked mediaComposition without resourceList #289

Merged
merged 1 commit into from
Jan 24, 2025

Conversation

amtins
Copy link
Member

@amtins amtins commented Jan 11, 2025

Description

The latest IL update removes the resourceList object from geo-blocked mediaComposition. This change in behavior, even though the resourceList object is not a mandatory object, causes the player to return a non-compatible content error instead of a geoblock error.

Changes made

  • modify getSrcMediaObj so that mediaData contains an object containing blockReason and imageUrl if mainResources is empty.
  • add test case

The latest IL update removes the `resourceList` object from geo-blocked `mediaComposition`.
This change in behavior, even though the `resourceList` object is not a mandatory
object, causes the player to return a non-compatible content error instead of a
geoblock error.

- modify `getSrcMediaObj` so that `mediaData` contains an object containing
`blockReason` and `imageUrl` if `mainResources` is empty.
- add test case
@amtins amtins added the bug Something isn't working label Jan 11, 2025
Copy link

github-actions bot commented Jan 11, 2025

PR Preview Action v1.6.0
Preview removed because the pull request was closed.
2025-01-24 17:39 UTC

Copy link

Coverage report

St.
Category Percentage Covered / Total
🟢 Statements
98.12% (+0% 🔼)
834/850
🟢 Branches
93.03% (+0.03% 🔼)
387/416
🟢 Functions 98.69% 226/229
🟢 Lines
98.51% (+0% 🔼)
791/803

Test suite run success

248 tests passing in 10 suites.

Report generated by 🧪jest coverage report action from 02c75d9

Copy link
Contributor

@jboix jboix left a comment

Choose a reason for hiding this comment

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

LGTM

@amtins amtins merged commit 66328dc into main Jan 24, 2025
5 checks passed
@amtins amtins deleted the fix/geoblocked-mediaComposition-without-resourceList branch January 24, 2025 17:39
Copy link

🎉 This PR is included in version 1.16.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working released on @main
Projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

3 participants