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:
@@ -548,15 +548,16 @@ Callback function that is called when video tracks change
|
||||
|
||||
Payload:
|
||||
|
||||
| Property | Type | Description |
|
||||
| -------- | ------- | ------------------------------------- |
|
||||
| index | number | index of the track |
|
||||
| trackId | string | Internal track ID |
|
||||
| codecs | string | MimeType of codec used for this track |
|
||||
| width | number | Track width |
|
||||
| height | number | Track height |
|
||||
| bitrate | number | Bitrate in bps |
|
||||
| selected | boolean | true if track is selected for playing |
|
||||
| Property | Type | Description |
|
||||
| -------- | ------- | --------------------------------------------------------------- |
|
||||
| index | number | index of the track |
|
||||
| trackId | string | Internal track ID |
|
||||
| codecs | string | MimeType of codec used for this track |
|
||||
| width | number | Track width |
|
||||
| height | number | Track height |
|
||||
| bitrate | number | Bitrate in bps |
|
||||
| selected | boolean | true if track is selected for playing |
|
||||
| rotation | number | 0, 90, 180 or 270 rotation to apply to the track (android only) |
|
||||
|
||||
Example:
|
||||
|
||||
@@ -571,6 +572,7 @@ Example:
|
||||
height: 1080,
|
||||
bitrate: 10000,
|
||||
selected: true,
|
||||
rotation: 0,
|
||||
},
|
||||
];
|
||||
}
|
||||
|
Reference in New Issue
Block a user