Skip to content
This repository has been archived by the owner on Nov 25, 2022. It is now read-only.

when updating component TokBoxVideo with new sessionId+token - it won't create stream #62

Closed
nitzanma opened this issue Mar 27, 2019 · 2 comments

Comments

@nitzanma
Copy link

I have a case where I trigger Update (not mount) for TokBoxVideo Component with new sessionId and new token - but no stream is created, hence i won't see any video.

meanwhile I solved it by adding a key prop to the component, equals to the sessionId - which forces re-mount, and solves the issue.

@msach22
Copy link
Contributor

msach22 commented Apr 9, 2019

@nitzanma Thanks for filing this issue. We recommend creating a new instance of the OTSession component when you want to change credentials i.e unmounting and remounting the component.

@msach22
Copy link
Contributor

msach22 commented May 9, 2019

@nitzanma I'm going to go ahead and close this issue. Please use the recommendation above.

@msach22 msach22 closed this as completed May 9, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants