Add skip segments
An item can declare the ranges a viewer usually skips, such as an intro or the credits. The player reports when playback enters one and offers skipCurrentSegment() to jump to its end.
Show a skip button
The player fires skipAvailable when playback enters a segment and skipHidden when it leaves. Draw your own button from these events, then call skipCurrentSegment().
How segments are validated
The SDK holds segments until the item’s duration is known, then validates them once at that point, because two of the four rules (a start at or beyond the duration, an end beyond it) need a duration that does not exist when the playlist is supplied. The SDK rejects an invalid segment on its own with a skipFailed event that names the reason, and its valid siblings keep working. On a live source, where the duration never settles, segments stay pending: the SDK offers no skip and reports no failure.
The built-in skin draws no skip-segment button, so your app draws its own from the events above. enableSkips on FastPixPlayerControlsConfiguration is unrelated: it turns on the skin’s plus and minus 10 second seek buttons.
What’s next
- Manage a playlist to add skip segments per item across a queue.