Skip to main content
Version: 6.0

API changelog

This page provides the list of API changes in PlanetKit 6.0 for Android.

PlanetKit 6.0

Changed

  • PlanetKitCall interface 1-to-1 call

    PreviousPlanetKit 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): Boolean
    val isSpeakerOn: BooleanPlanetKitAudioSwitch::val isSpeakerOn: Boolean
  • PlanetKitConference interface Group call

    PreviousPlanetKit 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): Boolean
    val isSpeakerOn: BooleanPlanetKitAudioSwitch::val isSpeakerOn: Boolean
  • CallListener class 1-to-1 call

    PreviousPlanetKit 6.0.0
    fun onVideoEnabledByPeer(call: PlanetKitCall)fun onVideoEnabledByPeerAndMyVideoPaused(call: PlanetKitCall)
  • PlanetKitVideoCapability class 1-to-1 callGroup call

    PreviousPlanetKit 6.0.0
    val maxResolution: PlanetKitVideoResolutionval maxResolution: PlanetKitVideoResolutionCapability
  • PlanetKitConferencePeer class Group call

    PreviousPlanetKit 6.0.0
    fun getAudioVolumeLevelSetting(subgroupName: String?): AudioVolumeResultfun getAudioVolumeLevelSetting(): AudioVolumeResult

Added

  • PlanetKitCustomAudioSource class 1-to-1 call
  • PlanetKitCall interface 1-to-1 call
    • fun clearCustomAudioSource()
  • PlanetKitConference interface Group call
    • fun clearCustomAudioSource()
  • PlanetKitVideoResolutionCapability enum class 1-to-1 callGroup call
    • QVGA(2)
    • VGA(3)
    • HD(4)
  • PlanetKitPreferredHardwareCodec data class 1-to-1 callGroup call
    • val callVideoSend: Boolean
    • val callVideoReceive: Boolean
    • val conferenceVideoSend: Boolean
    • val conferenceVideoReceive: Boolean
  • PlanetKit object 1-to-1 callGroup call
    • fun getCallDeviceDefaultVideoSendCapability(): PlanetKitVideoCapability?
    • fun getCallDeviceDefaultVideoReceiveCapability(): PlanetKitVideoCapability?
    • fun getConferenceDeviceDefaultVideoSendCapability(): PlanetKitVideoCapability?
    • fun getConferenceDeviceDefaultVideoReceiveCapability(): PlanetKitVideoCapability?
    • fun setPreferredHardwareCodec(preferredHardwareCodec: PlanetKitPreferredHardwareCodec)
    • fun getPreferredHardwareCodec(): PlanetKitPreferredHardwareCodec
  • PlanetKitCCParam class 1-to-1 call
    • val isRecordOnCloudEnabled: Boolean
  • PlanetKitMicMuteControlMethod enum class 1-to-1 callGroup call
    • AUDIO_MANAGER
    • AUDIO_DRIVER
  • PlanetKitVerifyCallParam.Builder class 1-to-1 call
    • fun setMicMuteControlMethod(value: PlanetKitMicMuteControlMethod)
  • PlanetKitMakeCallParam.Builder class 1-to-1 call
    • fun setMicMuteControlMethod(value: PlanetKitMicMuteControlMethod)
  • PlanetKitConferenceParam.Builder class Group call
    • fun setMicMuteControlMethod(value: PlanetKitMicMuteControlMethod)
  • PlanetKitPeerControl class Group call
    • fun setVolumeLevelSetting(@IntRange(from = 0, to = 110) volumeLevel: Int, userData: Any? = null, callback: PlanetKitRequestCallback? = null): Boolean
  • PlanetKitPeerView class Group call
    • fun setVolumeLevelSetting(@IntRange(from = 0, to = 110) volumeLevel: Int, userData: Any? = null, callback: PlanetKitRequestCallback? = null): Boolean
  • PlanetKitCameraType enum class 1-to-1 callGroup call
    • EXTERNAL
  • PlanetKitCameraManager interface 1-to-1 callGroup call
    • val supportDeviceFeatureExternalCamera: Boolean
    • fun interface UsbCameraAvailabilityListener
    • fun addUsbCameraAvailabilityListener(listener: UsbCameraAvailabilityListener)
    • fun removeUsbCameraAvailabilityListener(listener: UsbCameraAvailabilityListener)

Removed

  • AudioSource class 1-to-1 call
  • PlanetKitResponseOnEnableVideo enum class 1-to-1 call
  • PlanetKitMakeCallParam.Builder class 1-to-1 call
    • fun responseOnEnableVideo(responseOnEnableVideo: PlanetKitResponseOnEnableVideo)
  • PlanetKitVerifyCallParam.Builder class 1-to-1 call
    • fun responseOnEnableVideo(responseOnEnableVideo: PlanetKitResponseOnEnableVideo)
  • PlanetKitVideoCapability class 1-to-1 callGroup call
    • preferredHwCodec: Boolean
  • ConferenceListener interface Group call
    • fun onRoomUpdated(joinedPeerCount: Int)
  • PlanetKitSubgroup interface Group call
    • fun getPeerVolumeLevelSetting(user: PlanetKitUser): Int
  • PlanetKitSubgroupManager interface Group call
    • fun setPeerVolumeLevelSetting(peer: PlanetKitUser, subgroupName: String?, @IntRange(from = 0, to = 110) talkerVolume: Int, userData: Any?, callback: PlanetKitRequestCallback?): Boolean
    • fun setPeerVolumeLevelSetting(peer: PlanetKitUser, @IntRange(from = 0, to = 110) talkerVolume: Int, userData: Any?, callback: PlanetKitRequestCallback?): Boolean