Skip to content

Commit 6ebd6b6

Browse files
Balasnestbala_fine
andauthored
VideoTrack is not getting published when the initial props of enableVideo is false. (#536)
* Revert "Rotate video preview based on the VideoFrame.RotationAngle (#343)" This reverts commit 3dc4a21. * revert to master Co-authored-by: bala_fine <[email protected]>
1 parent 327ad8d commit 6ebd6b6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

android/src/main/java/com/twiliorn/library/CustomTwilioVideoView.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -632,6 +632,7 @@ public void toggleVideo(boolean enabled) {
632632

633633
if (localVideoTrack != null) {
634634
localVideoTrack.enable(enabled);
635+
publishLocalVideo(enabled);
635636

636637
WritableMap event = new WritableNativeMap();
637638
event.putBoolean("videoEnabled", enabled);

0 commit comments

Comments
 (0)