Function LocalVideoTrack

  • This component plays the local video track using the playback device selected by the user in the browser.

    Parameters

    Returns Element

    Example

    import { LocalVideoTrack, useLocalCameraTrack } from "agora-rtc-react";

    function App() {
    const videoTrack = useLocalCameraTrack();
    return <LocalVideoTrack track={videoTrack} play />;
    }