[Windows] 解决 VLC Media Player 的 Crash Reporting 消息弹窗

运行环境:Windows 8.1 (64bits), VLC Media Player 2.1.3

 

异常描述:首次启动VLC播放影音文件时,一切正常。此后每次启动VLC都弹出"VLC Crash Reporting",点击"Yes"或"No"后,VLC会开始播放文件,一切正常。

 

解决方法:VLC安装完毕后,因为"%AppData%"中没有crashdump文件,VLC正常启动。VLC正常启动后,在"%AppData%"中生成crashdump,因为该文件存在,此后每次启动VLC都弹出"VLC Crash Reporting"消息框。具体解决方法为:找到"%AppData%",该路径通常位于"C:\Users\<UserName>\AppData",进入"C:\Users\<UserName>\AppData\Roaming\vlc",删除crashdump,新建一个文件夹名为crashdump,问题解决。

 

附:在Mac OX环境下解决该问题的方法(未测试)

找到org.videolan.vlc.plist,一般位于"/Users/<UserName>/Library/Preferences/org.videolan.vlc.plist"。

编辑该文件找到LatestCrashReportYear,将其修改为未来时间,例如2030,问题解决。

(完)

 

//创建初始化播放器资源 [DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)] extern public static IntPtr libvlc_new(int argc, IntPtr argv); //创建播放器实例 [DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)] public static extern IntPtr libvlc_media_player_new(IntPtr libvlc_instance); // 释放libvlc实例 [DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)] public static extern void libvlc_release(IntPtr libvlc_instance); //获取库版本信息 [DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)] public static extern String libvlc_get_version(); // 从视频来源(例如Url)构建一个libvlc_meida RTSP [DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)] public static extern IntPtr libvlc_media_new_location(IntPtr libvlc_instance, IntPtr path); // 从本地文件路径构建一个libvlc_media rtsp串流不适合调用此接口 // [MarshalAs(UnmanagedType.LPStr)] string path [DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)] public static extern IntPtr libvlc_media_new_path(IntPtr libvlc_instance, IntPtr path); /// /// 影片长度 /// /// /// [DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)] public static extern IntPtr libvlc_media_player_get_length(IntPtr libvlc_media_player); //释放对象 [DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)] public static extern void libvlc_media_release(IntPtr libvlc_media_inst); // 将视频(libvlc_media)绑定到播放器上 [DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)] public static extern void libvlc_media_player_set_media(IntPtr libvlc_media_player, IntPtr libvlc_media); //创建(libvlc_media)播放窗口 [DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)] publ
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值