API 변경 내역
iOS/macOS용 PlanetKit 6.0의 API 변경 내역은 다음과 같습니다.
PlanetKit 6.0
변경
-
PlanetKitCameraDelegateprotocol 1-to-1 callGroup call이전 버전 PlanetKit 6.0 func didStart()func didStart(_ deviceInfo: PlanetKitVideoCaptureDeviceInfo)func didStop(_ error: NSError?)func didStop(_ deviceInfo: PlanetKitVideoCaptureDeviceInfo) -
PlanetKitVideoCapabilityclass 1-to-1 callGroup call이전 버전 PlanetKit 6.0 var resolution: PlanetKitVideoResolutionCapability { get set }var maxResolution: PlanetKitVideoResolutionCapability { get }var fps: PlanetKitVideoFps { get set }var maxFps: PlanetKitVideoFps { get }init(resolution: PlanetKitVideoResolutionCapability, fps: PlanetKitVideoFps)init(maxResolution: PlanetKitVideoResolutionCapability, maxFps: PlanetKitVideoFps) -
PlanetKitCallConnectedParamclass 1-to-1 call이전 버전 PlanetKit 6.0 var isVideoHwCodecEnabled: Boolvar isVideoHardwareCodecEnabled: Bool -
PlanetKitConferenceConnectedParamclass Group call이전 버전 PlanetKit 6.0 var isVideoHwCodecEnabled: Boolvar isVideoHardwareCodecEnabled: Bool -
PlanetKitConferencePeerclass Group call이전 버전 PlanetKit 6.0 func volumeLevelSetting(subgroupName: String?) throws -> PlanetKitVolumeLevelfunc volumeLevelSetting() throws -> PlanetKitVolumeLevel -
오디오 관리 시스템 리팩토링 1-to-1 callGroup call
- 핵심 오디오 세션 기능은
PlanetKitAudioSession으로 이동 - 고수준 오디오 제어 기능은
PlanetKitAudioManager에서 제공
- 핵심 오디오 세션 기능은
-
PlanetKitAudioDeviceTypeenum 1-to-1 callGroup call이전 버전 PlanetKit 6.0 case spkcase speaker -
PlanetKitCameraManagerclass 1-to-1 callGroup call이전 버전 PlanetKit 6.0 func resetToDefaultCamera()func resetCustomCameraToDefaultCamera()func change(deviceInfo: PlanetKitVideoCaptureDeviceInfo)func change(deviceInfo: PlanetKitVideoCaptureDeviceInfo) throws -
PlanetKitCallDelegateprotocol 1-to-1 call이전 버전 PlanetKit 6.0.0 func videoEnabledByPeer(_ call: PlanetKitCall)func videoEnabledByPeerAndMyVideoPaused(_ call: PlanetKitCall) -
PlanetKitMakeCallSettingBuilderclass 1-to-1 call이전 버전 PlanetKit 6.0 func build() -> [String: Any]func build() throws -> [String: Any](iOS만 해당) -
PlanetKitVerifyCallSettingBuilderclass 1-to-1 call이전 버전 PlanetKit 6.0 func build() -> [String: Any]func build() throws -> [String: Any](iOS만 해당) -
PlanetKitJoinConferenceSettingBuilderclass Group call이전 버전 PlanetKit 6.0 func build() -> [String: Any]func build() throws -> [String: Any](iOS만 해당)
추가
PlanetKitCameraDelegateprotocol 1-to-1 callGroup callfunc didUpdate(_ deviceInfo: PlanetKitVideoCaptureDeviceInfo?)func didFail(_ error: NSError, deviceInfo: PlanetKitVideoCaptureDeviceInfo?)
PlanetKitVideoResolutionCapabilityenum 1-to-1 callGroup callcase qvga- 최대 해상도 320x240case vga- 최대 해상도 640x480case hd- 최대 해상도 1280x960case fhd- 최대 해상도 1920x1080
PlanetKitVideoCapabilityUsageenum 1-to-1 callGroup callcase callSendcase callReceivecase conferenceSendcase conferenceReceive
PlanetKitPreferredHardwareCodecclass 1-to-1 callGroup callvar callVideoSend: Bool { get }var callVideoReceive: Bool { get }var conferenceVideoSend: Bool { get }var conferenceVideoReceive: Bool { get }init(callVideoSend: Bool, callVideoReceive: Bool, conferenceVideoSend: Bool, conferenceVideoReceive: Bool)
PlanetKitManagerclass 1-to-1 callGroup callfunc getDeviceDefaultVideoCapability(usage: PlanetKitVideoCapabilityUsage) -> PlanetKitVideoCapabilityfunc getVideoPreferredHardwareCodec() -> PlanetKitPreferredHardwareCodec
PlanetKitInitialSettingBuilderclass 1-to-1 callGroup callfunc withSetPreferredHardwareCodecKey(preferredHardwareCodec: PlanetKitPreferredHardwareCodec) -> PlanetKitInitialSettingBuilder
PlanetKitConferencePeerControlclass Group callfunc setVolumeLevelSetting(_ volumeLevel: Int8, completion: @escaping (Bool)->Void)
PlanetKitAudioManagerclass 1-to-1 callGroup callstatic var shared: PlanetKitAudioManager { get }var session: PlanetKitAudioSession { get }func startMicPreview(_ preview: PlanetKitAudioMicPreviewDelegate, volumeInternal: TimeInterval = 1.0) -> Boolfunc stopMicPreview()func playFile(fileResourceUrl: URL, type: String, loopCount: Int32 = -1)func playFile(fileResourceUrl: URL, type: String, loopCount: Int32, completion: @escaping (Bool) -> Void)func playStop(type: String)func setCustomMic(_ customMic: PlanetKitCustomMic)func resetCustomMicToDefaultMic()func setCustomSpeaker(_ customSpeaker: PlanetKitCustomSpeaker)func resetCustomSpeakerToDefaultSpeaker()func addVolumeDelegate(_ delegate: PlanetKitAudioVolumeDelegate, for type: PlanetKitAudioDeviceType)func removeVolumeDelegate(_ delegate: PlanetKitAudioVolumeDelegate, for type: PlanetKitAudioDeviceType)var vpioEnabled: Bool { get set }var defaultMicSampleRate: Float64 { get set }var defaultSpeakerSampleRate: Float64 { get set }var openSettings: PlanetKitAudioSessionSettings? { get set }var closeSettings: PlanetKitAudioSessionSettings? { get set }var defaultIOBufferDuration: Float64 { get set }var micVolume: Float { get }var speakerVolume: Float { get }func setMicVolume(_ volume: Float)func addAudioRouteChangeDelegate(_ delegate: PlanetKitAudioRouteChangeDelegate)func removeAudioRouteChangeDelegate(_ delegate: PlanetKitAudioRouteChangeDelegate)var isBluetoothInput: Bool { get }var isBuiltInOutput: Bool { get }var devices: [PlanetKitAudioDevice] { get }func addDeviceChangeDelegate(_ delegate: PlanetKitAudioDeviceChangeDelegate)func removeDeviceChangeDelegate(_ delegate: PlanetKitAudioDeviceChangeDelegate)
PlanetKitAudioSessionclass 1-to-1 callGroup callvar micEnabled: Bool { get }var speakerEnabled: Bool { get }var isStarted: Bool { get }func addMicReceiver(_ micReceiver: PlanetKitAudioMicCaptureDelegate)func removeMicReceiver(_ micReceiver: PlanetKitAudioMicCaptureDelegate)var micModifier: PlanetKitAudioMicCaptureDelegate? { get set }func addSpeakerReceiver(_ speakerReceiver: PlanetKitAudioSpkPlayDelegate)func removeSpeakerReceiver(_ speakerReceiver: PlanetKitAudioSpkPlayDelegate)var speakerModifier: PlanetKitAudioSpkPlayDelegate? { get set }var speakerVolumeReceiver: PlanetKitAudioDeviceVolumeDelegate? { get set }var speakerVolumeInterval: TimeInterval { get set }func speakerOut(_ out: Bool)var isSpeakerOut: Boolvar micDevice: PlanetKitAudioDevice? { get }var speakerDevice: PlanetKitAudioDevice? { get }var micVolume: Float { get }var speakerVolume: Float { get }func setVolume(_ volume: Float, for type: PlanetKitAudioDeviceType)func change(micDevice: PlanetKitAudioDevice?, completion: @escaping (NSError?)->Void)func change(speakerDevice: PlanetKitAudioDevice?, completion: @escaping (NSError?)->Void)func setPreferredDefaultDevice(type: PlanetKitAudioDeviceType) throws
PlanetKitCustomMicclass 1-to-1 callGroup callfunc sendAudio(audioBuffer: PlanetKitAudioBuffer)
PlanetKitCustomSpeakerclass 1-to-1 callGroup callfunc playAudio(audioBuffer: PlanetKitAudioBuffer) -> Int32
PlanetKitAudioBufferclass 1-to-1 callGroup callPlanetKitAudioMicPreviewDelegateprotocol 1-to-1 callGroup callfunc volumeDidUpdate(micVolume: Float)
PlanetKitCCParamclass 1-to-1 callvar isRecordOnCloudEnabled: Bool
PlanetKitSettingErrorenum 1-to-1 callGroup call
삭제
PlanetKitAudioMicclass 1-to-1 callGroup callPlanetKitAudioSpkclass 1-to-1 callGroup callPlanetKitAudioMicSpkclass 1-to-1 callGroup callPlanetKitAudioMicControllableprotocol 1-to-1 callGroup callPlanetKitAudioSpkControllableprotocol 1-to-1 callGroup callPlanetKitCallclass 1-to-1 callvar myVideoSendCapability: PlanetKitVideoCapability { get }var myVideoReceiveCapability: PlanetKitVideoCapability { get }var audioManager: PlanetKitAudioManager { get }weak var spkModifier: PlanetKitAudioSpkPlayDelegate? { get set }weak var spkReceiver: PlanetKitAudioSpkPlayDelegate? { get set }weak var micModifier: PlanetKitAudioMicCaptureDelegate? { get set }weak var micReceiver: PlanetKitAudioMicCaptureDelegate? { get set }
PlanetKitConferenceclass Group callvar myVideoSendCapability: PlanetKitVideoCapability { get }var myVideoRecvPreferredHwCodec: Bool { get }var audioManager: PlanetKitAudioManager { get }weak var spkModifier: PlanetKitAudioSpkPlayDelegate? { get set }weak var spkReceiver: PlanetKitAudioSpkPlayDelegate? { get set }weak var micModifier: PlanetKitAudioMicCaptureDelegate? { get set }weak var micReceiver: PlanetKitAudioMicCaptureDelegate? { get set }
PlanetKitVideoCapabilityclass 1-to-1 callGroup callvar preferredHwCodec: Boolstatic var callSendDefault: PlanetKitVideoCapabilitystatic var callReceiveDefault: PlanetKitVideoCapabilitystatic var conferenceSendDefault: PlanetKitVideoCapability
PlanetKitJoinConferenceSettingBuilderclass Group callfunc withMyVideoRecvPreferredHwCodecKey(enable: Bool) -> PlanetKitJoinConferenceSettingBuilder
PlanetKitSubgroupManagerclass Group callfunc setPeerVolumeLevelSetting(_ volumeLevel: Int8, peerId: PlanetKitUserId, subgroupName: String?, allSubgroupsPeerSubscribed: Bool, completion: @escaping (Bool)->Void)
PlanetKitMakeCallSettingBuilderclass 1-to-1 callfunc withCustomMicKey(mic: PlanetKitAudioMicControllable) -> PlanetKitMakeCallSettingBuilderfunc withCustomSpkKey(spk: PlanetKitAudioSpkControllable) -> PlanetKitMakeCallSettingBuilder
PlanetKitVerifyCallSettingBuilderclass 1-to-1 callfunc withCustomMicKey(mic: PlanetKitAudioMicControllable) -> PlanetKitVerifyCallSettingBuilderfunc withCustomSpkKey(spk: PlanetKitAudioSpkControllable) -> PlanetKitVerifyCallSettingBuilder
PlanetKitJoinConferenceSettingBuilderclass Group callfunc withCustomMicKey(mic: PlanetKitAudioMicControllable) -> PlanetKitJoinConferenceSettingBuilderfunc withCustomSpkKey(spk: PlanetKitAudioSpkControllable) -> PlanetKitJoinConferenceSettingBuilder
PlanetKitResponseOnEnableVideoenum 1-to-1 callPlanetKitCallclass 1-to-1 callvar responseOnEnableVideo: PlanetKitResponseOnEnableVideo { get }
PlanetKitMakeCallSettingBuilderclass 1-to-1 callfunc withResponseOnEnableVideo(response: PlanetKitResponseOnEnableVideo)
PlanetKitVerifyCallSettingBuilderclass 1-to-1 callfunc withResponseOnEnableVideo(response: PlanetKitResponseOnEnableVideo)