mirror of
https://github.com/QL-Win/QuickLook.git
synced 2025-09-13 19:19:10 +00:00
remember volume
This commit is contained in:
@@ -168,6 +168,8 @@ namespace QuickLook.Plugin.VideoViewer
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
_context.SetSetting("Volume", mediaElement.Volume);
|
||||
|
||||
try
|
||||
{
|
||||
Task.Run(() =>
|
||||
@@ -317,7 +319,7 @@ namespace QuickLook.Plugin.VideoViewer
|
||||
public void LoadAndPlay(string path)
|
||||
{
|
||||
mediaElement.LoadMediaWithOptions(path, ":avcodec-hw=dxva2");
|
||||
mediaElement.Volume = 50;
|
||||
mediaElement.Volume = _context.GetSetting("Volume", 50);
|
||||
|
||||
mediaElement.Play();
|
||||
}
|
||||
|
Reference in New Issue
Block a user