Skip to content

Cannot run extension #23

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

Open
shentoneco opened this issue Apr 19, 2020 · 0 comments
Open

Cannot run extension #23

shentoneco opened this issue Apr 19, 2020 · 0 comments

Comments

@shentoneco
Copy link

I've installed a Chrome extension on Microsoft Edge (Chromium) to play HLS video. I've tried on Microsoft Edge (Chromium) and it works fine. The HLS URL is http://localhost/hls/taiguo/playlist.m3u8 and the Microsoft Edge browser displays the full URL as: extension://ekcifneimckhkjdfklkkpdlnckcjhmke/index.html#http://localhost/hls/taiguo/playlist.m3u8.

I want to use the code sample from Getting Started with WebView2 (developer preview) to play the media in a Windows program. If I call Navigate(...) using the .m3u8 URL as follows:
webviewWindow->Navigate(L"http://localhost/hls/taiguo/playlist.m3u8");
the application will download the playlist file, but not play the media automatically. If I use the full extension like:
webviewWindow->Navigate(L"extension://ekcifneimckhkjdfklkkpdlnckcjhmke/index.html#http://localhost/hls/taiguo/playlist.m3u8");
the app will display the following error message:
ekcifneimckhkjdfklkkpdlnckcjhmke is blocked
Requests to the server have been blocked by an extension.
Try disabling your extensions.

I hope someone can tell me what is the correct way to run extension using WebView2. Thanks in advance!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant