Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OT.changeCameraPosition not trigger #437

Closed
vinoth12594 opened this issue Jul 25, 2020 · 3 comments
Closed

OT.changeCameraPosition not trigger #437

vinoth12594 opened this issue Jul 25, 2020 · 3 comments

Comments

@vinoth12594
Copy link

When i use OT.changeCameraPosition(this.state.publisherId, 'back') it's not working as per my expectation.
I get my publisherId in
this.publisherEventHandlers = { streamCreated: event => {event.streamId}

Anything mistake from my side.

@msach22
Copy link
Contributor

msach22 commented Aug 21, 2020

You can change the camera position by updating cameraPosition property in OTPublisher:
https://github.com/opentok/opentok-react-native/blob/master/docs/OTPublisher.md

@msach22 msach22 closed this as completed Aug 21, 2020
@hanishsharma31
Copy link

I am facing the same issue. Below code is not working

OT.changeCameraPosition(publisherId, publisherProperties.cameraPosition);

I am changing the cameraPosition programatically and passing the updated value to the above code. But when I use OT.publishAudio(publisherId, publisherProperties.publishAudio) or OT.publishVideo(publisherId, publisherProperties.publishVideo) the cameraPosition changes. Please assist.

@enricop89
Copy link
Contributor

Duplicate #386

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants