isRTCParticipantAvailable => isLiveKitParticipantAvailable

This commit is contained in:
Hugh Nimmo-Smith 2024-11-06 14:29:09 +00:00
parent b0e0e0ed6b
commit a1083f3284

View File

@ -86,8 +86,8 @@ const UserMediaTile = forwardRef<HTMLDivElement, UserMediaTileProps>(
const videoEnabled = useObservableEagerState(vm.videoEnabled); const videoEnabled = useObservableEagerState(vm.videoEnabled);
const speaking = useObservableEagerState(vm.speaking); const speaking = useObservableEagerState(vm.speaking);
const cropVideo = useObservableEagerState(vm.cropVideo); const cropVideo = useObservableEagerState(vm.cropVideo);
const isRTCParticipantAvailable = useObservableEagerState( const isLiveKitParticipantAvailable = useObservableEagerState(
vm.isRTCParticipantAvailable, vm.isLiveKitParticipantAvailable,
); );
const onSelectFitContain = useCallback( const onSelectFitContain = useCallback(
(e: Event) => { (e: Event) => {
@ -144,7 +144,9 @@ const UserMediaTile = forwardRef<HTMLDivElement, UserMediaTileProps>(
} }
displayName={ displayName={
displayName + displayName +
(isRTCParticipantAvailable ? "" : " missing Livekit Participant...") (isLiveKitParticipantAvailable
? ""
: " missing Livekit Participant...")
} }
primaryButton={ primaryButton={
<Menu <Menu
@ -261,7 +263,7 @@ const RemoteUserMediaTile = forwardRef<
mirror={false} mirror={false}
menuStart={ menuStart={
<> <>
{/* {isRTCParticipantAvailable {/* {isLiveKitParticipantAvailable
? "is available" ? "is available"
: "Loading RTC participant"} */} : "Loading RTC participant"} */}
<ToggleMenuItem <ToggleMenuItem