PlanetKitPeerControl

public class PlanetKitPeerControl : NSObject

A class that represents the control for a peer in the PlanetKit conference.

Remark

This class is designed to enable real-time event reception for a specific PlanetKitConferencePeer, as well as to control video, screen share, and other functionalities.

Screen Share

  • Starts the target peer’s screen share.

    Declaration

    Swift

    @objc
    public func startScreenShare(delegate: PlanetKitVideoOutputDelegate, subgroupName: String? = nil, completion: @escaping (Bool) -> Void)

    Parameters

    delegate

    The delegate object that will receive video output.

    subgroupName

    The name of the subgroup to which the screen share belongs. Default is nil.

    completion

    A closure that will be called when the screen share starts. The closure takes a boolean parameter indicating whether the screen share started successfully.

  • Stops the target peer’s screen share.

    Remark

    It will fail if the peer’s screen share has already been stopped.

    Declaration

    Swift

    @objc
    public func stopScreenShare(completion: @escaping (Bool) -> Void)

Video