SRGSSR / pillarbox-android

The modern SRG SSR Pillarbox player targeting Android platforms
https://android.pillarbox.ch/api
MIT License
13 stars 1 forks source link

Store pillarbox data into current tracks #704

Closed StaehliJ closed 1 month ago

StaehliJ commented 1 month ago

Pull request

Description

The goal of this PR is to allow integrators to use MediaItem.tag this tag is no more used internally by Pillarbox. PillarboxData is now stored in the track list of the player when content is loaded.

Changes made

Checklist

github-actions[bot] commented 1 month ago

Code Coverage

Overall Project 49.78% -0.08% 🟢
Files changed 94.39% 🟢


Module Coverage
:pillarbox-core-business 80.4% 🟢
:pillarbox-player 59.6% -0.15% 🟢
Files |Module|File|Coverage|| |:-|:-|:-|:-:| |:pillarbox-core-business|[SRGAssetLoader.kt](https://github.com/SRGSSR/pillarbox-android/blob/b3695de49e5ab148801ac43dd01c7413f4df3327/pillarbox-core-business%2Fsrc%2Fmain%2Fjava%2Fch%2Fsrgssr%2Fpillarbox%2Fcore%2Fbusiness%2Fsource%2FSRGAssetLoader.kt)|86.17%|🟢| ||[SRGMediaItemBuilder.kt](https://github.com/SRGSSR/pillarbox-android/blob/b3695de49e5ab148801ac43dd01c7413f4df3327/pillarbox-core-business%2Fsrc%2Fmain%2Fjava%2Fch%2Fsrgssr%2Fpillarbox%2Fcore%2Fbusiness%2FSRGMediaItemBuilder.kt)|81.4%|🟢| |:pillarbox-player|[PillarboxMediaPeriod.kt](https://github.com/SRGSSR/pillarbox-android/blob/b3695de49e5ab148801ac43dd01c7413f4df3327/pillarbox-player%2Fsrc%2Fmain%2Fjava%2Fch%2Fsrgssr%2Fpillarbox%2Fplayer%2Fsource%2FPillarboxMediaPeriod.kt)|100%|🟢| ||[Tracks.kt](https://github.com/SRGSSR/pillarbox-android/blob/b3695de49e5ab148801ac43dd01c7413f4df3327/pillarbox-player%2Fsrc%2Fmain%2Fjava%2Fch%2Fsrgssr%2Fpillarbox%2Fplayer%2Fextension%2FTracks.kt)|99.52% **`-0.48%`**|🟢| ||[AnalyticsMediaItemTracker.kt](https://github.com/SRGSSR/pillarbox-android/blob/b3695de49e5ab148801ac43dd01c7413f4df3327/pillarbox-player%2Fsrc%2Fmain%2Fjava%2Fch%2Fsrgssr%2Fpillarbox%2Fplayer%2Ftracker%2FAnalyticsMediaItemTracker.kt)|95.12% **`-2.44%`**|🟢| ||[TimeRangeTracker.kt](https://github.com/SRGSSR/pillarbox-android/blob/b3695de49e5ab148801ac43dd01c7413f4df3327/pillarbox-player%2Fsrc%2Fmain%2Fjava%2Fch%2Fsrgssr%2Fpillarbox%2Fplayer%2Ftracker%2FTimeRangeTracker.kt)|95.06%|🟢| ||[CurrentMediaItemPillarboxDataTracker.kt](https://github.com/SRGSSR/pillarbox-android/blob/b3695de49e5ab148801ac43dd01c7413f4df3327/pillarbox-player%2Fsrc%2Fmain%2Fjava%2Fch%2Fsrgssr%2Fpillarbox%2Fplayer%2Ftracker%2FCurrentMediaItemPillarboxDataTracker.kt)|93.9% **`-4.88%`**|🟢| ||[PillarboxMediaSource.kt](https://github.com/SRGSSR/pillarbox-android/blob/b3695de49e5ab148801ac43dd01c7413f4df3327/pillarbox-player%2Fsrc%2Fmain%2Fjava%2Fch%2Fsrgssr%2Fpillarbox%2Fplayer%2Fsource%2FPillarboxMediaSource.kt)|87.08% **`-2.08%`**|🟢| ||[PillarboxExoPlayer.kt](https://github.com/SRGSSR/pillarbox-android/blob/b3695de49e5ab148801ac43dd01c7413f4df3327/pillarbox-player%2Fsrc%2Fmain%2Fjava%2Fch%2Fsrgssr%2Fpillarbox%2Fplayer%2FPillarboxExoPlayer.kt)|81.09%|🟢| ||[PlaybackService.kt](https://github.com/SRGSSR/pillarbox-android/blob/b3695de49e5ab148801ac43dd01c7413f4df3327/pillarbox-player%2Fsrc%2Fmain%2Fjava%2Fch%2Fsrgssr%2Fpillarbox%2Fplayer%2Fservice%2FPlaybackService.kt)|0%|🟢|