use LGPL builds

This commit is contained in:
Paddy Xu
2017-10-22 16:33:26 +03:00
parent 63e7b3dd89
commit 778c578656
23 changed files with 8 additions and 1 deletions

View File

@@ -44,7 +44,7 @@ namespace QuickLook.Plugin.VideoViewer
private FFprobe probe; private FFprobe probe;
public int Priority => 0 - 10; // make it lower than TextViewer public int Priority => 0 - 10; // make it lower than TextViewer
public bool AllowsTransparency => true; public bool AllowsTransparency => false;
public void Init() public void Init()
{ {

View File

@@ -138,6 +138,9 @@
<Content Include="ffmpeg\x64\ffprobe.exe"> <Content Include="ffmpeg\x64\ffprobe.exe">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content> </Content>
<Content Include="ffmpeg\x64\postproc-54.dll">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="ffmpeg\x64\swresample-2.dll"> <Content Include="ffmpeg\x64\swresample-2.dll">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content> </Content>
@@ -165,6 +168,9 @@
<Content Include="ffmpeg\x86\ffprobe.exe"> <Content Include="ffmpeg\x86\ffprobe.exe">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content> </Content>
<Content Include="ffmpeg\x86\postproc-54.dll">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="ffmpeg\x86\swresample-2.dll"> <Content Include="ffmpeg\x86\swresample-2.dll">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content> </Content>

View File

@@ -75,6 +75,7 @@ namespace QuickLook.Plugin.VideoViewer
if (_wasPlaying) mediaElement.Play(); if (_wasPlaying) mediaElement.Play();
}; };
mediaElement.MediaFailed += ShowErrorNotification; mediaElement.MediaFailed += ShowErrorNotification;
mediaElement.MediaOpening += (sender, e) => e.Options.EnableHardwareAcceleration = true;
/*mediaElement.MediaEnded += (s, e) => /*mediaElement.MediaEnded += (s, e) =>
{ {
if (mediaElement.IsOpen) if (mediaElement.IsOpen)