Closed zesun96 closed 1 year ago
I add modules by yarn add @livekit/react-native @livekit/react-native-webrtc
when the @livekit/react-native-webrtc version is 104.0.1, there is an error on opening camera. [Error: Exception in HostFunction: expected 0 arguments, got 1]
I track the source of the error,because of RTCRtpSender.getCapabilities(kind) open camera called it at 【RTCEngine.ts】- 【setPreferredCodec】https://github.com/livekit/client-sdk-js/blob/main/src/room/RTCEngine.ts#L609
@livekit/react-native-webrtc version 104.0.0 is ok.
I find RTCRtpSender.getCapabilities changed in 104.0.1
What version of livekit-client is being used?
livekit-client
@davidliu livekit-client@1.10.0
@zesun96 issue should no longer be there in the latest version. Please reopen if problem persists.
I add modules by yarn add @livekit/react-native @livekit/react-native-webrtc
when the @livekit/react-native-webrtc version is 104.0.1, there is an error on opening camera. [Error: Exception in HostFunction: expected 0 arguments, got 1]
I track the source of the error,because of RTCRtpSender.getCapabilities(kind) open camera called it at 【RTCEngine.ts】- 【setPreferredCodec】https://github.com/livekit/client-sdk-js/blob/main/src/room/RTCEngine.ts#L609
@livekit/react-native-webrtc version 104.0.0 is ok.
I find RTCRtpSender.getCapabilities changed in 104.0.1