摘要:WinForm使用多媒體功能
要使用多媒體功能
最重要的是要引用DirectShowLib
關於DirectShow可參考MSDN的說明:
https://msdn.microsoft.com/en-us/library/dd375454(VS.85).aspx
引用之後就可宣告多媒體物件了
例如:
Dim VideoWindow As IVideoWindow = Nothing
Dim MediaControl As IMediaControl = Nothing
Dim MediaEventEx As IMediaEventEx = Nothing
Dim GraphBuilder As IGraphBuilder = Nothing
Dim CaptureGraphBuilder As ICaptureGraphBuilder2 = Nothing