pillarbox-apple
pillarbox-apple copied to clipboard
Repeat modes
As a user I want some playback experiences to provide me with repeat modes:
- Repeat one: When enabled, repeats the current content in a playlist.
- Repeat all: When enabled, repeats the whole playlist at the end.
Acceptance criteria
- An API is available to set the repeat mode (can be none).
- A repeat mode toggle button (none, one, all) has been added to the playlist demo.
- Advancing to the next item wraps around the playlist in repeat all mode (but not the other way around).
- Advancing to the next / returning to the previous item in repeat one mode moves to the next / previous item (and not to the next loop).
- In all repeat modes the playback experience is gapless.
Hints
Maybe AVPlayerLooper
might be helpful (maybe not).
Tasks
- [ ] Check with
AVQueuePlayer
andAVPlayerLooper
how repeat modes interact withactionAtItemEnd
so that we can better understand how our implementation should behave. - [ ] Add repeat modes.
- [ ] Update the playlist demo.
- [ ] Update advance to next APIs to wrap around the playlist at its end.
- [ ] Make sure each individual loop is a separate comScore analytics session.
- [ ] Check network activity (e.g. preload of next stored item).