Skip to content

Conversation

@StaehliJ
Copy link
Contributor

@StaehliJ StaehliJ commented Sep 9, 2024

Pull request

Description

First implementation of the Monitoring specification defined here

Currently the monitoring doesn't send data to a real server!

Changes made

  • Add playback metrics statistics PlaybackMetrics.
  • PlaybackSessionManager to handle playback session.
  • Display playback metrics inside the demo.

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 requested a review from MGaetan89 September 9, 2024 13:24
@MGaetan89 MGaetan89 added this to the QoS milestone Sep 10, 2024
@github-actions
Copy link

github-actions bot commented Sep 10, 2024

Code Coverage

Overall Project 50.49% -4.91% 🟢
Files changed 75.23% 🟢

Module Coverage
:pillarbox-core-business 80.41% -0.08% 🟢
:pillarbox-player 60.17% -8.87% 🟢
:pillarbox-ui 0.06% -0.78% 🟢
Files
Module File Coverage
:pillarbox-core-business HttpMediaCompositionService.kt 100% 🟢
CommandersActStreaming.kt 95.31% 🟢
AkamaiTokenProvider.kt 72.36% 🟢
DefaultPillarbox.kt 51.61% -3.23% 🟢
DefaultHttpClient.kt 0% 🟢
:pillarbox-player PillarboxLoadControl.kt 100% 🟢
EventTime.kt 100% 🟢
Heartbeat.kt 98.52% -1.48% 🟢
PillarboxHttpClient.kt 97.8% -2.2% 🟢
PlaybackMetrics.kt 97.39% -2.61% 🟢
SessionMetrics.kt 94.35% -5.65% 🟢
LoadingTimes.kt 94.3% -5.7% 🟢
PlaybackSessionManager.kt 92.97% -7.03% 🟢
Monitoring.kt 89.77% -10.23% 🟢
PillarboxMediaSource.kt 88.39% -6.7% 🟢
TotalPlaytimeCounter.kt 85.71% -9.09% 🟢
ErrorMessageData.kt 84.72% -15.28% 🟢
PillarboxExoPlayer.kt 83.48% -4.01% 🟢
StallDetector.kt 82.43% -17.57% 🟢
EventMessageData.kt 76.95% -23.05% 🟢
Message.kt 76.03% -23.97% 🟢
PlayerCallbackFlow.kt 70.44% -1.65% 🟢
PillarboxEventLogger.kt 69.92% -7.52% 🟢
MetricsCollector.kt 67.97% -32.03% 🟢
PillarboxAnalyticsCollector.kt 64.19% -11.49% 🟢
Session.kt 58.12% -41.88% 🟢
PillarboxMediaSourceFactory.kt 54.6% 🟢
Player.kt 39.57% -3.04% 🟢
Timings.kt 18.18% -81.82% 🟢
MonitoringMessageHandler.kt 11.96% -88.04% 🟢
PillarboxAnalyticsListener.kt NaN% NaN% 🟢
MessageData.kt 0% 🟢
BitrateUtil.kt 0% 🟢
:pillarbox-ui ComposablePlayer.kt 0% -5.41% 🟢

MGaetan89 and others added 23 commits September 12, 2024 09:00
…times (#596)

Co-authored-by: Joaquim Stähli <joaquim.staehli@gmail.com>
Co-authored-by: Gaëtan Muller <m.gaetan89@gmail.com>
Co-authored-by: Gaëtan Muller <gaetan.muller@rts.ch>
Co-authored-by: Gaëtan Muller <gaetan.muller@rts.ch>
Co-authored-by: Gaëtan Muller <m.gaetan89@gmail.com>
Co-authored-by: Gaëtan Muller <gaetan.muller@rts.ch>
Co-authored-by: Gaëtan Muller <m.gaetan89@gmail.com>
Co-authored-by: Gaëtan Muller <gaetan.muller@rts.ch>
Co-authored-by: Gaëtan Muller <m.gaetan89@gmail.com>
Co-authored-by: Joaquim Stähli <joaquim.staehli@gmail.com>
Co-authored-by: Joaquim Stähli <joaquim.staehli@gmail.com>
STATE_IDLE is reached after call stop or release.
onAudioPositionAdvancing may be call after releasing the player. So it avoid recreating a Session when the player is IDLE.
@MGaetan89 MGaetan89 enabled auto-merge September 12, 2024 07:37
@MGaetan89 MGaetan89 added this pull request to the merge queue Sep 12, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Sep 12, 2024
@MGaetan89 MGaetan89 added this pull request to the merge queue Sep 12, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Sep 12, 2024
@MGaetan89 MGaetan89 added this pull request to the merge queue Sep 12, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Sep 12, 2024
@MGaetan89 MGaetan89 added this pull request to the merge queue Sep 12, 2024
Merged via the queue into main with commit f65758a Sep 12, 2024
@MGaetan89 MGaetan89 deleted the qos branch September 12, 2024 10:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

2 participants