fix(android): video resolution orientation android (#3862)
* fix(android): ensure width/heigh respect rotation of the video + Add rotation info in onVideoTrack event
This commit is contained in:
@@ -12,4 +12,5 @@ class VideoTrack {
|
||||
var index = -1
|
||||
var trackId = ""
|
||||
var isSelected = false
|
||||
var rotation = 0
|
||||
}
|
||||
|
@@ -223,6 +223,7 @@ public class VideoEventEmitter {
|
||||
videoTrack.putString("trackId", vTrack.getTrackId());
|
||||
videoTrack.putInt("index", vTrack.getIndex());
|
||||
videoTrack.putBoolean("selected", vTrack.isSelected());
|
||||
videoTrack.putInt("rotation", vTrack.getRotation());
|
||||
waVideoTracks.pushMap(videoTrack);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user