参加者のビデオストリームを描画します。 セルフプレビュー、リモート参加者の映像、画面共有の描画に対応しています。
| パラメーター | 型 | 必須 | デフォルト | 説明 |
|---|---|---|---|---|
participant |
RtkMeetingParticipant |
✅ | - | 映像を描画する対象の参加者 |
showSelfPreview |
Bool |
❌ | false |
ローカルカメラのプレビューを表示するかどうか |
showScreenShare |
Bool |
❌ | false |
カメラの代わりに画面共有ストリームを表示するかどうか |
| メソッド | 戻り値 | 説明 |
|---|---|---|
reattachRenderer() |
Void |
ビデオレンダラーを参加者のストリームに再度接続します |
prepareForReuse() |
Void |
collection view または table view での再利用に備えてビューを準備します |
clean() |
Void |
ビデオレンダラーを解放し、リソースを破棄します |
import RealtimeKitUI
let videoView = RtkVideoView(participant: participant)
view.addSubview(videoView)import RealtimeKitUI
let previewView = RtkVideoView(
participant: localParticipant,
showSelfPreview: true
)
view.addSubview(previewView)import RealtimeKitUI
let screenShareView = RtkVideoView(
participant: participant,
showScreenShare: true
)
view.addSubview(screenShareView)