Microphone and camera doesn't work
Hey! I'm trying to open a jitsi meeting inside an WebViewX:
WebViewX(
webSpecificParams: WebSpecificParams(additionalAllowOptions: [
'camera',
'microphone',
]),
initialMediaPlaybackPolicy: AutoMediaPlaybackPolicy.alwaysAllow,
initialContent: this.widget.url, // https://meet.jit.si/somerandomtext
initialSourceType: SourceType.url,
onWebViewCreated: (controller) => webviewController = controller,
height: maxHeight,
width: maxWidth,
);
This is what I get on web:
And this is what I get on mobile (android):
None of that want to work.
I have added the following to AndroidManifest.xml
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS"/>
<uses-permission android:name="android.permission.RECORD_AUDIO"/>
<uses-permission android:name="android.permission.CAMERA"/>
Looks like this doesn't work on web ether,
I'm looking into using IFrames directly since this might be a Flutter issue , will update this ticket if I find anything
So it looks like if you instead use html as the source type it works, so this shouldn't be hard to work around or fix at least on web.
Looks like this works fine on Flutter Web if your on an Android phone using Chrome.
Overall this is an amazing plugin, thank you !
@Mylab6 Can you elaborate more on how you solve the issue on Flutter web. Because running in Chrome on windows I got the same error as 3h5t4tvz8etx1op2 described in the ticket.
I never got it working on Windows, only on an Android phone which is closer to my projects needs.