LocalParticipant
@objcMembers
@objc(SBCLocalParticipant)
public class LocalParticipant : Participant
A class that contains all operational methods of a local participant to handle their audio and video.
Note
LocalParticipant contains all properties of Participant
Since
1.6.0
-
Mutes the local user’s audio.
Since
1.6.0Declaration
Swift
public func muteMicrophone() -
Unmutes the local user’s audio.
Since
1.6.0Declaration
Swift
public func unmuteMicrophone() -
Starts the local user’s video.
Since
1.6.0Declaration
Swift
public func startVideo() -
Stops the local user’s video.
Since
1.6.0Declaration
Swift
public func stopVideo() -
Switches the local user’s front and back cameras.
call.switchCamera { error in // handle error }Since
1.6.0
Declaration
Swift
public func switchCamera(completionHandler: @escaping ErrorHandler)Parameters
completionHandlerCallback completion handler containing error.
View on GitHub
LocalParticipant Class Reference