mirror of
https://github.com/oxen-io/session-android.git
synced 2025-08-11 15:41:26 +00:00
[SES-1652] Swap video views in calls (#1533)
* WIP: swap video views
* feat: swap video views
* minor fixes
* minor fix
* minor fix
* update libsession-util
* Revert "update libsession-util"
This reverts commit 0d386e706e
.
* reverse updating libsession-util
* update libsession-util
* Tweaking colors to match designs
* More theme fixes
* WebRTC rework
Only using two sinks and swapping between them
Reworked the device rotation logic as it didn't work well with pitch ( you could tip the device front to back and the rotation went out of whack, so had to resort to more robust calculation for the device orientation.
Had to use a deprecated sensor setting but it's the only one I could use that works.
* Video management logic update
Rounded corners for floating inset
Proper handling of video scaling based on video proportions
Proper handling of mirroring logic for floating/fullscreen videos depending on whether they are the user or the remote video and whether the camera is front facing or not
* Showing floating video inset only when there is at least one video stream active, hiding it when both are inactive
* Rotating controls on rotation
* Clean up
* Review feedback
* OrientationManager
The new OrientationManager encapsulate the orientation logic and sends out a mutable state flow
* PR feedback
---------
Co-authored-by: Ryan Zhao <ryanzhaors@qq.com>
Co-authored-by: Ryan ZHAO <>
This commit is contained in:
@@ -53,8 +53,6 @@
|
||||
|
||||
<attr name="emoji_tab_strip_background" format="color" />
|
||||
<attr name="emoji_tab_indicator" format="color" />
|
||||
<attr name="emoji_tab_underline" format="color" />
|
||||
<attr name="emoji_tab_seperator" format="color" />
|
||||
<attr name="emoji_drawer_background" format="color" />
|
||||
<attr name="emoji_text_color" format="color" />
|
||||
|
||||
@@ -93,7 +91,6 @@
|
||||
|
||||
<attr name="dialog_info_icon" format="reference" />
|
||||
<attr name="dialog_alert_icon" format="reference" />
|
||||
<attr name="dialog_background_color" format="reference|color" />
|
||||
|
||||
<attr name="conversation_icon_attach_audio" format="reference"/>
|
||||
<attr name="conversation_icon_attach_video" format="reference" />
|
||||
|
@@ -40,7 +40,6 @@
|
||||
<color name="gray27">#ffbbbbbb</color>
|
||||
<color name="gray50">#ff808080</color>
|
||||
<color name="gray65">#ff595959</color>
|
||||
<color name="gray70">#ff4d4d4d</color>
|
||||
<color name="gray78">#ff383838</color>
|
||||
|
||||
<color name="transparent_black_30">#30000000</color>
|
||||
|
Reference in New Issue
Block a user