我正在使用WPF的新Vlc.DotNet库。它可以通过Nuget (Vlc.DotNet.Wpf)获得,它的Git存储库在这里:https://github.com/ZeBobo5/Vlc.DotNet。
较旧的VideoLan DotNet库(托管在这里:https://vlcdotnet.codeplex.com)具有一些与文件日志记录、显示调试日志控制台等相关的非常有用的功能:
// Ignore the VLC configuration file
VlcContext.StartupOptions.IgnoreConfig = true;
// Enable file based logging
VlcContext.StartupOptions.LogOptions.LogInFile = true;
// Shows the VLC log console (in addition to the applications window)
VlcContext.StartupOptions.LogOptions.ShowLoggerConsole = true;
// Set the log level for the VLC instance
VlcContext.StartupOptions.LogOptions.Verbosity = VlcLogVerbosities.Debug;我在新的存储库中找不到这些功能。文档是不存在的,并且示例项目太少,无法收集太多信息。有没有人知道是否有可能使用新的Vlc.DotNet库来实现任何类型的VLC日志记录?
发布于 2015-04-28 14:41:32
我在文件中找到了我的正确位置(截至2015年4月27日) Vlc.DotNet.Core.VlcMediaPlayer.VlcMediaPlayer.cs:
#if DEBUG
Manager.CreateNewInstance(new[]
{
"--extraintf=logger",
"--verbose=2"
});
#else
Manager.CreateNewInstance(null);
#endif当您在发布模式下编译Vlc.DotNet时,您将不再获得详细的日志记录。
发布于 2015-04-20 19:45:46
在编写本文时,这些功能都隐藏在Vlc.DotNet.Core.Interops名称空间的VlcManager类中。VLC启动选项的字符串数组在实例化期间传递给此类:
Manager.CreateNewInstance(new[]
{
"--extraintf=logger",
"--verbose=2"
});手动更改这些选项的唯一方法是在Vlc.DotNet源代码中更改它们,重新构建并更新对新构建的.dll的任何引用。
https://stackoverflow.com/questions/29321166
复制相似问题