livekit / client-sdk-react-native

Official React Native SDK for LiveKit.
https://livekit.io
Apache License 2.0
121 stars 32 forks source link

Can't see self camera picture on android app #82

Closed zesun96 closed 1 year ago

zesun96 commented 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

davidliu commented 1 year ago

What version of livekit-client is being used?

zesun96 commented 1 year ago

@davidliu livekit-client@1.10.0

davidzhao commented 1 year ago

@zesun96 issue should no longer be there in the latest version. Please reopen if problem persists.