Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Predidit/flutter-webview-windows

 
 

Repository files navigation

what's new about the fork

  • HeadlessWebview mode to run webview without any window or surface. Useful for background tasks like web scraping.
  • GetCookie API to solve the limit of Execscript (Can't access cookie marked as HTTPOnly).
  • onM3USourceLoaded API to notify when m3u8 source is loaded. m3u8 body is also provided.
  • onVideoSourceLoaded API to notify when video source is loaded.

Note

The m3u8 / video parser feature is still experimental. And it requires specific webview2 flags which may be removed in future webview2 releases. Please test it carefully before using it in production.

webview_windows

CI Pub

A Flutter WebView plugin for Windows built on Microsoft Edge WebView2.

Target platform requirements

  • WebView2 Runtime
    Before initializing the webview, call getWebViewVersion() to check whether the required WebView2 Runtime is installed or not on the current system. If getWebViewVersion() returns null, guide your user to install WebView2 Runtime from this page.
  • Windows 10 1809+

Development platform requirements

  • Visual Studio 2019 or higher
  • Windows 11 SDK (10.0.22000.194 or higher)
  • (recommended) nuget.exe in your $PATH (The makefile attempts to download nuget if it's not installed, however, this fallback might not work in China)

Demo

image

webview_demo1.mp4

Limitations

This plugin provides seamless composition of web-based contents with other Flutter widgets by rendering off-screen.

Unfortunately, Microsoft Edge WebView2 doesn't currently have an explicit API for offscreen rendering. In order to still be able to obtain a pixel buffer upon rendering a new frame, this plugin currently relies on the Windows.Graphics.Capture API provided by Windows 10. The downside is that older Windows versions aren't currently supported.

Older Windows versions might still be targeted by using BitBlt for the time being.

See:

About

A webview_windows fork with getCookie / m3u8 sniff Menthod.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • C++ 67.0%
  • Dart 27.8%
  • CMake 4.5%
  • C 0.7%