/** * 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); }
/** * 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); }