using media info by default

This commit is contained in:
stax76
2022-06-04 00:27:17 +02:00
parent 2e2562fefc
commit 2af13e995f
4 changed files with 4 additions and 3 deletions

View File

@@ -480,7 +480,7 @@ Amount of recent files to be remembered. Default: 15
#### --media-info=\<yes|no\>
Usage of the media info library instead of mpv to access media information. Default: no (mpv.net specific option)
Usage of the media info library instead of mpv to access media information. Default: yes (mpv.net specific option)
#### --video-file-extensions=\<string\>

View File

@@ -26,7 +26,7 @@ namespace mpvnet
public static bool DebugMode { get; set; }
public static bool Exit { get; set; }
public static bool IsTerminalAttached { get; } = Environment.GetEnvironmentVariable("_started_from_console") == "yes";
public static bool MediaInfo { get; set; }
public static bool MediaInfo { get; set; } = true;
public static bool Queue { get; set; }
public static bool RememberVolume { get; set; } = true;
public static bool RememberWindowPosition { get; set; }

View File

@@ -1578,6 +1578,7 @@ namespace mpvnet
Add(track, mi.GetVideo(i, "Format"));
Add(track, mi.GetVideo(i, "Format_Profile"));
Add(track, mi.GetVideo(i, "Width") + "x" + mi.GetVideo(i, "Height"));
Add(track, mi.GetVideo(i, "BitRate/String"));
Add(track, fps + " FPS");
Add(track, mi.GetVideo(i, "Language/String"));
Add(track, mi.GetVideo(i, "Forced") == "Yes" ? "Forced" : "");

View File

@@ -19,7 +19,7 @@ help = <int> Amount of recent files to be remembered. Default: 15 (mpv.net speci
[setting]
name = media-info
file = mpvnet
default = no
default = yes
filter = General
help = Usage of the media info library instead of mpv to access media information. Default: no (mpv.net specific option)