From 6f67462ee96a23563e5f015da10d81d6c87b3772 Mon Sep 17 00:00:00 2001 From: croire <1432593898@qq.com> Date: Tue, 22 Mar 2022 22:47:15 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=BE=E7=BD=AE=E5=A2=9E=E5=8A=A0=E5=88=9D?= =?UTF-8?q?=E5=A7=8B=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Server/AriaConfigFileAllocation.cs | 1 + .../Aria2cNet/Server/AriaConfigLogLevel.cs | 1 + .../Settings/AfterDownloadOperation.cs | 1 + DownKyi.Core/Settings/DownloadFinishedSort.cs | 3 ++- DownKyi.Core/Settings/Models/AboutSettings.cs | 4 ++-- DownKyi.Core/Settings/Models/BasicSettings.cs | 10 ++++----- .../Settings/Models/DanmakuSettings.cs | 20 ++++++++--------- .../Settings/Models/NetworkSettings.cs | 22 +++++++++---------- DownKyi.Core/Settings/Models/VideoSettings.cs | 18 +++++++-------- DownKyi.Core/Settings/ParseScope.cs | 1 + .../Settings/SettingsManager.About.cs | 4 ++-- .../Settings/SettingsManager.Basic.cs | 10 ++++----- .../Settings/SettingsManager.Danmaku.cs | 18 +++++++-------- .../Settings/SettingsManager.Network.cs | 20 ++++++++--------- .../Settings/SettingsManager.Video.cs | 10 ++++----- 15 files changed, 74 insertions(+), 69 deletions(-) diff --git a/DownKyi.Core/Aria2cNet/Server/AriaConfigFileAllocation.cs b/DownKyi.Core/Aria2cNet/Server/AriaConfigFileAllocation.cs index e00a9aa..38bf62f 100644 --- a/DownKyi.Core/Aria2cNet/Server/AriaConfigFileAllocation.cs +++ b/DownKyi.Core/Aria2cNet/Server/AriaConfigFileAllocation.cs @@ -5,6 +5,7 @@ /// public enum AriaConfigFileAllocation { + NOT_SET = 0, NONE = 1, // 没有预分配 PREALLOC, // 预分配,默认 FALLOC // NTFS建议使用 diff --git a/DownKyi.Core/Aria2cNet/Server/AriaConfigLogLevel.cs b/DownKyi.Core/Aria2cNet/Server/AriaConfigLogLevel.cs index b1f4620..ac27188 100644 --- a/DownKyi.Core/Aria2cNet/Server/AriaConfigLogLevel.cs +++ b/DownKyi.Core/Aria2cNet/Server/AriaConfigLogLevel.cs @@ -5,6 +5,7 @@ /// public enum AriaConfigLogLevel { + NOT_SET = 0, DEBUG = 1, INFO, NOTICE, diff --git a/DownKyi.Core/Settings/AfterDownloadOperation.cs b/DownKyi.Core/Settings/AfterDownloadOperation.cs index 99ac8a1..d6ebdb1 100644 --- a/DownKyi.Core/Settings/AfterDownloadOperation.cs +++ b/DownKyi.Core/Settings/AfterDownloadOperation.cs @@ -2,6 +2,7 @@ { public enum AfterDownloadOperation { + NOT_SET = 0, NONE = 1, OPEN_FOLDER, CLOSE_APP, diff --git a/DownKyi.Core/Settings/DownloadFinishedSort.cs b/DownKyi.Core/Settings/DownloadFinishedSort.cs index 6676737..9f1c773 100644 --- a/DownKyi.Core/Settings/DownloadFinishedSort.cs +++ b/DownKyi.Core/Settings/DownloadFinishedSort.cs @@ -2,7 +2,8 @@ { public enum DownloadFinishedSort { - DOWNLOAD = 0, + NOT_SET = 0, + DOWNLOAD, NUMBER } } diff --git a/DownKyi.Core/Settings/Models/AboutSettings.cs b/DownKyi.Core/Settings/Models/AboutSettings.cs index 7b6a1db..46e1543 100644 --- a/DownKyi.Core/Settings/Models/AboutSettings.cs +++ b/DownKyi.Core/Settings/Models/AboutSettings.cs @@ -5,7 +5,7 @@ /// public class AboutSettings { - public AllowStatus IsReceiveBetaVersion { get; set; } - public AllowStatus AutoUpdateWhenLaunch { get; set; } + public AllowStatus IsReceiveBetaVersion { get; set; } = AllowStatus.NONE; + public AllowStatus AutoUpdateWhenLaunch { get; set; } = AllowStatus.NONE; } } diff --git a/DownKyi.Core/Settings/Models/BasicSettings.cs b/DownKyi.Core/Settings/Models/BasicSettings.cs index 46a53e0..ece4d9c 100644 --- a/DownKyi.Core/Settings/Models/BasicSettings.cs +++ b/DownKyi.Core/Settings/Models/BasicSettings.cs @@ -5,10 +5,10 @@ /// public class BasicSettings { - public AfterDownloadOperation AfterDownload { get; set; } - public AllowStatus IsListenClipboard { get; set; } - public AllowStatus IsAutoParseVideo { get; set; } - public ParseScope ParseScope { get; set; } - public DownloadFinishedSort DownloadFinishedSort { get; set; } + public AfterDownloadOperation AfterDownload { get; set; } = AfterDownloadOperation.NOT_SET; + public AllowStatus IsListenClipboard { get; set; } = AllowStatus.NONE; + public AllowStatus IsAutoParseVideo { get; set; } = AllowStatus.NONE; + public ParseScope ParseScope { get; set; } = ParseScope.NOT_SET; + public DownloadFinishedSort DownloadFinishedSort { get; set; } = DownloadFinishedSort.NOT_SET; } } diff --git a/DownKyi.Core/Settings/Models/DanmakuSettings.cs b/DownKyi.Core/Settings/Models/DanmakuSettings.cs index 64bc828..e018152 100644 --- a/DownKyi.Core/Settings/Models/DanmakuSettings.cs +++ b/DownKyi.Core/Settings/Models/DanmakuSettings.cs @@ -5,15 +5,15 @@ /// public class DanmakuSettings { - public AllowStatus DanmakuTopFilter { get; set; } - public AllowStatus DanmakuBottomFilter { get; set; } - public AllowStatus DanmakuScrollFilter { get; set; } - public AllowStatus IsCustomDanmakuResolution { get; set; } - public int DanmakuScreenWidth { get; set; } - public int DanmakuScreenHeight { get; set; } - public string DanmakuFontName { get; set; } - public int DanmakuFontSize { get; set; } - public int DanmakuLineCount { get; set; } - public DanmakuLayoutAlgorithm DanmakuLayoutAlgorithm { get; set; } + public AllowStatus DanmakuTopFilter { get; set; } = AllowStatus.NONE; + public AllowStatus DanmakuBottomFilter { get; set; } = AllowStatus.NONE; + public AllowStatus DanmakuScrollFilter { get; set; } = AllowStatus.NONE; + public AllowStatus IsCustomDanmakuResolution { get; set; } = AllowStatus.NONE; + public int DanmakuScreenWidth { get; set; } = -1; + public int DanmakuScreenHeight { get; set; } = -1; + public string DanmakuFontName { get; set; } = null; + public int DanmakuFontSize { get; set; } = -1; + public int DanmakuLineCount { get; set; } = -1; + public DanmakuLayoutAlgorithm DanmakuLayoutAlgorithm { get; set; } = DanmakuLayoutAlgorithm.NONE; } } diff --git a/DownKyi.Core/Settings/Models/NetworkSettings.cs b/DownKyi.Core/Settings/Models/NetworkSettings.cs index cdfcb5f..6b283f8 100644 --- a/DownKyi.Core/Settings/Models/NetworkSettings.cs +++ b/DownKyi.Core/Settings/Models/NetworkSettings.cs @@ -7,17 +7,17 @@ namespace DownKyi.Core.Settings.Models /// public class NetworkSettings { - public AllowStatus IsLiftingOfRegion { get; set; } - public int AriaListenPort { get; set; } - public AriaConfigLogLevel AriaLogLevel { get; set; } - public int AriaMaxConcurrentDownloads { get; set; } - public int AriaSplit { get; set; } - public int AriaMaxOverallDownloadLimit { get; set; } - public int AriaMaxDownloadLimit { get; set; } - public AriaConfigFileAllocation AriaFileAllocation { get; set; } + public AllowStatus IsLiftingOfRegion { get; set; } = AllowStatus.NONE; + public int AriaListenPort { get; set; } = -1; + public AriaConfigLogLevel AriaLogLevel { get; set; } = AriaConfigLogLevel.NOT_SET; + public int AriaMaxConcurrentDownloads { get; set; } = -1; + public int AriaSplit { get; set; } = -1; + public int AriaMaxOverallDownloadLimit { get; set; } = -1; + public int AriaMaxDownloadLimit { get; set; } = -1; + public AriaConfigFileAllocation AriaFileAllocation { get; set; } = AriaConfigFileAllocation.NOT_SET; - public AllowStatus IsAriaHttpProxy { get; set; } - public string AriaHttpProxy { get; set; } - public int AriaHttpProxyListenPort { get; set; } + public AllowStatus IsAriaHttpProxy { get; set; } = AllowStatus.NONE; + public string AriaHttpProxy { get; set; } = null; + public int AriaHttpProxyListenPort { get; set; } = -1; } } diff --git a/DownKyi.Core/Settings/Models/VideoSettings.cs b/DownKyi.Core/Settings/Models/VideoSettings.cs index 63d3f82..fc9c56b 100644 --- a/DownKyi.Core/Settings/Models/VideoSettings.cs +++ b/DownKyi.Core/Settings/Models/VideoSettings.cs @@ -8,14 +8,14 @@ namespace DownKyi.Core.Settings.Models /// public class VideoSettings { - public VideoCodecs VideoCodecs { get; set; } // AVC or HEVC - public int Quality { get; set; } // 画质 - public int AudioQuality { get; set; } // 音质 - public AllowStatus IsTranscodingFlvToMp4 { get; set; } // 是否将flv转为mp4 - public string SaveVideoRootPath { get; set; } // 视频保存路径 - public List HistoryVideoRootPaths { get; set; } // 历史视频保存路径 - public AllowStatus IsUseSaveVideoRootPath { get; set; } // 是否使用默认视频保存路径 - public List FileNameParts { get; set; } // 文件命名格式 - public string FileNamePartTimeFormat { get; set; } // 文件命名中的时间格式 + public VideoCodecs VideoCodecs { get; set; } = VideoCodecs.NONE; // AVC or HEVC + public int Quality { get; set; } = -1; // 画质 + public int AudioQuality { get; set; } = -1; // 音质 + public AllowStatus IsTranscodingFlvToMp4 { get; set; } = AllowStatus.NONE; // 是否将flv转为mp4 + public string SaveVideoRootPath { get; set; } = null; // 视频保存路径 + public List HistoryVideoRootPaths { get; set; } = null; // 历史视频保存路径 + public AllowStatus IsUseSaveVideoRootPath { get; set; } = AllowStatus.NONE; // 是否使用默认视频保存路径 + public List FileNameParts { get; set; } = null; // 文件命名格式 + public string FileNamePartTimeFormat { get; set; } = null; // 文件命名中的时间格式 } } diff --git a/DownKyi.Core/Settings/ParseScope.cs b/DownKyi.Core/Settings/ParseScope.cs index b028eac..d846ebf 100644 --- a/DownKyi.Core/Settings/ParseScope.cs +++ b/DownKyi.Core/Settings/ParseScope.cs @@ -2,6 +2,7 @@ { public enum ParseScope { + NOT_SET = 0, NONE = 1, SELECTED_ITEM, CURRENT_SECTION, diff --git a/DownKyi.Core/Settings/SettingsManager.About.cs b/DownKyi.Core/Settings/SettingsManager.About.cs index b4a2f75..5cb15cb 100644 --- a/DownKyi.Core/Settings/SettingsManager.About.cs +++ b/DownKyi.Core/Settings/SettingsManager.About.cs @@ -15,7 +15,7 @@ public AllowStatus IsReceiveBetaVersion() { appSettings = GetSettings(); - if (appSettings.About.IsReceiveBetaVersion == 0) + if (appSettings.About.IsReceiveBetaVersion == AllowStatus.NONE) { // 第一次获取,先设置默认值 IsReceiveBetaVersion(isReceiveBetaVersion); @@ -42,7 +42,7 @@ public AllowStatus GetAutoUpdateWhenLaunch() { appSettings = GetSettings(); - if (appSettings.About.AutoUpdateWhenLaunch == 0) + if (appSettings.About.AutoUpdateWhenLaunch == AllowStatus.NONE) { // 第一次获取,先设置默认值 SetAutoUpdateWhenLaunch(autoUpdateWhenLaunch); diff --git a/DownKyi.Core/Settings/SettingsManager.Basic.cs b/DownKyi.Core/Settings/SettingsManager.Basic.cs index d5f93e7..10cf7ab 100644 --- a/DownKyi.Core/Settings/SettingsManager.Basic.cs +++ b/DownKyi.Core/Settings/SettingsManager.Basic.cs @@ -24,7 +24,7 @@ public AfterDownloadOperation GetAfterDownloadOperation() { appSettings = GetSettings(); - if (appSettings.Basic.AfterDownload == 0) + if (appSettings.Basic.AfterDownload == AfterDownloadOperation.NOT_SET) { // 第一次获取,先设置默认值 SetAfterDownloadOperation(afterDownload); @@ -51,7 +51,7 @@ public AllowStatus IsListenClipboard() { appSettings = GetSettings(); - if (appSettings.Basic.IsListenClipboard == 0) + if (appSettings.Basic.IsListenClipboard == AllowStatus.NONE) { // 第一次获取,先设置默认值 IsListenClipboard(isListenClipboard); @@ -78,7 +78,7 @@ public AllowStatus IsAutoParseVideo() { appSettings = GetSettings(); - if (appSettings.Basic.IsAutoParseVideo == 0) + if (appSettings.Basic.IsAutoParseVideo == AllowStatus.NONE) { // 第一次获取,先设置默认值 IsAutoParseVideo(isAutoParseVideo); @@ -105,7 +105,7 @@ public ParseScope GetParseScope() { appSettings = GetSettings(); - if (appSettings.Basic.ParseScope == 0) + if (appSettings.Basic.ParseScope == ParseScope.NOT_SET) { // 第一次获取,先设置默认值 SetParseScope(parseScope); @@ -132,7 +132,7 @@ public DownloadFinishedSort GetDownloadFinishedSort() { appSettings = GetSettings(); - if (appSettings.Basic.DownloadFinishedSort == 0) + if (appSettings.Basic.DownloadFinishedSort == DownloadFinishedSort.NOT_SET) { // 第一次获取,先设置默认值 SetDownloadFinishedSort(finishedSort); diff --git a/DownKyi.Core/Settings/SettingsManager.Danmaku.cs b/DownKyi.Core/Settings/SettingsManager.Danmaku.cs index 34f2b95..48e9a1b 100644 --- a/DownKyi.Core/Settings/SettingsManager.Danmaku.cs +++ b/DownKyi.Core/Settings/SettingsManager.Danmaku.cs @@ -40,7 +40,7 @@ public AllowStatus GetDanmakuTopFilter() { appSettings = GetSettings(); - if (appSettings.Danmaku.DanmakuTopFilter == 0) + if (appSettings.Danmaku.DanmakuTopFilter == AllowStatus.NONE) { // 第一次获取,先设置默认值 SetDanmakuTopFilter(danmakuTopFilter); @@ -67,7 +67,7 @@ public AllowStatus GetDanmakuBottomFilter() { appSettings = GetSettings(); - if (appSettings.Danmaku.DanmakuBottomFilter == 0) + if (appSettings.Danmaku.DanmakuBottomFilter == AllowStatus.NONE) { // 第一次获取,先设置默认值 SetDanmakuBottomFilter(danmakuBottomFilter); @@ -94,7 +94,7 @@ public AllowStatus GetDanmakuScrollFilter() { appSettings = GetSettings(); - if (appSettings.Danmaku.DanmakuScrollFilter == 0) + if (appSettings.Danmaku.DanmakuScrollFilter == AllowStatus.NONE) { // 第一次获取,先设置默认值 SetDanmakuScrollFilter(danmakuScrollFilter); @@ -121,7 +121,7 @@ public AllowStatus IsCustomDanmakuResolution() { appSettings = GetSettings(); - if (appSettings.Danmaku.IsCustomDanmakuResolution == 0) + if (appSettings.Danmaku.IsCustomDanmakuResolution == AllowStatus.NONE) { // 第一次获取,先设置默认值 IsCustomDanmakuResolution(isCustomDanmakuResolution); @@ -148,7 +148,7 @@ public int GetDanmakuScreenWidth() { appSettings = GetSettings(); - if (appSettings.Danmaku.DanmakuScreenWidth == 0) + if (appSettings.Danmaku.DanmakuScreenWidth == -1) { // 第一次获取,先设置默认值 SetDanmakuScreenWidth(danmakuScreenWidth); @@ -175,7 +175,7 @@ public int GetDanmakuScreenHeight() { appSettings = GetSettings(); - if (appSettings.Danmaku.DanmakuScreenHeight == 0) + if (appSettings.Danmaku.DanmakuScreenHeight == -1) { // 第一次获取,先设置默认值 SetDanmakuScreenHeight(danmakuScreenHeight); @@ -229,7 +229,7 @@ public int GetDanmakuFontSize() { appSettings = GetSettings(); - if (appSettings.Danmaku.DanmakuFontSize == 0) + if (appSettings.Danmaku.DanmakuFontSize == -1) { // 第一次获取,先设置默认值 SetDanmakuFontSize(danmakuFontSize); @@ -256,7 +256,7 @@ public int GetDanmakuLineCount() { appSettings = GetSettings(); - if (appSettings.Danmaku.DanmakuLineCount == 0) + if (appSettings.Danmaku.DanmakuLineCount == -1) { // 第一次获取,先设置默认值 SetDanmakuLineCount(danmakuLineCount); @@ -283,7 +283,7 @@ public DanmakuLayoutAlgorithm GetDanmakuLayoutAlgorithm() { appSettings = GetSettings(); - if (appSettings.Danmaku.DanmakuLayoutAlgorithm == 0) + if (appSettings.Danmaku.DanmakuLayoutAlgorithm == DanmakuLayoutAlgorithm.NONE) { // 第一次获取,先设置默认值 SetDanmakuLayoutAlgorithm(danmakuLayoutAlgorithm); diff --git a/DownKyi.Core/Settings/SettingsManager.Network.cs b/DownKyi.Core/Settings/SettingsManager.Network.cs index 95675e2..b7d0559 100644 --- a/DownKyi.Core/Settings/SettingsManager.Network.cs +++ b/DownKyi.Core/Settings/SettingsManager.Network.cs @@ -40,7 +40,7 @@ namespace DownKyi.Core.Settings public AllowStatus IsLiftingOfRegion() { appSettings = GetSettings(); - if (appSettings.Network.IsLiftingOfRegion == 0) + if (appSettings.Network.IsLiftingOfRegion == AllowStatus.NONE) { // 第一次获取,先设置默认值 IsLiftingOfRegion(isLiftingOfRegion); @@ -67,7 +67,7 @@ namespace DownKyi.Core.Settings public int GetAriaListenPort() { appSettings = GetSettings(); - if (appSettings.Network.AriaListenPort == 0) + if (appSettings.Network.AriaListenPort == -1) { // 第一次获取,先设置默认值 SetAriaListenPort(ariaListenPort); @@ -94,7 +94,7 @@ namespace DownKyi.Core.Settings public AriaConfigLogLevel GetAriaLogLevel() { appSettings = GetSettings(); - if (appSettings.Network.AriaLogLevel == 0) + if (appSettings.Network.AriaLogLevel == AriaConfigLogLevel.NOT_SET) { // 第一次获取,先设置默认值 SetAriaLogLevel(ariaLogLevel); @@ -121,7 +121,7 @@ namespace DownKyi.Core.Settings public int GetAriaMaxConcurrentDownloads() { appSettings = GetSettings(); - if (appSettings.Network.AriaMaxConcurrentDownloads == 0) + if (appSettings.Network.AriaMaxConcurrentDownloads == -1) { // 第一次获取,先设置默认值 SetAriaMaxConcurrentDownloads(ariaMaxConcurrentDownloads); @@ -148,7 +148,7 @@ namespace DownKyi.Core.Settings public int GetAriaSplit() { appSettings = GetSettings(); - if (appSettings.Network.AriaSplit == 0) + if (appSettings.Network.AriaSplit == -1) { // 第一次获取,先设置默认值 SetAriaSplit(ariaSplit); @@ -175,7 +175,7 @@ namespace DownKyi.Core.Settings public int GetAriaMaxOverallDownloadLimit() { appSettings = GetSettings(); - if (appSettings.Network.AriaMaxOverallDownloadLimit == 0) + if (appSettings.Network.AriaMaxOverallDownloadLimit == -1) { // 第一次获取,先设置默认值 SetAriaMaxOverallDownloadLimit(ariaMaxOverallDownloadLimit); @@ -202,7 +202,7 @@ namespace DownKyi.Core.Settings public int GetAriaMaxDownloadLimit() { appSettings = GetSettings(); - if (appSettings.Network.AriaMaxDownloadLimit == 0) + if (appSettings.Network.AriaMaxDownloadLimit == -1) { // 第一次获取,先设置默认值 SetAriaMaxDownloadLimit(ariaMaxDownloadLimit); @@ -229,7 +229,7 @@ namespace DownKyi.Core.Settings public AriaConfigFileAllocation GetAriaFileAllocation() { appSettings = GetSettings(); - if (appSettings.Network.AriaFileAllocation == 0) + if (appSettings.Network.AriaFileAllocation == AriaConfigFileAllocation.NOT_SET) { // 第一次获取,先设置默认值 SetAriaFileAllocation(ariaFileAllocation); @@ -256,7 +256,7 @@ namespace DownKyi.Core.Settings public AllowStatus IsAriaHttpProxy() { appSettings = GetSettings(); - if (appSettings.Network.IsAriaHttpProxy == 0) + if (appSettings.Network.IsAriaHttpProxy == AllowStatus.NONE) { // 第一次获取,先设置默认值 IsAriaHttpProxy(isAriaHttpProxy); @@ -310,7 +310,7 @@ namespace DownKyi.Core.Settings public int GetAriaHttpProxyListenPort() { appSettings = GetSettings(); - if (appSettings.Network.AriaHttpProxyListenPort == 0) + if (appSettings.Network.AriaHttpProxyListenPort == -1) { // 第一次获取,先设置默认值 SetAriaHttpProxyListenPort(ariaHttpProxyListenPort); diff --git a/DownKyi.Core/Settings/SettingsManager.Video.cs b/DownKyi.Core/Settings/SettingsManager.Video.cs index c5b9af3..f83b98c 100644 --- a/DownKyi.Core/Settings/SettingsManager.Video.cs +++ b/DownKyi.Core/Settings/SettingsManager.Video.cs @@ -54,7 +54,7 @@ namespace DownKyi.Core.Settings public VideoCodecs GetVideoCodecs() { appSettings = GetSettings(); - if (appSettings.Video.VideoCodecs == 0) + if (appSettings.Video.VideoCodecs == VideoCodecs.NONE) { // 第一次获取,先设置默认值 SetVideoCodecs(videoCodecs); @@ -81,7 +81,7 @@ namespace DownKyi.Core.Settings public int GetQuality() { appSettings = GetSettings(); - if (appSettings.Video.Quality == 0) + if (appSettings.Video.Quality == -1) { // 第一次获取,先设置默认值 SetQuality(quality); @@ -108,7 +108,7 @@ namespace DownKyi.Core.Settings public int GetAudioQuality() { appSettings = GetSettings(); - if (appSettings.Video.AudioQuality == 0) + if (appSettings.Video.AudioQuality == -1) { // 第一次获取,先设置默认值 SetAudioQuality(audioQuality); @@ -135,7 +135,7 @@ namespace DownKyi.Core.Settings public AllowStatus IsTranscodingFlvToMp4() { appSettings = GetSettings(); - if (appSettings.Video.IsTranscodingFlvToMp4 == 0) + if (appSettings.Video.IsTranscodingFlvToMp4 == AllowStatus.NONE) { // 第一次获取,先设置默认值 IsTranscodingFlvToMp4(isTranscodingFlvToMp4); @@ -216,7 +216,7 @@ namespace DownKyi.Core.Settings public AllowStatus IsUseSaveVideoRootPath() { appSettings = GetSettings(); - if (appSettings.Video.IsUseSaveVideoRootPath == 0) + if (appSettings.Video.IsUseSaveVideoRootPath == AllowStatus.NONE) { // 第一次获取,先设置默认值 IsUseSaveVideoRootPath(isUseSaveVideoRootPath);