SRGSSR / pillarbox-documentation

Technical cross-platform documentation for Pillarbox
3 stars 0 forks source link

Deliver metadata with business errors? #80

Open defagos opened 1 week ago

defagos commented 1 week ago

As an SRF app developer I would like to be able to display player metadata for streams that have not started yet. As a product team we should agree whether this kind of feature is compatible with Pillarbox DNA, both technically and from a feature set point of view.

Hints

On Apple platforms errors, both technical (e.g. network issue, 404, etc.) or business (e.g. blocking reason) end up with an error devoid of any metadata even if, in the business case, we could deliver metadata as well.

The SRF app team would like to display metadata (e.g. a thumbnail) also when a business error (e.g. content availability) is involved. This is something that might already be possible on Android and / or the web, maybe something we should support, maybe not.

This could also offer an option to better address related issues like https://github.com/SRGSSR/pillarbox-apple/issues/917. If we provide an availability date with metadata we could namely not only deliver it but also implement an automatic retry mechanism. Not sure there is a team agreement on this kind of behavior so we should really discuss it together.

Acceptance criteria

Tasks

defagos commented 1 week ago

Nice topic for our weekly API discussion. Added to the sprint.

defagos commented 1 week ago

A PoC implementation is available on Apple platforms.

defagos commented 1 week ago

In essence delivering metadata with a business error is similar to delivering a media composition with an unplayable resource URL. So this task could be seen as a consistency improvement rather than a feature.

defagos commented 1 week ago

Current status:

Next steps:

defagos commented 1 week ago

Poke @NicolasBrunnerSRF for information.