Package com.amazonaws.ivs.broadcast
Class BroadcastConfiguration.Mixer.Slot
- java.lang.Object
- 
- com.amazonaws.ivs.broadcast.BroadcastConfiguration.Mixer.Slot
 
- 
- Enclosing class:
- BroadcastConfiguration.Mixer
 
 public static class BroadcastConfiguration.Mixer.Slot extends java.lang.ObjectA slot represents an on-screen and audible element that can be transitioned over time and bound and unbound to input devices. See Mixer.bind and Mixer.unbind
- 
- 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description BroadcastConfiguration.Mixer.Slotchanging(Builder<BroadcastConfiguration.Mixer.Slot> op)BroadcastConfiguration.AspectModegetAspect()The aspect mode of the mixer slot.BroadcastConfiguration.Vec4getFillColor()floatgetGain()The gain of the mixer slot By default this is `1`.booleangetMatchCanvasAspectMode()Whether or not this mixer slot automatically matches the canvas aspect mode.booleangetMatchCanvasSize()Whether or not this mixer slot automatically matches the canvas size.java.lang.StringgetName()The name of this mixer slot.BroadcastConfiguration.Vec2getPosition()The position of the mixer slot.Device.Descriptor.DeviceTypegetPreferredAudioInput()The preferred audio input device for the mixer slot.Device.Descriptor.DeviceTypegetPreferredVideoInput()The preferred video input device for the mixer slot.BroadcastConfiguration.Vec2getSize()The size for the mixer slot.floatgetTransparency()The transparency for the mixer slot.intgetzIndex()The z-index of the mixer slot.voidsetAspect(BroadcastConfiguration.AspectMode aspect)voidsetFillColor(BroadcastConfiguration.Vec4 fillColor)Sets the fill color for this mixer in the RGBA format.voidsetGain(float gain)Sets the gain for this mixer.voidsetMatchCanvasAspectMode(boolean value)voidsetMatchCanvasSize(boolean value)voidsetName(java.lang.String name)Sets the name for this mixer.voidsetPosition(BroadcastConfiguration.Vec2 position)voidsetPreferredAudioInput(Device.Descriptor.DeviceType preferredAudioInput)voidsetPreferredVideoInput(Device.Descriptor.DeviceType preferredVideoInput)voidsetSize(int width, int height)voidsetSize(BroadcastConfiguration.Vec2 size)voidsetTransparency(float transparency)Sets the transparency of this mixer.voidsetzIndex(int zIndex)higher values are rendered in front of lower valuesstatic BroadcastConfiguration.Mixer.Slotwith(Builder<BroadcastConfiguration.Mixer.Slot> op)
 
- 
- 
- 
Method Detail- 
getNamepublic java.lang.String getName() The name of this mixer slot. By default this is `default`.
 - 
setNamepublic void setName(@NonNull java.lang.String name)Sets the name for this mixer. The length of the name must be between 1 and 50 characters in length, otherwise aIllegalArgumentExceptionwill be thrown.- Parameters:
- name- the desired name for this mixer.
 
 - 
getSizepublic BroadcastConfiguration.Vec2 getSize() The size for the mixer slot. By default this is `720x1280`. However, note that when `matchCanvasSize` is `true`, the slot will use `configuration.video.size` instead. Setting this property always has the side-effect of setting `matchCanvasSize` to `false`.
 - 
setSizepublic void setSize(BroadcastConfiguration.Vec2 size) 
 - 
setSizepublic void setSize(int width, int height)
 - 
getPositionpublic BroadcastConfiguration.Vec2 getPosition() The position of the mixer slot. By default this is `0x0`.
 - 
setPositionpublic void setPosition(@NonNull BroadcastConfiguration.Vec2 position)
 - 
getAspectpublic BroadcastConfiguration.AspectMode getAspect() The aspect mode of the mixer slot. By default this isBroadcastConfiguration.AspectMode.FIT. Setting this property always has the side-effect of setting `matchCanvasAspectMode` to `false`.
 - 
setAspectpublic void setAspect(BroadcastConfiguration.AspectMode aspect) 
 - 
getFillColorpublic BroadcastConfiguration.Vec4 getFillColor() - Returns:
- The fill color of this mixer in the RGBA format By default this is a color with RGBA values of 0. The alpha value will be ignored if Video.enableTransparency is false.
 
 - 
setFillColorpublic void setFillColor(@NonNull BroadcastConfiguration.Vec4 fillColor)Sets the fill color for this mixer in the RGBA format. All 4 values in the RGBA format must be between 0 and 1, otherwise aIllegalArgumentExceptionwill be thrown. The alpha value will be ignored if Video.enableTransparency is false.- Parameters:
- fillColor- A RGBA vector representing a fill color
 
 - 
getGainpublic float getGain() The gain of the mixer slot By default this is `1`.
 - 
setGainpublic void setGain(float gain) Sets the gain for this mixer. A gain of 1 means no change, a gain less than 1 will suppress, and greater than 1 will amplify. The value must be between 0 and 2 otherwise aIllegalArgumentExceptionwill be thrown.- Parameters:
- gain- The desired gain for this filter.
 
 - 
getTransparencypublic float getTransparency() The transparency for the mixer slot. 0 = fully opaque, 1 = fully transparent. By default this is `0`. This value will be ignored if Video.enableTransparency is false.
 - 
setTransparencypublic void setTransparency(float transparency) Sets the transparency of this mixer. 0 = fully opaque, 1 = fully transparent The value must be between 0 and 1 otherwise aIllegalArgumentExceptionwill be thrown. This value will be ignored if Video.enableTransparency is false.- Parameters:
- transparency- The desired transparency for this mixer.
 
 - 
getzIndexpublic int getzIndex() The z-index of the mixer slot. Higher values are rendered in front of lower values. By default this is `0`.
 - 
setzIndexpublic void setzIndex(int zIndex) higher values are rendered in front of lower values
 - 
getPreferredVideoInputpublic Device.Descriptor.DeviceType getPreferredVideoInput() The preferred video input device for the mixer slot. By default this isDevice.Descriptor.DeviceType.CAMERA.
 - 
setPreferredVideoInputpublic void setPreferredVideoInput(Device.Descriptor.DeviceType preferredVideoInput) 
 - 
getPreferredAudioInputpublic Device.Descriptor.DeviceType getPreferredAudioInput() The preferred audio input device for the mixer slot. By default this isDevice.Descriptor.DeviceType.MICROPHONE.
 - 
setPreferredAudioInputpublic void setPreferredAudioInput(Device.Descriptor.DeviceType preferredAudioInput) 
 - 
changingpublic BroadcastConfiguration.Mixer.Slot changing(@NonNull Builder<BroadcastConfiguration.Mixer.Slot> op) 
 - 
withpublic static BroadcastConfiguration.Mixer.Slot with(@NonNull Builder<BroadcastConfiguration.Mixer.Slot> op) 
 - 
getMatchCanvasSizepublic boolean getMatchCanvasSize() Whether or not this mixer slot automatically matches the canvas size. This defaults to `true` but will be set to `false` automatically if `size` is changed. Setting this back to `true` will once again match the canvas size, but will leave the `size` property unchanged, i.e. it will still be the custom value you set it to.
 - 
setMatchCanvasSizepublic void setMatchCanvasSize(boolean value) 
 - 
getMatchCanvasAspectModepublic boolean getMatchCanvasAspectMode() Whether or not this mixer slot automatically matches the canvas aspect mode. This defaults to `true` but will be set to `false` automatically if `aspect` is changed. Setting this back to `true` will once again match the canvas aspect mode, but will leave the `aspect` property unchanged, i.e. it will still be the custom value you set it to.
 - 
setMatchCanvasAspectModepublic void setMatchCanvasAspectMode(boolean value) 
 
- 
 
-