Commit f7a33be
Fix WebCamTexture orientation on the wire (#276)
* Fix WebCamTexture orientation on the wire
Two related issues caused remote participants to see local video at
wrong orientations:
1. GetVideoRotation was mismapping cases: 0→_180, 180→_0, 270→_180.
Android front cam in portrait reports videoRotationAngle == 270, so
remotes saw the stream 90° off. Replaced with a straight passthrough
across all four angles.
2. GetPixels32 returns rows bottom-up but WebRTC expects top-down, so
the buffer was being sent vertically flipped. The previous "0→_180"
mapping was masking this on desktop (180° rotation visually
approximates a Y-flip on roughly-symmetric subjects), but it was
never actually correct. Flip rows during the buffer copy.
Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
* Adds missing meta file
---------
Co-authored-by: Claude Haiku 4.5 <noreply@anthropic.com>1 parent f4dd720 commit f7a33be
2 files changed
Lines changed: 22 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
31 | 32 | | |
32 | | - | |
| 33 | + | |
| 34 | + | |
33 | 35 | | |
34 | | - | |
| 36 | + | |
35 | 37 | | |
36 | 38 | | |
37 | 39 | | |
| |||
81 | 83 | | |
82 | 84 | | |
83 | 85 | | |
84 | | - | |
85 | | - | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
86 | 93 | | |
87 | 94 | | |
88 | 95 | | |
| |||
0 commit comments