Repository navigation
[WebView] can't fullscreen html5 video inside iframe #27101
Copy link
Copy link
Closed
flutter/packages
#3879Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work listc: new featureNothing broken; request for a new capabilityNothing broken; request for a new capabilitycustomer: crowdAffects or could affect many people, though not necessarily a specific customer.Affects or could affect many people, though not necessarily a specific customer.found in release: 3.10Found to occur in 3.10Found to occur in 3.10found in release: 3.7Found to occur in 3.7Found to occur in 3.7has reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work onp: webviewThe WebView pluginThe WebView pluginpackageflutter/packages repository. See also p: labels.flutter/packages repository. See also p: labels.platform-androidAndroid applications specificallyAndroid applications specificallyr: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer versionteam-androidOwned by Android platform teamOwned by Android platform teamtriaged-androidTriaged by Android platform teamTriaged by Android platform team
Description
Cannot make html5 video fullscreen. if i open the link in chrome outside the app i can make it fullscreen. but inside the WebView I can't.
<iframe sandbox="allow-scripts" src="$url" width="100%" height="100%" frameborder="0" allowfullscreen></iframe>
@override
Widget build(BuildContext context) {
return new Scaffold(
appBar: AppBar(
title: Text("Title"),
),
body:
Container(
color: Colors.black,
child: episode!=null?
WebView(
initialUrl: 'http://0.0.0.0:8082?url='+episode.streamUrl,
javascriptMode: JavascriptMode.unrestricted,
):Text('Loading'),
)
);Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work listc: new featureNothing broken; request for a new capabilityNothing broken; request for a new capabilitycustomer: crowdAffects or could affect many people, though not necessarily a specific customer.Affects or could affect many people, though not necessarily a specific customer.found in release: 3.10Found to occur in 3.10Found to occur in 3.10found in release: 3.7Found to occur in 3.7Found to occur in 3.7has reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work onp: webviewThe WebView pluginThe WebView pluginpackageflutter/packages repository. See also p: labels.flutter/packages repository. See also p: labels.platform-androidAndroid applications specificallyAndroid applications specificallyr: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer versionteam-androidOwned by Android platform teamOwned by Android platform teamtriaged-androidTriaged by Android platform teamTriaged by Android platform team
Activity
insinfo commentedon Jun 12, 2019
I'm having the same problem with embedded YouTube videos
mccreeper98 commentedon Aug 28, 2019
any solution??
marcosgallardo commentedon Aug 31, 2019
How about allowing video fullscreen into a
<video>tag?PetrusVermaak commentedon Nov 2, 2019
Same issue for embedding fb live stream videos. It works in native browser, but not inside flutter webview. Any idea how to resolve this?
pichillilorenzo commentedon Nov 27, 2019
You can try my plugin flutter_inappbrowser (EDIT: it has been renamed to flutter_inappwebview).
An example of a WebView loading a local file from the assets folder (see more here):
The
index.htmlfile with your iframe:Or using
initialDataif you want load html from flutter without using a local file:maltub9 commentedon Dec 3, 2019
I tried your plugin. but I got error :
uses-sdk:minSdkVersion 16 cannot be smaller than version 17 declared in library
pichillilorenzo commentedon Dec 3, 2019
@maltub9 as specified in the main page of the repository (here) and in the official documentation (here), you need to update the
minSdkVersionof yourandroid/app/build.gradlefile to at least 17.Also, you need to add
<uses-permission android:name="android.permission.INTERNET"/>in theandroid/app/src/main/AndroidManifest.xmlfile in order to give minimum permission to perform network operations in your application.maltub9 commentedon Dec 4, 2019
Thank you for reply. I fixed the problem. and your plugin successfully showed the fullscreen button. but once I clicked on the full screen button the app crushed.
pichillilorenzo commentedon Dec 4, 2019
@maltub9 open an issue on the plugin repository with error logs, etc.
saklani commentedon Dec 18, 2019
67 remaining items
Prabesh01 commentedon Jun 30, 2023
why is mere Fullscreen not supported yet!?
in my website, i have this js code for fullscreen which works everywhere else but doesnt work on flutter_webview:
[webview_flutter_android] Added the functionality to fullscreen html5…
github-actions commentedon Sep 25, 2023
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.[webview_flutter_android] Added the functionality to fullscreen html5…
[webview_flutter_android] Added the functionality to fullscreen html5…