-
Notifications
You must be signed in to change notification settings - Fork 27.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Webview Plugin: is there any loadDataWithBaseURL alternative? #34920
Comments
Hi @Praveena0989, Can you post a reproduction of the issue? We will need more information to help you resolve it. |
This is my HTML file
And I am using it in my code like this
But youtube video won't play but shows video unavailable it's because youtube doesn't allow playing from local HTML which can be solved in android using |
Did you ever find a solution to this? |
@Praveena0989 did you find a solution? |
@Piinks any idea, please? |
I had opened pull request for this, in which the flutter webview has the support for baseUrl and localHtml support same as react native. I don't know why it is still not merged. flutter/plugins#2830 html: "Sample", also if required the html inside webview can be replaced with other other using webviewController. webViewController.loadHtml(html); ---This needs to be added in pubspec.yaml--- |
Hey! please let us know when it will be merged? |
Closing as resolved; the current API has |
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 |
In the android version of my app, I use
loadDataWithBaseURL
to load the local HTML file and I use it to play youtube videos using youtube JS SDK.loadDataWithBaseURL("https://www.youtube.com", htmlPageString, "text/html", "utf-8", null)
In flutter, I am able to load the local HTML file but I am not able to play youtube video as Youtube throws video not available error and I used to get same error while using
loadData
api insead ofloadDataWithBaseURL
in android.The text was updated successfully, but these errors were encountered: