mirror of
https://github.com/QL-Win/QuickLook.git
synced 2025-12-24 02:00:55 +08:00
HW acceleration for videos
This commit is contained in:
@@ -339,7 +339,7 @@ namespace QuickLook.Plugin.VideoViewer
|
||||
|
||||
public void LoadAndPlay(string path)
|
||||
{
|
||||
mediaElement.LoadMedia(path);
|
||||
mediaElement.LoadMediaWithOptions(path, ":avcodec-hw=dxva2");
|
||||
mediaElement.Volume = 50;
|
||||
|
||||
mediaElement.Play();
|
||||
|
||||
Reference in New Issue
Block a user