VideoGalleryProps interface
VideoGallery的道具。
屬性
dominant |
主要說話者 userId 的清單,其支配順序。 第 0 個索引是最佔主導地位的。 |
layout | 視訊磚的配置。 |
local |
本機視訊 partcpant |
local |
按鈕切換相機的相機控制資訊。 |
local |
本機影片檢視選項 |
max |
轉譯的參與者遠端視訊串流數目上限。 |
on |
回呼以建立本機影片串流檢視 |
on |
建立遠端視訊串流檢視的回呼 |
on |
處置本機視訊串流檢視的回呼 |
on |
回呼以處置遠端視訊串流檢視 |
on |
回呼以轉譯 partciant 虛擬人偶 |
on |
回呼以轉譯本機影片磚 |
on |
轉譯遠端視訊磚的回呼 |
remote |
遠端視訊元件清單 |
remote |
遠端影片檢視選項 |
show |
是否要顯示本機攝像機切換器按鈕 |
show |
是否要在使用者的顯示名稱旁邊顯示靜音圖示。 |
strings | 在元件中覆寫的選擇性字串 |
styles | 允許使用者傳遞物件,其中包含資源庫容器的自定義 CSS 樣式。 |
屬性詳細資料
dominantSpeakers
主要說話者 userId 的清單,其支配順序。 第 0 個索引是最佔主導地位的。
dominantSpeakers?: string[]
屬性值
string[]
layout
localParticipant
localVideoCameraCycleButtonProps
按鈕切換相機的相機控制資訊。
localVideoCameraCycleButtonProps?: LocalVideoCameraCycleButtonProps
屬性值
localVideoViewOptions
maxRemoteVideoStreams
轉譯的參與者遠端視訊串流數目上限。
maxRemoteVideoStreams?: number
屬性值
number
onCreateLocalStreamView
回呼以建立本機影片串流檢視
onCreateLocalStreamView?: (options?: VideoStreamOptions) => Promise<void | CreateVideoStreamViewResult>
屬性值
(options?: VideoStreamOptions) => Promise<void | CreateVideoStreamViewResult>
onCreateRemoteStreamView
建立遠端視訊串流檢視的回呼
onCreateRemoteStreamView?: (userId: string, options?: VideoStreamOptions) => Promise<void | CreateVideoStreamViewResult>
屬性值
(userId: string, options?: VideoStreamOptions) => Promise<void | CreateVideoStreamViewResult>
onDisposeLocalStreamView
處置本機視訊串流檢視的回呼
onDisposeLocalStreamView?: () => void
屬性值
() => void
onDisposeRemoteStreamView
回呼以處置遠端視訊串流檢視
onDisposeRemoteStreamView?: (userId: string) => Promise<void>
屬性值
(userId: string) => Promise<void>
onRenderAvatar
onRenderLocalVideoTile
回呼以轉譯本機影片磚
onRenderLocalVideoTile?: (localParticipant: VideoGalleryParticipant) => Element
屬性值
(localParticipant: VideoGalleryParticipant) => Element
onRenderRemoteVideoTile
轉譯遠端視訊磚的回呼
onRenderRemoteVideoTile?: (remoteParticipant: VideoGalleryRemoteParticipant) => Element
屬性值
(remoteParticipant: VideoGalleryRemoteParticipant) => Element
remoteParticipants
remoteVideoViewOptions
showCameraSwitcherInLocalPreview
是否要顯示本機攝像機切換器按鈕
showCameraSwitcherInLocalPreview?: boolean
屬性值
boolean
showMuteIndicator
是否要在使用者的顯示名稱旁邊顯示靜音圖示。
showMuteIndicator?: boolean
屬性值
boolean