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

Use CastPlayer using default receiver #528

Open StaehliJ opened 5 months ago

StaehliJ commented 5 months ago

As a user / integrator I want to play some content on my chromecast.

Acceptance criteria

Tasks

StaehliJ commented 5 months ago

When playing HLS fragmented mp4 and TS container format, we have to tell the receiver the format to use.

For video:

MediaInfo.setHlsVideoSegmentFormat(HlsVideoSegmentFormat.FMP4)

For audio:

MediaInfo.setHlsSegmentFormat(HlsSegmentFormat.FMP4)

Otherwise, the cast will load endlessly and plays nothing.

For urn content or content loaded by the receiver it should not be a issue but for url only it may be an issue. We can't store the information inside a MediaItem or if so we have to create a convention.