ビデオを記録するために DirectShow のサンプル コードを使用しました。ただし、録画中にもビデオを表示したい。しかし、同時に行うことはできません。このエラーは常に次のように表示されます。
' Const VIDEODEVICE As Integer = 0
' zero based index of video capture device to use
Cursor.Current = Cursors.WaitCursor
If cam Is Nothing Then
cam = New AsfFilter.Capture(VIDEODEVICE, textBox1.Text)
previewCamera(PictureBox1) <----- this is my code regarding on previewing the video recording.
cam.Start()
button1.Text = "Stop"
textBox1.[ReadOnly] = True
Else
button1.Text = "Start"
textBox1.[ReadOnly] = False
' Pause the recording
cam.Pause()
' Close it down
cam.Dispose()
cam = Nothing
End If
Cursor.Current = Cursors.[Default]
エラー:
要求されたサービスを完了するには、システム リソースが不足しています。(HRESULT からの例外: 0x800705AA)
私は何を間違っていますか?誰かがこれを知っていましたか?