Skip to content

Conversation

@MGaetan89
Copy link
Contributor

@MGaetan89 MGaetan89 commented Jun 26, 2024

Pull request

Description

This PR puts together #596 and #597, so the former uses the session manager provided by #597.

Changes made

  • Link QoSSessionAnalyticsListener with PlaybackSessionManager.
  • Move the listener property of PlaybackSessionManager to its constructor.
  • Replace QoSSessionTimings.total with QoSSessionTimings.currentToStart and implement its logic.
  • Add some tests to PlaybackSessionManager.

Note

The tests on QoSSessionAnalyticsListener have been disabled for now, because they require a SurfaceView, which is not set supported by Robolectric.

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.

@MGaetan89 MGaetan89 linked an issue Jun 26, 2024 that may be closed by this pull request
@github-actions
Copy link

github-actions bot commented Jun 26, 2024

Code Coverage

Overall Project 52.91% -0.49% 🟢
Files changed 68.82% 🟢

Module Coverage
:pillarbox-player 54.29% -0.97% 🟢
Files
Module File Coverage
:pillarbox-player QoSSessionTimings.kt 100% 🟢
PlaybackSessionManager.kt 93.21% -1.17% 🟢
PillarboxExoPlayer.kt 83.77% 🟢
QoSSessionAnalyticsListener.kt 64.6% -31.27% 🟢

@StaehliJ StaehliJ merged commit 1a41bf2 into qos Jun 27, 2024
@StaehliJ StaehliJ deleted the 600-link-qossession-with-playbacksessionmanager branch June 27, 2024 07:36
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.

Link QoSSession with PlaybackSessionManager

2 participants