SRGSSR / pillarbox-apple

A next-generation reactive media playback ecosystem for Apple platforms.
https://testflight.apple.com/join/TS6ngLqf
MIT License
45 stars 6 forks source link

Improve server support in Core Business #891

Closed defagos closed 1 week ago

defagos commented 2 weeks ago

Description

This PR improves server support in Core Business. It also enhances server selection in the demo to support SAM as well as simulated locations in CH or abroad.

Changes made

Checklist

defagos commented 1 week ago

I revisited my original implementation which was providing closures to make it possible to build media composition requests and custom image resizing. In practice having a custom service posing as the IL is only useful internally anyway and requires deep understanding of endpoints and metadata formats. The closure-based API was likely overkill.

We currently only have SAM and MMF posing as the IL, as well as specific ways to simulate a user abroad. Those are implemented in the demo (and thus not provided in the Core Business public API). When SAM is released this mechanism will not be useful anymore anyway, so I guess it is better to keep things simple in the meantime.