airsdk / Adobe-Runtime-Support

Report, track and discuss issues in Adobe AIR. Monitored by Adobe - and HARMAN - and maintained by the AIR community.
201 stars 11 forks source link

Webview2 not working with runtime 97.0.1072.69 with version 94 no problem #1590

Open win3k opened 2 years ago

win3k commented 2 years ago

Windows 10 SDK 33.1.1.743

Problem Description

Error when loading stagewebview

Error: Error #1001: The method StageWebView is not implemented. at flash.media::StageWebView/init() at flash.media::StageWebView() at Webview_win10_fla::MainTimeline/frame1()[Webview_win10_fla.MainTimeline::frame1:12] at runtime::ContentPlayer/loadInitialContent() at runtime::ContentPlayer/playRawContent() at runtime::ContentPlayer/playContent() at runtime::AppRunner/run() at ADLAppEntry/run() at global/runtime::ADLEntry()

Steps to Reproduce

var webView : StageWebView; webView = new StageWebView( true ); webView.stage = this.stage; webView.viewPort = new Rectangle( 0, 0, 1024, 768 ); webView.loadURL("https://google.com/");

Known Workarounds

Just in case others run into this – do you happen to know of a workaround? Otherwise, just remove this section altogether.

ajwfrost commented 2 years ago

This is likely to be the same issue as was reported for other Windows versions, basically Microsoft updated their installer such that it's providing a per-user installation of the WebView2 component rather than a per-machine. Which also means that their documentation is wrong in terms of what registry entry we need to look at to find the install location....

We have a fix for this that will be in the next release. Or if you're able to get their installer to run with elevated permissions, it should then install in the per-machine mode and add the correct registry entry...

itlancer commented 2 years ago

@win3k, you could check with latest AIR 33.1.1.856. My similar issues gone with it. https://github.com/airsdk/Adobe-Runtime-Support/issues/1565