PlanetKitConference
public class PlanetKitConference : NSObject
extension PlanetKitConference: PlanetKitDataSessionControllable
extension PlanetKitConference: PlanetKitAudioVolumeDelegate
extension PlanetKitConference : PlanetKitAudioRouteChangeDelegate
extension PlanetKitConference : PlanetKitCameraInterruptDelegate
extension PlanetKitConference : PlanetKitAudioMicCaptureDelegate
extension PlanetKitConference : PlanetKitAudioSpkPlayDelegate
extension PlanetKitConference: PlanetKitVideoOutputDelegate
extension PlanetKitConference: PlanetKitVideoLimiter
extension PlanetKitConference: PlanetKitSharedContentsControllable
extension PlanetKitConference: PlanetKitStatisticsControllable
extension PlanetKitConference: PlanetKitDebugMonitor
The PlanetKitConference
class represents a conference in the PlanetKit framework.
-
Gets the state of the conference.
Declaration
Swift
@objc public internal(set) var state: PlanetKitConferenceState { get set }
-
Gets the media type of the conference.
Declaration
Swift
@objc public internal(set) var mediaType: PlanetKitMediaType { get set }
-
The user ID of the local user.
Declaration
Swift
@objc public let myUserId: PlanetKitUserId!
-
The ID of the conference room.
Declaration
Swift
@objc public let roomId: String
-
The service ID of the conference room.
Declaration
Swift
@objc public let roomServiceId: String
-
The API key used for authentication.
Declaration
Swift
@objc public let APIKey: String?
-
The access token used for authentication.
Declaration
Swift
@objc public let accessToken: String?
-
A flag indicating whether statistics are enabled for the conference.
Declaration
Swift
@objc public let enableStatistics: Bool
-
The universally unique identifier (UUID) of the conference.
Declaration
Swift
@objc public let uuid: UUID
-
The delegate object that will receive conference-related events.
Declaration
Swift
@objc public internal(set) weak var delegate: PlanetKitConferenceDelegate? { get }
-
The video stream for the local user’s camera.
Declaration
Swift
@objc public internal(set) var myVideoStream: PlanetKitVideoStream! { get }
-
The video stream for the local user’s screen share.
Declaration
Swift
@objc public internal(set) var myScreenShareStream: PlanetKitVideoStream! { get }
-
The type of
CallKit
used in the conference.Declaration
Swift
@objc public internal(set) var callKitType: PlanetKitCallKitType { get }
-
The
CallKit
parameters for iOS.Declaration
Swift
@objc public internal(set) var callKitParam: PlanetKitCallKitParam? { get }
-
The screen controllable object for the conference. This property allows you to control the screen used in the conference.
Remark
It is recommended to change the custom camera usingPlanetKitJoinConferenceSettingBuilder.withCustomScreenKey(screen:)
rather than directly setting and changing this value.Declaration
Swift
@objc public var screen: PlanetKitScreenControllable? { get set }
-
The audio manager for the conference.
Declaration
Swift
@objc public let audioManager: PlanetKitAudioManager
-
The send voice processor for the conference.
Declaration
Swift
@objc public let sendVoiceProcessor: PlanetKitSendVoiceProcessor
-
Gets the subgroup manager.
Declaration
Swift
@objc public internal(set) var subgroupManager: PlanetKitSubgroupManager! { get }
-
Gets the total count of all connected peers, including the local user.
Remark
If the local user is connected, their count is added.Declaration
Swift
@objc public var peersCount: Int { get }
-
Gets the list of all peers.
Remark
This is copied from the internal dictionary using locks. If this function is called frequently, it will affect performance. To find a peer member, it’s better to usegetPeerMember(peerId:)
.Declaration
Swift
@objc public var peers: [String : PlanetKitConferencePeer] { get }
-
Gets the total count of peers in the room. The count does not include the local user.
Remark
Initially, the peer list on the client-side does not contain the complete peer list. The list is updated gradually as the VoIP server sends the remaining peer list to the client.Declaration
Swift
@objc public var totalPeersCount: Int { get }
-
The media status of the local user.
Declaration
Swift
@objc public internal(set) var myMediaStatus: PlanetKitMyMediaStatus! { get }
-
The video capability for sending video in the conference.
Declaration
Swift
@objc public let myVideoSendCapability: PlanetKitVideoCapability
-
The video capability for receiving video in the conference.
Declaration
Swift
@objc public let myVideoRecvPreferredHwCodec: Bool
-
Sets a modifier to receive audio data before speaker out. The modifier can modify audio data.
Declaration
Swift
@objc public weak var spkModifier: PlanetKitAudioSpkPlayDelegate? { get set }
-
Sets a receiver to receive audio data after speaker out. The receiver cannot modify audio data.
Declaration
Swift
@objc public weak var spkReceiver: PlanetKitAudioSpkPlayDelegate? { get set }
-
Sets a modifier to receive audio data before sending audio to the server. The modifier can modify audio data.
Declaration
Swift
@objc public weak var micModifier: PlanetKitAudioMicCaptureDelegate? { get set }
-
Sets a receiver to receive audio data after sending audio to the server. The receiver cannot modify audio data.
Declaration
Swift
@objc public weak var micReceiver: PlanetKitAudioMicCaptureDelegate? { get set }
-
Sets a receiver to receive the updated event of audio description for the peer.
Remark
The update interval can be set byPlanetKitJoinConferenceSettingBuilder.withAudioDescriptionUpdateIntervalKey(interval:)
The default update interval is 0.5 seconds.Declaration
Swift
@objc public weak var peerAudioDescriptionReceiver: PlanetKitPeerAudioDescriptionDelegate? { get set }
-
Sets a receiver to receive the updated event of audio description for the local user’s audio.
Remark
The update interval can be set byPlanetKitJoinConferenceSettingBuilder.withAudioDescriptionUpdateIntervalKey(interval:)
The default update interval is 0.5 seconds.Declaration
Swift
@objc public weak var myAudioDescriptionReceiver: PlanetKitMyAudioDescriptionDelegate? { get set }
-
Sets a modifier to receive the local user’s video data before requesting video transmission. The modifier can modify video data.
Declaration
Swift
@objc public weak var myVideoModifier: PlanetKitVideoModifierDelegate? { get set }
-
A weak reference to the delegate object that will receive video output from the camera.
Declaration
Swift
@objc public weak var myVideoReceiver: PlanetKitVideoOutputDelegate? { get set }
-
Checks whether the conference supports data sessions.
Declaration
Swift
public var isSupportedDataSession: Bool { get }
-
Makes a new outbound data session for the main room.
Declaration
Swift
public func makeOutboundDataSession(streamId: PlanetKitDataSessionStreamId, type: PlanetKitDataSessionType, delegate: PlanetKitOutboundDataSessionDelegate, completion: @escaping PlanetKitOutboundDataSession.Completion)
Parameters
streamId
The predefined ID for the app. The ID must be in the range [100, 999].
type
The type of the outbound data session.
delegate
The event callback for the outbound data session.
completion
If successful, the completion handler returns an outbound data session. Otherwise, the completion handler returns
nil
. -
Makes a new inbound data session for the main room.
Declaration
Swift
public func makeInboundDataSession(streamId: PlanetKitDataSessionStreamId, delegate: PlanetKitInboundDataSessionDelegate, completion: @escaping PlanetKitInboundDataSession.Completion)
Parameters
streamId
The predefined ID for the app. The ID must be in the range [100, 999].
delegate
The event callback for the inbound data session.
completion
If successful, the completion handler returns an inbound data session. Otherwise, the completion handler returns
nil
. -
Ignores receiving data for the given stream ID.
Remark
In a conference, whenPlanetKitConferenceDelegate.dataSessionIncoming(_:streamId:subgroup:type:)
occurs, the user must either callmakeInboundDataSession(streamId:delegate:completion:)
to receive the incoming data or call this function to ignore receiving the incoming data. To ignore receiving data for the incoming stream ID, callunsupportInboundDataSession(streamId:)
inPlanetKitConferenceDelegate.dataSessionIncoming(_:streamId:subgroup:type:)
.Declaration
Swift
public func unsupportInboundDataSession(streamId: PlanetKitDataSessionStreamId)
-
Gets the existing outbound data session with the stream ID.
Declaration
Swift
public func getOutboundDataSession(streamId: PlanetKitDataSessionStreamId) -> PlanetKitOutboundDataSession?
-
Gets the existing inbound data session with the stream ID.
Declaration
Swift
public func getInboundDataSession(streamId: PlanetKitDataSessionStreamId) -> PlanetKitInboundDataSession?
-
Called when the device volume has changed.
Declaration
Swift
public func didChangeVolume(_ type: PlanetKitAudioDeviceType, volume: Float)
-
Declaration
Swift
public func didAudioRouteChange(current: PlanetKitAudioRoute, previous: PlanetKitAudioRoute)
-
Called when the camera is interrupted.
Declaration
Swift
public func camDidInterruptBegin(_ reason: AVCaptureSession.InterruptionReason)
Parameters
reason
The reason for the interruption.
-
Called when the interruption ends and the camera is resumed.
Declaration
Swift
public func camDidInterruptEnd()
-
Enables a video conference in the middle of an audio conference.
- initialMyVideoState: The initial state of the local user’s video.
- completion: A closure that will be called when the video is enabled. The closure takes a Boolean value indicating whether the video conference was enabled successfully or not.
Declaration
Swift
@objc public func enableVideo(initialMyVideoState: PlanetKitInitialMyVideoState = .resume, completion: @escaping (Bool) -> Void)
-
Disables a video conference in the middle of a video conference.
Declaration
Swift
@objc public func disableVideo(completion: @escaping (Bool) -> Void)
-
Requests the target peer’s video.
Remark
Use the function with the resolution handler if the resulting resolution must be known. TherequestPeerVideo
affects call quality. Please refer to the document and use this API appropriately. https://docs.lineplanet.me/iosmacos/extended-functions/peer-video-resolution-in-group-callDeclaration
Swift
@available(*, deprecated, message: "Use startVideo(maxResolution:delegate:subgroupName:completion:﹚ of PlanetKitPeerControl instead") @objc public func requestPeerVideo(id: PlanetKitUserId, maxResolution: PlanetKitVideoResolution, delegate: PlanetKitVideoOutputDelegate, subgroupName: String? = nil, completion: @escaping (Bool) -> Void)
-
Requests the target peer’s video.
Remark
TherequestPeerVideo
affects call quality. Please refer to the document and use this API appropriately. https://docs.lineplanet.me/iosmacos/extended-functions/peer-video-resolution-in-group-callDeclaration
Swift
@available(*, deprecated, message: "Use startVideo(maxResolution:delegate:subgroupName:resolution:﹚ of PlanetKitPeerControl instead") @objc public func requestPeerVideo(id: PlanetKitUserId, maxResolution: PlanetKitVideoResolution, delegate: PlanetKitVideoOutputDelegate, subgroupName: String? = nil, resolution: @escaping (_ success: Bool, _ req: PlanetKitVideoResolution, _ recv: PlanetKitVideoResolution, _ failReason: String) -> Void)
-
Stops the target peer’s video.
Remark
The operation fails if the peer’s video has already been stopped.Declaration
Swift
@available(*, deprecated, message: "Use stopVideo(completion:﹚ of PlanetKitPeerControl instead") @objc public func stopPeerVideo(id: PlanetKitUserId, subgroupName: String? = nil, completion: @escaping (Bool) -> Void)
-
Creates a peer control object for the specified peer.
Declaration
Swift
@objc public func createPeerControl(peer: PlanetKitConferencePeer) -> PlanetKitPeerControl?
Parameters
peer
The peer for which to create the peer control object.
Return Value
A
PlanetKitPeerControl
object if the creation is successful, otherwisenil
.
-
Sends raw data.
Remark
This is functionally equivalent toPlanetKitConference.didCapture(frameCnt:channels:sampleRate:sampleType:timestamp:outData:outDataLen:)
that handles the Modifier, the Receivers, and the Volume Receiver.Declaration
Swift
@objc public func sendMicData(frameCnt: UInt32, sampleRate: UInt32, sampleType: PlanetKitAudioSampleType, outData: UnsafeMutableRawPointer!, outDataLen: UInt32)
-
Receives raw data.
Remark
This is functionally equivalent toPlanetKitConference.willPlay(frameCnt:channels:sampleRate:sampleType:timestamp:playBuf:playBufSize:)
that handles the Modifier, the Receivers, and the Volume Receiver.Declaration
Swift
@objc public func recvSpkData(frameCnt: UInt32, sampleRate: UInt32, sampleType: PlanetKitAudioSampleType, playBuf: UnsafeMutableRawPointer!, playBufSize: UInt32) -> Int32
-
Starts the use of the user’s reference audio data for AEC to resolve echo.
Remark
To resolve echo using the user’s reference data, you should provide reference data usingPlanetKitConference.putUserAcousticEchoCancellerReference(frameCnt:...)
after calling this function.Declaration
Swift
@objc public func startUserAcousticEchoCancellerReference(_ completion: @escaping (Bool) -> Void)
-
Stops the use of the user’s reference audio data for AEC to resolve echo.
Remark
You should call this function to stop putting reference audio data for AEC.Declaration
Swift
@objc public func stopUserAcousticEchoCancellerReference(_ completion: @escaping (Bool) -> Void)
-
Puts reference audio data for AEC.
Declaration
Swift
@objc public func putUserAcousticEchoCancellerReference(frameCnt: UInt32, channels: UInt32, sampleRate: UInt32, sampleType: PlanetKitAudioSampleType, outData: UnsafeMutableRawPointer!, outDataLen: UInt32)
-
Implements the
PlanetKitAudioMicCaptureDelegate
to send audio data to a conference.Do not call this function unless you have to handle mic input instead of PlanetKit.
Declaration
Swift
public func didCapture(frameCnt: UInt32, channels: UInt32, sampleRate: UInt32, sampleType: PlanetKitAudioSampleType, timestamp: AudioTimeStamp, outData: UnsafeMutableRawPointer!, outDataLen: UInt32)
-
Implements the
PlanetKitAudioSpkPlayDelegate
to get audio data from a conference.Do not call this function unless you have to handle speaker and play out instead of PlanetKit.
Declaration
Swift
public func willPlay(frameCnt: UInt32, channels: UInt32, sampleRate: UInt32, sampleType: PlanetKitAudioSampleType, timestamp: AudioTimeStamp, playBuf: UnsafeMutableRawPointer!, playBufSize: UInt32) -> Int32
-
Implements the
PlanetKitVideoOutputDelegate
to send video data to a conference.Do not call this function unless you have to handle cam output instead of PlanetKit.
Declaration
Swift
public func videoOutput(_ videoBuffer: PlanetKitVideoBuffer)
-
Determines if screen share sending is available at the specified timestamp.
Declaration
Swift
public func isScreenShareSendAvailable(_ timestamp: CMTime) -> Bool
Parameters
timestamp
The timestamp of the screen share frame.
Return Value
true
if screen share sending is available,false
otherwise. -
Determines if video sending is available at the specified timestamp.
Declaration
Swift
public func isVideoSendAvailable(_ timestamp: CMTime) -> Bool
Parameters
timestamp
The timestamp of the video frame.
Return Value
true
if video sending is available,false
otherwise.
-
Starts the local user’s screen share.
Declaration
Swift
@objc public func startMyScreenShare(subgroupName: String?, completion: @escaping (Bool) -> Void)
Parameters
completion
A closure that will be called when the screen share is started. The closure takes a Boolean value indicating whether the screen share was started successfully or not.
-
Starts the local user’s screen share.
-
Stops the local user’s screen share.
Declaration
Swift
@objc public func stopMyScreenShare(completion: @escaping (Bool) -> Void)
Parameters
completion
A closure that will be called when the screen share is stopped. The closure takes a Boolean value indicating whether the screen share was stopped successfully or not.
-
Stops the local user’s screen share with a reason code.
Remark
Thereason
value must be between 0 and 39.Declaration
Swift
@objc public func stopMyScreenShare(reason: Int32, completion: @escaping (Bool) -> Void)
Parameters
reason
The reason for stopping the screen share.
completion
A closure that will be called when the screen share is stopped. The closure takes a Boolean value indicating whether the screen share was stopped successfully or not.
-
Changes the destination for screen share.
Declaration
Swift
@objc public func changeMyScreenShareDestination(subgroupName: String, completion: @escaping (Bool) -> Void)
Parameters
subgroupName
The name of the subgroup to change the screen share destination for.
completion
A closure that is called when the operation is complete. The closure takes a Boolean value indicating whether the operation was successful.
-
Changes the screen share destination to the main room.
Declaration
Swift
@objc public func changeMyScreenShareDestinationToMainRoom(completion: @escaping (Bool) -> Void)
Parameters
completion
A closure that is called when the operation is complete. The closure takes a Boolean value indicating whether the operation was successful.
-
Stops the local user’s
ReplayKit
session.Close the session that receives data transmitted from
ReplayKit
via App Extension.Declaration
Swift
@objc public func stopMyBroadcast()
-
Requests receiving a peer’s screen share.
Declaration
Swift
@available(*, deprecated, message: "Use startScreenShare(delegate:subgroupName:completion:﹚ of PlanetKitPeerControl instead") @objc public func requestPeerScreenShare(peerId: PlanetKitUserId, subgroupName: String?, completion: @escaping (Bool) -> Void)
-
Stops receiving a peer’s screen share.
Declaration
Swift
@available(*, deprecated, message: "Use stopScreenShare(completion:﹚ of PlanetKitPeerControl instead") @objc public func stopPeerScreenShare(peerId: PlanetKitUserId, subgroupName: String?, completion: @escaping (Bool) -> Void)
-
Adds a peer screen share view delegate.
Declaration
Swift
@objc public func addPeerScreenShareView(peerId: PlanetKitUserId, subgroupName: String?, delegate: PlanetKitVideoOutputDelegate)
Parameters
peerId
The peer ID of the screen share.
subgroupName
The subgroup name of the screen share.
delegate
The delegate object conforming to the
PlanetKitVideoOutputDelegate
protocol. -
Removes a peer screen share view delegate.
Declaration
Swift
@objc public func removePeerScreenShareView(peerId: PlanetKitUserId, subgroupName: String?, delegate: PlanetKitVideoOutputDelegate)
Parameters
peerId
The peer ID of the screen share.
subgroupName
The subgroup name of the screen share.
delegate
The delegate object conforming to the
PlanetKitVideoOutputDelegate
protocol. -
Removes all screen share views associated with a specific peer in a given subgroup.
Note
This method only removes screen share views associated with the specified peer in the specified subgroup. If the subgroup does not exist, or if the peer is not a member of the subgroup, no action is taken.Declaration
Swift
@objc public func removeAllPeerScreenShareView(peerId: PlanetKitUserId, subgroupName: String?)
Parameters
peerId
The ID of the peer whose screen share views should be removed.
subgroupName
The name of the subgroup where the peer belongs.
-
Returns an array of
PlanetKitVideoOutputDelegate
objects representing the peer screen share views.Declaration
Swift
@objc public func getPeerScreenShareViews(peerId: PlanetKitUserId, subgroupName: String?) -> [PlanetKitVideoOutputDelegate]?
-
Gets the maximum concurrent video count.
Remark
The count of received peer videos increases with a successfulstartVideo(maxResolution:delegate:subgroupName:completion:)
and decreases withstopVideo(completion:)
. If the count of concurrently received peer videos is equal to the maximum count, a newstartVideo(maxResolution:delegate:subgroupName:completion:)
will fail.Declaration
Swift
@objc public var peersVideoMaxCount: Int { get }
-
Gets the maximum concurrent screen share count.
Remark
The count of received peer screen shares increases with a successfulstartScreenShare(delegate:subgroupName:completion:)
and decreases withstopScreenShare(completion:)
. If the count of concurrently received peer screen shares is equal to the maximum count, a newstartScreenShare(delegate:subgroupName:completion:)
will fail.Declaration
Swift
@objc public var peersScreenShareMaxCount: Int { get }
-
Sets the video share mode for the local user’s screen share.
Remark
The video share mode determines whether the local user’s video is shared during screen share. By default, the video share mode is disabled.Declaration
Swift
@objc public func setMyScreenShareVideoShareMode(enable: Bool) -> Bool
Parameters
enable
A Boolean value indicating whether the video share mode should be enabled.
Return Value
A Boolean value indicating whether the video share mode was set successfully or not.
-
A Boolean value indicating whether the video share mode is enabled for the local user’s screen share.
Declaration
Swift
@objc public var isMyScreenShareVideoShareModeEnabled: Bool { get }
-
Sets the shared contents during a conference.
Declaration
Swift
public func setSharedContents(data: Data, completion: @escaping (Bool) -> Void)
Parameters
data
The data to be shared.
completion
A closure that will be called when the shared contents are set. The closure takes a Boolean value indicating whether the shared contents were set successfully or not.
-
Unsets the shared contents during a conference.
Declaration
Swift
public func unsetSharedContents(completion: @escaping (Bool) -> Void)
Parameters
completion
A closure that will be called when the shared contents are unset. The closure takes a Boolean value indicating whether the shared contents were unset successfully or not.
-
Sets the exclusively shared contents during a conference.
Declaration
Swift
public func setExclusivelySharedContents(data: Data, completion: @escaping (Bool) -> Void)
Parameters
data
The data to be shared.
completion
A closure that will be called when the exclusively shared contents are set. The closure takes a Boolean value indicating whether the exclusively shared contents were set successfully or not.
-
Unsets the exclusively shared contents during a conference.
Declaration
Swift
public func unsetExclusivelySharedContents(completion: @escaping (Bool) -> Void)
Parameters
completion
A closure that will be called when the exclusively shared contents are unset. The closure takes a Boolean value indicating whether the exclusively shared contents were unset successfully or not.
-
Sets the room shared contents during a conference.
Remark
This function will not work at 1-to-1 call.Declaration
Swift
public func setRoomSharedContents(data: Data, completion: @escaping (Bool) -> Void)
Parameters
data
The data to be shared.
completion
A closure that will be called when the room shared contents are set. The closure takes a Boolean value indicating whether the room shared contents were set successfully or not.
-
Unsets the room shared contents during a conference.
Remark
This function will not work at 1-to-1 call.Declaration
Swift
public func unsetRoomSharedContents(completion: @escaping (Bool) -> Void)
Parameters
completion
A closure that will be called when the room shared contents are unset. The closure takes a Boolean value indicating whether the room shared contents were unset successfully or not.
-
Sends short data to a peer in the room.
The maximum size of
type
is 100 bytes and the maximum size ofdata
is 800 bytes. If the completion callback is called withfalse
, the session is not in.connected
state or thedata
ortype
exceeds the size limit.If the short data is sent successfully, the completion callback is called with
true
.Declaration
Swift
@objc public func sendShortData(peerId: PlanetKitUserId, type: String, data: Data, completion: @escaping (Bool) -> Void)
Parameters
peerId
Peer to receive short data.
type
User-defined data type to be sent along with
data
data
Data to be sent
completion
Completion callback to receive the result of sending short data
-
Sends short data to all peers in the room.
The maximum size of
type
is 100 bytes and the maximum size ofdata
is 800 bytes. If the completion callback is called withfalse
, the session is not in.connected
state or thedata
ortype
exceeds the size limit.If the short data is sent successfully, the completion callback is called with
true
.Declaration
Swift
@objc public func sendShortData(type: String, data: Data, completion: @escaping (Bool) -> Void)
Parameters
type
User-defined data type to be sent along with
data
data
Data to be sent
completion
Completion callback to receive the result of sending short data
-
The statistics of the conference.
Declaration
Swift
public var statistics: PlanetKitStatistics? { get }
-
Checks if the peer is the local user.
Declaration
Swift
@objc public func isMe(peer: PlanetKitConferencePeer) -> Bool
-
Gets a peer object from the main room.
Declaration
Swift
@objc public func getPeer(peerId: PlanetKitUserId) -> PlanetKitConferencePeer?
-
Leaves the conference.
Declaration
Swift
@objc public func leaveConference()
-
Holds the conference to interact with another call or OS operations.
Declaration
Swift
@objc public func hold(reason: String?, completion: @escaping (Bool) -> Void)
Parameters
reason
Maximum size of reason is 255 bytes with UTF-8 encoded string.
-
Unholds the conference to resume.
Declaration
Swift
@objc public func unhold(completion: @escaping (Bool) -> Void)
-
Indicates whether the audio of the peer users is silenced.
Declaration
Swift
@objc public var isPeersAudioSilenced: Bool { get }
-
Gets the call duration. If the duration is invalid, it returns -1.
Declaration
Swift
@objc public var duration: TimeInterval { get }
-
Requests a targeted peer to mute or unmute audio.
Declaration
Swift
@objc public func requestPeerMute(_ mute: Bool, peerId: PlanetKitUserId, completion: @escaping (Bool) -> Void)
-
Requests all peers to mute or unmute audio.
Declaration
Swift
@objc public func requestPeersMute(_ mute: Bool, completion: @escaping (Bool) -> Void)
-
Pauses the local user’s video during a conference.
Declaration
Swift
@objc public func pauseMyVideo(completion: @escaping (Bool) -> Void)
Parameters
completion
A closure that is called when the video is paused. The closure takes a Boolean value that indicates whether the video was successfully paused.
-
Resumes the local user’s video during a conference.
Remark
On macOS, if there is no available camera device, the function call will fail. It may be necessary to check in advance usingPlanetKitCameraManager.isCameraAvailable
.Declaration
Swift
@objc public func resumeMyVideo(completion: @escaping (Bool) -> Void)
Parameters
completion
A closure that is called when the video is resumed. The closure takes a Boolean value that indicates whether the video was successfully resumed.
-
Mutes or unmutes the local user’s audio during a conference.
Declaration
Swift
@objc public func muteMyAudio(_ mute: Bool, completion: @escaping (Bool) -> Void)
Parameters
mute
A Boolean value that indicates whether to mute or unmute the audio.
completion
A closure that is called when the audio is muted or unmuted. The closure takes a Boolean value that indicates whether the audio was successfully muted or unmuted.
-
Makes all peers’ voice silent by removing speaker output.
Declaration
Swift
public func silencePeersAudio(_ silent: Bool, completion: @escaping (Bool) -> Void)
-
This is debugging only function. (DO NOT USE IT)
Declaration
Swift
@objc public func reload(_ setting: [String : Any])
-
A Boolean value indicating whether the conference is on hold.
Declaration
Swift
@objc public var isOnHold: Bool { get }
-
The local user equipment type associated with the conference.
Declaration
Swift
@objc public var myUserEquipmentType: PlanetKitUserEquipmentType { get }
-
The display name of the local user associated with the conference.
Declaration
Swift
@objc public var myDisplayName: String? { get }
-
Initializes audio for the call when the audio session is activated by CallKit.
Declaration
Swift
@objc public func notifyCallKitAudioActivation()
-
Gets the monitoring information string.
Declaration
Swift
public func getMonitorInfo() -> String