API changelog
This page provides the list of API changes in PlanetKit 6.0 for Android.
PlanetKit 6.0
Changed
-
PlanetKitCallinterface 1-to-1 callPrevious PlanetKit 6.0.0 fun setAudioSource(audioSource: AudioSource?)fun setCustomAudioSource(audioSource: PlanetKitCustomAudioSource)fun setVideoSource(videoSource: PlanetKitCustomVideoSource)fun setCustomVideoSource(videoSource: PlanetKitCustomVideoSource)fun clearVideoSource()fun clearCustomVideoSource()fun setSpeakerOn(isSpeakerOn: Boolean)PlanetKitAudioSwitch::fun setSpeakerOn(isSpeakerOn: Boolean): Booleanval isSpeakerOn: BooleanPlanetKitAudioSwitch::val isSpeakerOn: Boolean -
PlanetKitConferenceinterface Group callPrevious PlanetKit 6.0.0 fun setAudioSource(audioSource: AudioSource?)fun setCustomAudioSource(audioSource: PlanetKitCustomAudioSource)fun setVideoSource(videoSource: PlanetKitCustomVideoSource)fun setCustomVideoSource(videoSource: PlanetKitCustomVideoSource)fun clearVideoSource()fun clearCustomVideoSource()fun setSpeakerOn(isSpeakerOn: Boolean)PlanetKitAudioSwitch::fun setSpeakerOn(isSpeakerOn: Boolean): Booleanval isSpeakerOn: BooleanPlanetKitAudioSwitch::val isSpeakerOn: Boolean -
CallListenerinterface 1-to-1 callPrevious PlanetKit 6.0.0 fun onVideoEnabledByPeer(call: PlanetKitCall)fun onVideoEnabledByPeerAndMyVideoPaused(call: PlanetKitCall) -
PlanetKitVideoCapabilityclass 1-to-1 callGroup callPrevious PlanetKit 6.0.0 val maxResolution: PlanetKitVideoResolutionval maxResolution: PlanetKitVideoResolutionCapability -
PlanetKitConferencePeerclass Group callPrevious PlanetKit 6.0.0 fun getAudioVolumeLevelSetting(subgroupName: String?): AudioVolumeResultfun getAudioVolumeLevelSetting(): AudioVolumeResult
Added
PlanetKitCustomAudioSourceclass 1-to-1 callPlanetKitCallinterface 1-to-1 callfun clearCustomAudioSource()
PlanetKitConferenceinterface Group callfun clearCustomAudioSource()
PlanetKitVideoResolutionCapabilityenum class 1-to-1 callGroup callQVGA(1)VGA(2)HD(3)
PlanetKitPreferredHardwareCodecdata class 1-to-1 callGroup callval callVideoSend: Booleanval callVideoReceive: Booleanval conferenceVideoSend: Booleanval conferenceVideoReceive: Boolean
PlanetKitobject 1-to-1 callGroup callfun getCallDeviceDefaultVideoSendCapability(): PlanetKitVideoCapability?fun getCallDeviceDefaultVideoReceiveCapability(): PlanetKitVideoCapability?fun getConferenceDeviceDefaultVideoSendCapability(): PlanetKitVideoCapability?fun getConferenceDeviceDefaultVideoReceiveCapability(): PlanetKitVideoCapability?fun setPreferredHardwareCodec(preferredHardwareCodec: PlanetKitPreferredHardwareCodec)fun getPreferredHardwareCodec(): PlanetKitPreferredHardwareCodec
PlanetKitCCParamclass 1-to-1 callval isRecordOnCloudEnabled: Boolean
PlanetKitMicMuteControlMethodenum class 1-to-1 callGroup callAUDIO_MANAGERAUDIO_DRIVER
PlanetKitVerifyCallParam.Builderclass 1-to-1 callfun setMicMuteControlMethod(value: PlanetKitMicMuteControlMethod)
PlanetKitMakeCallParam.Builderclass 1-to-1 callfun setMicMuteControlMethod(value: PlanetKitMicMuteControlMethod)
PlanetKitConferenceParam.Builderclass Group callfun setMicMuteControlMethod(value: PlanetKitMicMuteControlMethod)
PlanetKitPeerControlclass Group callfun setVolumeLevelSetting(@IntRange(from = 0, to = 110) volumeLevel: Int, userData: Any? = null, callback: PlanetKitRequestCallback? = null): Boolean
PlanetKitPeerViewclass Group callfun setVolumeLevelSetting(@IntRange(from = 0, to = 110) volumeLevel: Int, userData: Any? = null, callback: PlanetKitRequestCallback? = null): Boolean
PlanetKitCameraTypeenum class 1-to-1 callGroup callEXTERNAL
PlanetKitCameraManagerinterface 1-to-1 callGroup callval supportDeviceFeatureExternalCamera: Booleanfun interface UsbCameraAvailabilityListenerfun addUsbCameraAvailabilityListener(listener: UsbCameraAvailabilityListener)fun removeUsbCameraAvailabilityListener(listener: UsbCameraAvailabilityListener)
Removed
AudioSourceclass 1-to-1 callPlanetKitResponseOnEnableVideoenum class 1-to-1 callPlanetKitMakeCallParam.Builderclass 1-to-1 callfun responseOnEnableVideo(responseOnEnableVideo: PlanetKitResponseOnEnableVideo)
PlanetKitVerifyCallParam.Builderclass 1-to-1 callfun responseOnEnableVideo(responseOnEnableVideo: PlanetKitResponseOnEnableVideo)
PlanetKitVideoCapabilityclass 1-to-1 callGroup callpreferredHwCodec: Boolean
ConferenceListenerinterface Group callfun onRoomUpdated(joinedPeerCount: Int)
PlanetKitSubgroupinterface Group callfun getPeerVolumeLevelSetting(user: PlanetKitUser): Int
PlanetKitSubgroupManagerinterface Group callfun setPeerVolumeLevelSetting(peer: PlanetKitUser, subgroupName: String?, @IntRange(from = 0, to = 110) talkerVolume: Int, userData: Any?, callback: PlanetKitRequestCallback?): Booleanfun setPeerVolumeLevelSetting(peer: PlanetKitUser, @IntRange(from = 0, to = 110) talkerVolume: Int, userData: Any?, callback: PlanetKitRequestCallback?): Boolean