fix: pass Activity context to CallController for camera orientation
WebRTC's Camera2Session uses WindowManager to get device orientation for frame rotation. WindowManager requires a visual (Activity) context — using Application context throws IllegalAccessException. Changed initCallController to pass the Activity context directly instead of context.applicationContext. https://claude.ai/code/session_017hZm7yu7CzmcQgZGSaqSXS
This commit is contained in:
+1
-1
@@ -213,7 +213,7 @@ class AccountViewModel(
|
||||
|
||||
val controller =
|
||||
CallController(
|
||||
context = context.applicationContext,
|
||||
context = context,
|
||||
callManager = callManager,
|
||||
scope = viewModelScope,
|
||||
publishWrap = { wrap -> account.publishCallSignaling(wrap) },
|
||||
|
||||
Reference in New Issue
Block a user