You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If set a seek time for the video(with HLS interstitials) to start playing from a specified position
a. seek positio is after any ad position, the screen is black and not show ad or media contents.
b. seek position is before the ads, the player can work well.
player.setMediaItem(
new MediaItem.Builder()
.setUri("https://www.example.com/media.m3u8")
.setAdsConfiguration(
new AdsConfiguration.Builder(Uri.parse("hls://interstitials"))
.setAdsId("ad-tag-0") // must be unique within playlist
.build())
.build());
player.seekTo(seekPosition); //just add this line for start position
player.prepare();
player.play();
Is this an issue or how to play video with HLS interstitials from a specified position after ads?