PlanetKitCustomCamera
@objc
open class PlanetKitCustomCamera : NSObject
A class that provides custom camera functionalities for the PlanetKit framework.
-
Declaration
Swift
public override init()
-
Declaration
Swift
@objc public func sendVideo(videoBuffer: PlanetKitVideoBuffer)
Parameters
videoBuffer
The video buffer to be sent.
-
Determines if screen share sending is available at the specified timestamp.
Declaration
Swift
@objc public func isVideoSendAvailable(timestamp: CMTime) -> Bool
Parameters
timestamp
The timestamp of the screen share frame.
Return Value
true
if screen share sending is available,false
otherwise. -
Processes optimal FPS limit updates. This method is intended to be overridden by subclasses. Implement this method to receive updates about the FPS limit.
Note
This method is optional. You can choose to implement it based on your needs.Declaration
Swift
@objc open func processFpsLimitUpdate(enabled: Bool, fps: Int32)
Parameters
enabled
A Boolean value indicating whether the FPS limit is enabled.
fps
The recommended FPS value to optimize the performance.