Vincent
Vincent

Reputation: 3304

How to enable flash in webview on UWP?

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

I tried

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

But javascript has nothing relate with flash plugin.

Is there any way to enable it on uwp?

Upvotes: 1

Views: 932

Answers (2)

ad1Dima
ad1Dima

Reputation: 3197

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"/>

Upvotes: 3

Bart
Bart

Reputation: 10015

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.

Upvotes: 4

Related Questions