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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

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

PR Preview Action v1.6.0

🚀 View preview at
https://SRGSSR.github.io/pillarbox-web/pr-preview/pr-289/

Built to branch gh-pages at 2025-01-11 19:49 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: 🍿 Code Review
Development

Successfully merging this pull request may close these issues.

1 participant