Hello, I am try to use Camera on Compose Web. In C...
# webassembly
a
Hello, I am try to use Camera on Compose Web. In Common, i have
Copy code
@Composable
expect fun CameraView(
    modifier: Modifier
)
and implementation on each platform. Working best on Android and iOS. Now wondering about Web. What i have done on web is that i have added a
div
tag and once i create a dynamic video element, then i replace that
div
with my
videoElement
because i need to add that to
dom
. I was wondering if there is any better approach like we do in iOS and Android, returning
UIKitView
or
AndroidView
o
From CfW perspective, the interop with native/html/embedded views has not been thought about yet. Anyway, I think some other developers tried to implement something like that in their projects. I guess it's worth asking in #compose-web
a
Let me drop it here, thanks.
s
@Abdul Basit did you find something??
a
Not yet, but the above mentioned way works
s
Thanks i will try it