AudioPlayer is a component responsible for rendering a participant’s audio or screen-share audio stream.
AudioPlayer
Unique ID of the participant whose audio stream is rendered.
Optional
Type of audio stream to render ("audio" or "shareAudio"). Defaults to "audio".
"audio"
"shareAudio"
A JSX element that plays the requested audio stream.
import { AudioPlayer } from "@videosdk.live/react-sdk";<AudioPlayer participantId={participantId} type="audio"/>; Copy
import { AudioPlayer } from "@videosdk.live/react-sdk";<AudioPlayer participantId={participantId} type="audio"/>;
AudioPlayeris a component responsible for rendering a participant’s audio or screen-share audio stream.