作者james999 (无伤大雅)
看板C_Sharp
标题[问题] Vlc.DotNet.Core Snapshot用法请益@@
时间Thu Dec 14 17:43:48 2017
刚刚下载好Vlc.DotNet的lib..
建立VlcMediaPlayer後能拿到串流影像(无呈现),
但是想使用class VlcMediaPlayer的方法TakeSnapshot似乎没有成功,
想请问有人有用过吗@@?
不太确定是不是我的方法有误..
程式码和github上Vlc.DotNet.Core的代码段相同
https://github.com/ZeBobo5/Vlc.DotNet/wiki/Getting-started
在mediaPlayer.PositionChanged += (sender, e) =>内新增了一段代码如下..
--
FileInfo fileinfo = new FileInfo("D:\\Image" + "\\123.jpg");
if (!fileinfo.Exists)
{
fileinfo.Create();
}
mediaPlayer.TakeSnapshot(fileinfo, 600,480);
--
此专案首页:
https://github.com/ZeBobo5/Vlc.DotNet/tree/master
--
--
※ 发信站: 批踢踢实业坊(ptt.cc), 来自: 220.132.128.217
※ 文章网址: https://webptt.com/cn.aspx?n=bbs/C_Sharp/M.1513244634.A.EEF.html