Interface LocalAudioTrackProps

Hierarchy

  • LocalAudioTrackProps

Properties

children?: ReactNode

The React nodes to be rendered.

disabled?: boolean

true: Disable the track. When disabled, the SDK stops playing and publishing the track.false: Enable the track.

muted?: boolean

true: Pause sending media data of the track.false: Resume sending media data of the track.

play?: boolean

true: Play the track.false: Stop playing the track.

track?: MaybePromiseOrNull<ILocalAudioTrack>

The local audio track to be played. Call useLocalMicrophoneTrack to create a local audio track.

volume?: number

The volume. The value ranges from 0 (mute) to 1000 (maximum). A value of 100 is the original volume. When set to above 100, the SDK applies volume amplification using the Web Audio API.