本文為英文版的機器翻譯版本,如內容有任何歧義或不一致之處,概以英文版為準。
將背景濾鏡新增至應用程式
新增背景濾鏡的程序遵循下列主要步驟:
檢查支援的瀏覽器。
使用您要使用的配置創建一個
VideoFxConfig
對象。使用配置對象創建一個
VideoFxProcessor
對象。將
VideoFxProcessor
物件包含在中VideoTransformDevice
。使用
VideoTransformDevice
開始視訊輸入。
注意
若要完成這些步驟,您必須先:
建立
Logger
。選擇一個類的視頻設備
MediaDeviceInfo
。成功加入
MeetingSession
.
以下各節中的步驟說明如何完成此程序。
主題
啟動視頻輸入
下面的例子演示了如何使用對VideoTransformDevice
象來啟動視頻輸入。
// assuming that meetingSession has already been created await meetingSession.audioVideo.startVideoInput(videoTransformDevice); meetingSession.audioVideo.start(); meetingSession.audioVideo.startLocalVideoTile();