Skip to content

Cannot run extension #23

Open
Open
@shentoneco

Description

@shentoneco

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions