How to enable flash in webview on UWP?

前端 未结 2 1720
忘掉有多难
忘掉有多难 2020-12-22 03:04

I used a WebView to browse a url, but it needs flash.

I tried

WebViewSettings ws = webView.Settings;
ws.IsJavaScriptEnabled = true;


        
相关标签:
2条回答
  • 2020-12-22 03:31

    Flash is not supported in UWP WebView.

    In apps compiled for Windows 10, WebView uses the Microsoft Edge rendering engine to display HTML content. In apps compiled for Windows 8 or Windows 8.1, WebView uses Internet Explorer 11 in document mode. It does not support any Microsoft ActiveX controls or plugins like Microsoft Silverlight or Portable Document Format (PDF) files.

    Source: Microsoft docs.

    See also this MSDN blog post, as this confirms the statement.

    WebView doesn’t do Flash. Or Silverlight. Or PDF. Or any other ActiveX control or plugin.

    0 讨论(0)
  • 2020-12-22 03:57

    Ok, if you want to play flash video in UWP app, you don't need Flash.

    VLC can play RTPM stream that used in flash video. So, if you have rtpm links you can play this video in UWP App.

    I'm my case I used VLC.MediaElement. You can simply add it using NuGet. Than you can simply use it like:

    <vlc:MediaElement Source="rtmp://example.com/video_720p" AreTransportControlsEnabled="True" HardwareAcceleration="True"/>
    
    0 讨论(0)
提交回复
热议问题