Closed EkaanshArora closed 1 year ago
make it happened as below:
useLocalScreenTrack(
ready = true,
screenVideoTrackInitConfig: ScreenVideoTrackInitConfig,
withAudio: "enable" | "disable" | "auto",
client?: IAgoraRTCClient,
): {
screenTrack: [ILocalVideoTrack, ILocalAudioTrack] |
ILocalVideoTrack | null;
isLoading: boolean;
error: AgoraRTCReactError | null;
}
What kind of problem does this feature solve?
Hey can we add a simple hook for creating a screen track for screenshare, I think we're missing this at the moment.
What does the proposed API look like?
cc @guoxianzhe @divanov11