2017-10-04 19 views
1

我正在嘗試使用DirectShow設備在我的WPF應用程序中集成一個活動源。音頻和視頻在VLC中工作正常。 我已經將WPF-MediaKit中的VideoCapturePlayer集成到一個簡單的應用程序中,並且能夠從設備上看到實時視頻饋送,但我無法獲取音頻。我並不是100%確定可以使用VideoCapturePlayer來捕獲音頻和視頻。 任何幫助讓音頻工作將不勝感激。如何在使用VideoCapturePlayer時啓用音頻?

回答

0

可能在VideoCapturePlayer中沒有設置音頻渲染器。嘗試將MediaUriBase.InsertAudioRenderer拉入MediaPlayerBase並將其用於VideoCapturePlayer。如果您成功,請使用您的代碼open a new PR

+0

你是對的,在VideoCapturePlayer沒有音頻渲染器。我正在努力將其添加到MediaPlayerBase中。如果我成功,將更新這個問題。 – moeed

相關問題