看板 C_Sharp 關於我們 聯絡資訊
剛剛下載好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://www.ptt.cc/bbs/C_Sharp/M.1513244634.A.EEF.html