Function RemoteVideoTrack

  • This component plays the video track of a remote user and does not support specifying the playback device.

    Parameters

    Returns Element

    Example

    import { RemoteAudioTrack, useJoin, useRemoteAudioTracks, useRemoteUsers } from "agora-rtc-react";

    function App() {
    const remoteUsers = useRemoteUsers();
    const audioTracks = useRemoteAudioTracks(remoteUsers);

    return (
    <>
    {audioTracks.map(track => (
    <RemoteAudioTrack key={track.getUserId()} play track={track} />
    ))}
    </>
    );
    }