AgoraIO-Extensions / react-native-agora

React Native around the Agora RTC SDKs for Android and iOS agora
https://www.agora.io
MIT License
620 stars 227 forks source link

I want to see my own screen, how can I do that? #796

Closed showtan001 closed 2 months ago

showtan001 commented 2 months ago

Set uid to 0, the displayed screen is black, and the other party's screen is normal.

<RtcSurfaceView
    zOrderMediaOverlay={true}
    canvas={{
      uid: 0,
      sourceType: VideoSourceType.VideoSourceRemote,
    }}
  />

Thanks!

guoxianzhe commented 2 months ago

@showtan001 If you want show local video , please change your sourceType to VideoSourceType.VideoSourceCameraPrimary for etc.

VideoSourceType .VideoSourceRemote is One remote video acquired by the network.