aws-samples / amazon-chime-react-native-demo

A React Native demo application for Android and iOS using the Amazon Chime SDK.
MIT No Attribution
101 stars 24 forks source link

Unable to set the RNVideoView for Opposite user #150

Closed knvsshetty closed 1 year ago

knvsshetty commented 2 years ago

How to separate the user & opposite user RNVideoView Styles in amazon-chime-react-native.I tried using

this.state={selfVideoEnabled:false,videoTiles:[]

} {this.state.videoTiles.length > 0 ? ( this.state.videoTiles.map((tileId) => ( <> //for self user { tileId == 0 && this.state.selfVideoEnabled && <RNVideoRenderView key={tileId} tileId={tileId} /> } //for opposite user { tileId == 2 &&

 <RNVideoRenderView
     key={tileId}
     tileId={tileId}

/>} </> ))) : ( )}

i console tileid array also it giving initially [0,2] then after switching the video button multiple times its giving array as [0,2,2,2,2,2,0] etc. Can u please update on this issue

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

hokyungh commented 2 years ago

Hi sorry for late reply, is it the videoTiles that contains duplicates?

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

linsang21 commented 1 year ago

Resolve for no response, please let us know if you still encounter the same issue with more information.