mirror of
https://github.com/samsonjs/media.git
synced 2026-03-26 09:35:47 +00:00
Expose setExtraAdGroupMarkers on PlayerView
Issue: #4097 ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=192100000
This commit is contained in:
parent
75338530ef
commit
60aecdf3b3
1 changed files with 16 additions and 0 deletions
|
|
@ -758,6 +758,22 @@ public class PlayerView extends FrameLayout {
|
|||
controller.setShowMultiWindowTimeBar(showMultiWindowTimeBar);
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the millisecond positions of extra ad markers relative to the start of the window (or
|
||||
* timeline, if in multi-window mode) and whether each extra ad has been played or not. The
|
||||
* markers are shown in addition to any ad markers for ads in the player's timeline.
|
||||
*
|
||||
* @param extraAdGroupTimesMs The millisecond timestamps of the extra ad markers to show, or
|
||||
* {@code null} to show no extra ad markers.
|
||||
* @param extraPlayedAdGroups Whether each ad has been played, or {@code null} to show no extra ad
|
||||
* markers.
|
||||
*/
|
||||
public void setExtraAdGroupMarkers(
|
||||
@Nullable long[] extraAdGroupTimesMs, @Nullable boolean[] extraPlayedAdGroups) {
|
||||
Assertions.checkState(controller != null);
|
||||
controller.setExtraAdGroupMarkers(extraAdGroupTimesMs, extraPlayedAdGroups);
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the {@link AspectRatioFrameLayout.AspectRatioListener}.
|
||||
*
|
||||
|
|
|
|||
Loading…
Reference in a new issue