MediaStreamController
public protocol MediaStreamController
Control local media streams created by the Reach SDK
-
Start streaming
Declaration
Swift
func start() -> Promise<Void>
Return Value
a promise that completes when the stream is started
-
Stop streaming
Declaration
Swift
func stop()
-
returns true if the stream has been started
Declaration
Swift
var isStarted: Bool { get }
-
Add a local video sink to the media stream
Declaration
Swift
func addVideoSink(sink: RTCVideoRenderer)
Parameters
sink
Local video sink
-
Remove a local video sink from the video stream
Declaration
Swift
func removeVideoSink(sink: RTCVideoRenderer)
Parameters
sink
Local video sink