-
- All Implemented Interfaces:
-
io.livekit.android.room.participant.TrackPublishOptions
public final class AudioTrackPublishOptions extends BaseAudioTrackPublishOptions implements TrackPublishOptions
Options for publishing an audio track.
-
-
Field Summary
Fields Modifier and Type Field Description private final Stringnameprivate final IntegeraudioBitrateprivate final Booleandtxprivate final Booleanredprivate final Track.Sourcesourceprivate final Stringstreamprivate final Booleanpreconnect
-
Constructor Summary
Constructors Constructor Description AudioTrackPublishOptions(String name, BaseAudioTrackPublishOptions base, Track.Source source, String stream)AudioTrackPublishOptions(String name, Integer audioBitrate, Boolean dtx, Boolean red, Track.Source source, String stream, Boolean preconnect)
-
Method Summary
Modifier and Type Method Description StringgetName()The name of the track. IntegergetAudioBitrate()The target audioBitrate to use. BooleangetDtx()dtx (Discontinuous Transmission of audio), enabled by default for mono tracks. BooleangetRed()red (Redundant Audio Data), enabled by default for mono tracks. Track.SourcegetSource()The source of a track, camera, microphone or screen. StringgetStream()The stream name for the track. BooleangetPreconnect()preconnect buffer, starts the audio track and buffers it prior to connection, in order to send it to agents that connect afterwards. -
-
Constructor Detail
-
AudioTrackPublishOptions
AudioTrackPublishOptions(String name, BaseAudioTrackPublishOptions base, Track.Source source, String stream)
-
-
Method Detail
-
getAudioBitrate
Integer getAudioBitrate()
The target audioBitrate to use.
-
getDtx
Boolean getDtx()
dtx (Discontinuous Transmission of audio), enabled by default for mono tracks.
-
getSource
Track.Source getSource()
The source of a track, camera, microphone or screen.
-
getStream
String getStream()
The stream name for the track. Audio and video tracks with the same stream name will be placed in the same
MediaStreamand offer better synchronization.By default, camera and microphone will be placed in the same stream.
-
getPreconnect
Boolean getPreconnect()
preconnect buffer, starts the audio track and buffers it prior to connection, in order to send it to agents that connect afterwards. Improves perceived connection time.
-
-
-
-