SRGSSR / srgletterbox-apple

The official SRG SSR media playback experience
https://srgssr.github.io/marketing/letterbox/
MIT License
14 stars 7 forks source link

Provide a way to start playing a URN at a specific time #94

Closed defagos closed 6 years ago

defagos commented 6 years ago

We currently provide methods to play a given URN, or to switch to another URN or subdivision. We could add a time parameter to both methods. For API consistency, this parameter must be clamped to the range of the subdivision. The minimum admissible value, zero, will correspond to the subdivision beginning, and be the default. The maximum start time is the subdivision duration.

This way, the API provides more flexibility, and stays consistent. Since playing a subdivision is different from playing at some time (active user selection, and thus different analytics), we cannot namely let selection playback start outside the selected subdivision time range.

This task requires https://github.com/SRGSSR/SRGMediaPlayer-iOS/issues/37 to be closed first.

defagos commented 6 years ago

This has been implemented and will be delivered in 1.10.