RevueSDK · Swift reference Guides

Class

LocalVideoTrack

本地視訊 Track — 相機、螢幕分享、或外部影像輸入

class LocalVideoTrack

Overview

建立方式:

// 相機:由 LocalParticipant 持有,硬體用 setCamera 開關
let camera = localParticipant.cameraTrack
localParticipant.setCamera(enabled: true, options: CameraCaptureOptions(fps: 30))

// 外部影像輸入(BufferCapturer):注入前要自己 startCapture()
let track = LocalVideoTrack.createBufferTrack()
let capturer = track.capturer as! BufferCapturer
try await capturer.startCapture()
capturer.capture(pixelBuffer)

Topics

Instance Properties

Instance Methods

Type Methods

Relationships

Inherits From