Interface RemoteAudioTrackProps

interface RemoteAudioTrackProps {
    children?: ReactNode;
    play?: boolean;
    playbackDeviceId?: string;
    track?: Nullable<IRemoteAudioTrack>;
    volume?: number;
}

Properties

children?: ReactNode

The React nodes to be rendered.

play?: boolean

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

playbackDeviceId?: string

The ID of the playback device, such as a speaker. The device ID can be obtained using IAgoraRTC.getPlaybackDevices. This property is only supported in the desktop version of Chrome browser. Modifying the value of this property in other browsers throws a NOT_SUPPORTED error.

track?: Nullable<IRemoteAudioTrack>

The remote audio track to be played.

volume?: number

The volume. The value ranges from 0 (mute) to 100 (the original volume).