Add micropohone button for two way talk (#10408)

This commit is contained in:
Nicolas Mowen
2024-03-12 17:19:02 -06:00
committed by GitHub
parent 9e10b914c9
commit 92255f771b
3 changed files with 36 additions and 4 deletions

View File

@@ -20,6 +20,7 @@ type LivePlayerProps = {
showStillWithoutActivity?: boolean;
windowVisible?: boolean;
playAudio?: boolean;
micEnabled?: boolean; // only webrtc supports mic
onClick?: () => void;
};
@@ -30,6 +31,7 @@ export default function LivePlayer({
showStillWithoutActivity = true,
windowVisible = true,
playAudio = false,
micEnabled = false,
onClick,
}: LivePlayerProps) {
// camera activity
@@ -97,6 +99,7 @@ export default function LivePlayer({
camera={cameraConfig.live.stream_name}
playbackEnabled={cameraActive}
audioEnabled={playAudio}
microphoneEnabled={micEnabled}
onPlaying={() => setLiveReady(true)}
/>
);