Control playback behavior for seeking over custom ad markers

You can override the default behavior for how TVSDK handles seeks over ads when using custom ad markers.

By default, when a user seeks into or past ad sections that result from the placement of custom ad markers, TVSDK skips the ads. This might differ from the current playback behavior for standard ad breaks. You can set TVSDK to reposition the playhead to the beginning of the most recently skipped custom ad when the user seeks past one or more custom ads.

  1. Call CustomRangeMetadata.setAdjustSeekPosition with true.

    customRangeMetadata.setAdjustSeekPosition (true);
    
  2. Use customRangeMetadata in MediaPlayerItemConfig.

    // Set customRangeMetadata 
    config.setCustomRangeMetadata(customRangeMetadata); 
     
    // prepare the content for playback by calling replaceCurrentResource 
    mediaPlayer.replaceCurrentResource(mediaResource, config); 
    
    

On this page

Adobe Summit Banner

A virtual event April 27-28.

Expand your skills and get inspired.

Register for free
Adobe Summit Banner

A virtual event April 27-28.

Expand your skills and get inspired.

Register for free
Adobe Maker Awards Banner

Time to shine!

Apply now for the 2021 Adobe Experience Maker Awards.

Apply now
Adobe Maker Awards Banner

Time to shine!

Apply now for the 2021 Adobe Experience Maker Awards.

Apply now