Current behavior
After upgrading from v0.20.0 to 0.21.2 (the latest version by now) our app started crashing due to a Java exception when disabling video subsystem using the following prop of OTPublisher:
properties={{ videoTrack: false }}
The exception message says
Content hint can only be set after constructing the Publisher and Capturer.
Bug Report
Current behavior After upgrading from v0.20.0 to 0.21.2 (the latest version by now) our app started crashing due to a Java exception when disabling video subsystem using the following prop of OTPublisher:
The exception message says
The issue is probably related to this new code
https://github.com/opentok/opentok-react-native/blob/9ff44bc8b4d050c00f3c460cec9564f62f476875/android/src/main/java/com/opentokreactnative/OTSessionManager.java#L179-L181
By now, the workaround for us is to check for videoTrack being true before setting video hint:
Steps to reproduce
Example Project Reproduced in the sample apps
What is the current bug behavior? videoTrack property is basically useless now and breaks old code.
What is the expected correct behavior? The app shouldn't crash when setting videoTrack to false.
Relevant logs and/or screenshots