Skip to content

Don't force PillarboxExoPlayer instance in Services#890

Merged
StaehliJ merged 3 commits intomainfrom
improve-media-session-service
Feb 19, 2025
Merged

Don't force PillarboxExoPlayer instance in Services#890
StaehliJ merged 3 commits intomainfrom
improve-media-session-service

Conversation

@StaehliJ
Copy link
Contributor

@StaehliJ StaehliJ commented Feb 11, 2025

Pull request

Description

The goal of this PR is to allow any instance of PillarboxPlayer to be set in PillarboxMediaSessionService and PillarboxMediaLiabraryService like it is already done for sessions.

Changes made

  • PillarboxMediaSessionService.setPlayer takes a PillarboxPlayer instead of a PillarboxExoPlayer.
  • PillarboxMediaLiabraryService.setPlayer takes a PillarboxPlayer instead of a PillarboxExoPlayer.
  • Given player doesn't call anymore setWakeMode(C.WAKE_MODE_NETWORK). This have to be done by the user.

Checklist

  • 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).

@StaehliJ StaehliJ requested a review from MGaetan89 February 11, 2025 13:22
@github-actions
Copy link

github-actions bot commented Feb 11, 2025

Code Coverage

Overall Project 51.14% -0.07% 🟢
Files changed 0% 🟢

Module Coverage
:pillarbox-player 57.28% -0.14% 🟢
Files
Module File Coverage
:pillarbox-player PillarboxMediaSessionService.kt 0% -8.94% 🟢
PillarboxMediaLibraryService.kt 0% -9.32% 🟢

@StaehliJ StaehliJ added this pull request to the merge queue Feb 19, 2025
Merged via the queue into main with commit 6d03707 Feb 19, 2025
8 checks passed
@StaehliJ StaehliJ deleted the improve-media-session-service branch February 19, 2025 16:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

2 participants