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

PoC SpriteSheet #768

Open StaehliJ opened 3 days ago

StaehliJ commented 3 days ago

Exoplayer provide a way to use image track to display thumbnail. The player has to be configured as follow:

SRG

SRG provide sprite sheet image url into Chapter. The goal of this PR is to use it as it is received from the dash stream by using ImageRenderer.

StaehliJ commented 1 day ago

PoC 1

The idea is to simulate the behaviors of dash sprite sheet by adding a custom image tiled track and a custom SampleStream to load the sprite sheet image.

After some tries, the renderer seems not working, the sample stream seems to be read but the decoding seems not working so no bitmap is send to the player.

StaehliJ commented 1 day ago

PoC 2

Same as PoC 1 but with a Custom ImageRender for the custom image track.

Maybe wait for Media3 1.5.0 which include ExternallyLoadedImageDecoder.

The idea is to provide an ExternalMediaPeriod with SampleStream is the encoded image url but we customize it to also provide tiles information.