Closed StaehliJ closed 1 week ago
This PR improve some Pillarbox component creation with DSL.
PillarboxExoPlayer can be configured easily
val player = PillarboxExoPlayer(context) { monitoring() { monitoring(LogCat) seekForwardIncrement(10.seconds) } }
val mediaItem = SRGMediaItem(urn) { host(IlHost.Prod) mediaMetadata { setTitle("Title) setDescription("Description") } }
val assetLoader = SRGAssetLoader(context) { mediaCompositionService(MyService) }
SRGMediaItemBuilder
SRGMediaItem
DefaultPillarbox
PillarboxExoPlayer
SeekIncrement
-0.94%
-0.86%
-1.54%
Pull request
Description
This PR improve some Pillarbox component creation with DSL.
PillarboxExoPlayer
PillarboxExoPlayer can be configured easily
SRGMediaItem
SRGAssetLoader
Changes made
SRGMediaItemBuilder
is replaced bySRGMediaItem
.DefaultPillarbox
is replaced byPillarboxExoPlayer
from core-business module.SeekIncrement
has been removed, it is replaced by 2 methods in the dsl function.Checklist