MediaElement - Compatibility
Posted: 09 Nov 2022, 14:29
Hey,
I have some doubts about MediaElement compatibility.
First, I'm using "Samples.VideoEffect.exe" but I modified the xaml to make it as simple as possible.
How I left:
On my computer (Win11), when I use:
--render gl = open a black screen
--render d3d11 = works normally
--render d3d12 = crash
I created a VM with Win10:
--render gl = open a black screen
--render d3d11 = crash
--render d3d12 = my vm doesn't support DX12.
Does MediaElement support OpenGL?
The fact that D3D11 crashes in a VM would be for what reason? (apparently I tested it on other computers with VM and the same crash happened)
Thanks.
I have some doubts about MediaElement compatibility.
First, I'm using "Samples.VideoEffect.exe" but I modified the xaml to make it as simple as possible.
How I left:
Code: Select all
<Window x:Class="VideoEffect.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d"
xmlns:b="http://schemas.microsoft.com/xaml/behaviors"
xmlns:noesis="clr-namespace:NoesisGUIExtensions;assembly=Noesis.GUI.Extensions"
xmlns:local="clr-namespace:VideoEffect"
Title="NoesisGUI - VideoEffect"
d:DesignWidth="1280" d:DesignHeight="720">
<Window.Resources>
<LinearGradientBrush x:Key="TextBg" StartPoint="0,0" EndPoint="0,1">
<GradientStop Offset="0" Color="#004040"/>
<GradientStop Offset="0.5" Color="Gray"/>
<GradientStop Offset="1" Color="#402040"/>
</LinearGradientBrush>
</Window.Resources>
<Grid x:Name="LayoutRoot">
<Border x:Name="vidbd">
<MediaElement x:Name="vid" Source="Particles.mp4" Stretch="UniformToFill" LoadedBehavior="Manual">
<b:Interaction.Triggers>
<b:EventTrigger EventName="Loaded">
<noesis:PlayMediaAction/>
</b:EventTrigger>
<b:EventTrigger EventName="MediaEnded">
<noesis:StopMediaAction/>
<noesis:PlayMediaAction/>
</b:EventTrigger>
</b:Interaction.Triggers>
</MediaElement>
</Border>
</Grid>
</Window>--render gl = open a black screen
--render d3d11 = works normally
--render d3d12 = crash
I created a VM with Win10:
--render gl = open a black screen
--render d3d11 = crash
--render d3d12 = my vm doesn't support DX12.
Does MediaElement support OpenGL?
The fact that D3D11 crashes in a VM would be for what reason? (apparently I tested it on other computers with VM and the same crash happened)
Thanks.