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

280 load drm token protected examples in the demo #281

Merged
merged 3 commits into from
Nov 1, 2023

Conversation

StaehliJ
Copy link
Contributor

@StaehliJ StaehliJ commented Nov 1, 2023

Pull request

Description

The hardcoded example for DRM content and token protected content can expire, this PR tackle the issue by loading dynamically some contents from the integration layer server.

Changes made

  • Update example demo to load dynamically content for protected content.
  • Create a new section with protected content only.

Checklist

  • Your branch has been rebased onto the main branch.
  • APIs have been properly documented (if relevant).
  • The documentation has been updated (if relevant).
  • New unit tests have been written (if relevant).
  • The demo has been updated (if relevant).
  • All pull request status checks pass.

@StaehliJ StaehliJ linked an issue Nov 1, 2023 that may be closed by this pull request
3 tasks
val contents: StateFlow<List<Playlist>> = flow {
val listDrmContent = repository.getLatestMediaByShowUrn(SHOW_URN, 2).getOrDefault(emptyList())
val listTokenProtectedContent = repository.getTvLiveCenter(Bu.RTS, 2).getOrDefault(emptyList())
val playlist = createProtectedContentPlaylist(listDrmContent + listTokenProtectedContent)
Copy link
Collaborator

Choose a reason for hiding this comment

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

⚠️ [Android Lint] reported by reviewdog 🐶
SyntheticAccessor: Access to private method createProtectedContentPlaylist of class Companion requires synthetic accessor

@MGaetan89 MGaetan89 merged commit 0dfd225 into main Nov 1, 2023
4 checks passed
@MGaetan89 MGaetan89 deleted the 280-load-drm-token-protected-examples-in-the-demo branch November 1, 2023 14:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Load DRM / token-protected examples in the demo
3 participants