Open ohri31 opened 1 week ago
hi @ohri31, thanks for raising this issue. It is a bit hard to understand where the problem is. Can you please share how you have set up the components where:
call.getOrCreate()
)<StreamCall call={call}>....</StreamCall>
)const state = useCallCallingState()
)
Which package/packages do you use?
@stream-io/video-react-sdk
@stream-io/video-react-native-sdk
@stream-io/video-client
Describe the bug
I have setup an app that needs to have video calling.
I invoke a call in the following way:
`async function handleCall(callUserId: string) { if (!client) { return; }
} ` After I invoke the call, both users get the corresponding Incoming/Outgoing call screen.
This is the component:
`const getCallContent = useCallback(() => { switch (state) { case CallingState.RINGING: return isCallCreatedByMe ? ( <CustomOutgoingVideoCall call={call} onHangupCallHandler={() => call.leave()} /> ) : ( <CustomIncomingVideoCall call={call} onAcceptCallHandler={() => call.join()} onRejectCallHandler={() => call.reject()} /> ); case CallingState.LEFT: return <></>; case CallingState.IDLE: return <></>; default: return (
}, [call, isCallCreatedByMe, state]);`
So when the call is invoked, the state becomes
RINGING
- but after the called user accepts, the state doesn't update on either of those two devices and just stays the same.Is this a bug - or am I missing something?
To Reproduce Steps to reproduce the behavior:
Expected behavior A clear and concise description of what you expected to happen.
Screenshots If applicable, add screenshots to help explain your problem.
Version
1.2.8
Env:
Fill out what's applicable
React / JS client
React Native
Node JS client
Additional context Add any other context about the problem here.