You can override the default behavior for how the PSDK handles seeks over ads when using custom ad markers.
The PSDK implements a default behavior when a seek operation is performed over an ad-break section: the playhead position is forcibly adjusted to the beginning of the last ad-break section that was skipped over.
You can enable this type of functionality for ad-content sections that result from the placement of custom ad markers. It is disabled by default.
The key value must be set to "true" as a literal string, not as a Boolean true value.
Metadata metadata = new MetadataNode(); metadata.setValue(DefaultMetadataKeys.METADATA_KEY_ADJUST_SEEK_ENABLED.getValue(),"true");
MediaResource mediaResource = MediaResource.createFromUrl("www.example.com/video/test_video.m3u8",
timeRanges.toMedatada(metadata));