Function LocalAudioTrack

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

    Parameters

    Returns null | Element

    Example

    import { LocalAudioTrack, useLocalAudioTrack } from "agora-rtc-react";

    function App() {
    const audioTrack = useLocalAudioTrack();
    return <LocalAudioTrack track={audioTrack} play />;
    }