Open defagos opened 1 month ago
Some findings:
AVPlayerItem
, not from AVPlayer
. Since discontinuities might arise we probably need to use stream date and time information to store a mapping between player time and date, updated when appropriate. This mapping can then be used as reference for calculations since we need to use our seek to time APIs, as seek to date APIs are more limited (tolerances e.g.) and do not support smooth seeking.Some ideas:
Date
and TimeRange
to a content. Currently CMTimeRange
but maybe we should store .time
or .date
and build ranges accordingly. This is similar to what we did in SRG Media Player but with better API design with the help of labeled enums.ProgressTracker
API for date handling support as well.Unlike what we did with SRG Media Player, though, we should not hack date support if the stream does not support it.
As a developer integrating Pillarbox I want to be able to seek to a specific date, provided such information is returned in a stream.
Acceptance criteria
Hints
AVDateRangeMetadataGroup
for navigation markers and possibly.Tasks