Class AudioConfig
-
- All Implemented Interfaces:
public final class AudioConfigConfiguration for video audio controls and mute button.
This class contains settings for audio-related functionality including mute state, mute button appearance, positioning, and dimensions.
-
-
Field Summary
Fields Modifier and Type Field Description private final BooleanstartMutedprivate final IntegermuteIconWidthprivate final IntegermuteIconHeightprivate final MarginmuteIconMarginprivate final IntegermuteIconPosition
-
Constructor Summary
Constructors Constructor Description AudioConfig(VideoExperience videoExperience, AdConfig.VideoPlayerAudioConfig audioConfig)
-
Method Summary
Modifier and Type Method Description final BooleangetStartMuted()Whether the video should start in muted state final IntegergetMuteIconWidth()Width of the mute/unmute icon in pixels final IntegergetMuteIconHeight()Height of the mute/unmute icon in pixels final MargingetMuteIconMargin()Margin settings for the mute/unmute icon positioning final IntegergetMuteIconPosition()Position of the mute/unmute icon (corner positioning) -
-
Constructor Detail
-
AudioConfig
AudioConfig(VideoExperience videoExperience, AdConfig.VideoPlayerAudioConfig audioConfig)
- Parameters:
videoExperience- The video experience configuration from the ad responseaudioConfig- The default audio configuration from native config
-
-
Method Detail
-
getStartMuted
final Boolean getStartMuted()
Whether the video should start in muted state
-
getMuteIconWidth
final Integer getMuteIconWidth()
Width of the mute/unmute icon in pixels
-
getMuteIconHeight
final Integer getMuteIconHeight()
Height of the mute/unmute icon in pixels
-
getMuteIconMargin
final Margin getMuteIconMargin()
Margin settings for the mute/unmute icon positioning
-
getMuteIconPosition
final Integer getMuteIconPosition()
Position of the mute/unmute icon (corner positioning)
-
-
-
-