Flutter Webview Does not play Video on IOS & Emulator

729 views
Skip to first unread message

Bridget Kelly O'Sheehan

unread,
May 17, 2021, 7:07:05 AM5/17/21
to Flutter Development (flutter-dev)
Hi All,

On the Android version which is available application is perfect, however when you build the Apple version it does not play on the phone.

I can understand it not working for Emulator (never did in either Android/IOS) emulators but on a real device it does not work.

Any one with any ideas as to why it does not work?

// class ListenLivePage extends StatelessWidget {
// @override
// Widget build(BuildContext context) {
// return new Scaffold(
// drawer: DrawerCodeOnly(),
// appBar: new AppBar(
// title: new Text('View TV'),
// backgroundColor: Colors.black,
// ),
// body: WebViewPlus(
// javascriptMode: JavascriptMode.unrestricted,
// onWebViewCreated: (controller) {
// controller
// },
// ));
// }
// }

Even in the Plist file, I have this also:

<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationPortraitUpsideDown</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
<key>UIViewControllerBasedStatusBarAppearance</key>
<false/>
<key>io.flutter.embedded_views.previews</key>
<string>YES</string>
<key> NSAppTransportSecurity </key>
<dict>
<key>NSAllowsArbitraryLoads</key><true/>
</dict>
<key>NSAllowsArbitraryLoadsForMedia</key>
<true/>
<key>NSAllowsArbitraryLoadsInWebContent</key>
<false/>
</dict>

Any information would be greatly appreciated,

Kindest Regards,

Bridget


Balaji K S

unread,
May 17, 2021, 8:24:32 AM5/17/21
to Bridget Kelly O'Sheehan, Flutter Development (flutter-dev)
So yes apple is restricting the webview video playing options for their privacy concerns.

Regards & Thanks,
Balaji Ks



--
You received this message because you are subscribed to the Google Groups "Flutter Development (flutter-dev)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flutter-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/flutter-dev/e546cb49-697d-47c5-8ae9-4eabc5ab8825n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages