VideoLAN VLC ActiveX Plugin v2 使用方法
安裝軟件後, 係 Vistual Studio Toolbox 上 增加工具 (Choose Item) -> 選擇 COM Components ->
再選擇 (VideoLAN VLC ActiveX Plugin v1) 及 (VideoLAN VLC ActiveX Plugin v2) -> 完成加入 Control 係 Tools Box 上 -> 再將 (VideoLAN VLC ActiveX Plugin v2) 既 Control 拖入 Form 上 -> 完成
form1.cs |
//選擇檔案 this.axVLCPlugin1.playlist.add(@"G:\\Video\0113.MTS", null, ":sout=#duplicate{dst=display} :no-overlay"); //自動播放 this.axVLCPlugin1.AutoPlay = true; //播放 this.axVLCPlugin1.playlist.play(); //停止 this.axVLCPlugin1.playlist.stop(); //暫停 this.axVLCPlugin1.playlist.togglePause(); |