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 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): Boolean
val isSpeakerOn: Boolean
PlanetKitAudioSwitch::val isSpeakerOn: Boolean
-
PlanetKitConference
interface 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): Boolean
val isSpeakerOn: Boolean
PlanetKitAudioSwitch::val isSpeakerOn: Boolean
-
CallListener
class 1-to-1 callPrevious PlanetKit 6.0.0 fun onVideoEnabledByPeer(call: PlanetKitCall)
fun onVideoEnabledByPeerAndMyVideoPaused(call: PlanetKitCall)
-
PlanetKitVideoCapability
class 1-to-1 callGroup callPrevious PlanetKit 6.0.0 val maxResolution: PlanetKitVideoResolution
val maxResolution: PlanetKitVideoResolutionCapability
-
PlanetKitConferencePeer
class Group callPrevious PlanetKit 6.0.0 fun getAudioVolumeLevelSetting(subgroupName: String?): AudioVolumeResult
fun getAudioVolumeLevelSetting(): AudioVolumeResult
Added
PlanetKitCustomAudioSource
class 1-to-1 callPlanetKitCall
interface 1-to-1 callfun clearCustomAudioSource()
PlanetKitConference
interface Group callfun clearCustomAudioSource()
PlanetKitVideoResolutionCapability
enum class 1-to-1 callGroup callQVGA(2)
VGA(3)
HD(4)
PlanetKitPreferredHardwareCodec
data class 1-to-1 callGroup callval callVideoSend: Boolean
val callVideoReceive: Boolean
val conferenceVideoSend: Boolean
val conferenceVideoReceive: Boolean
PlanetKit
object 1-to-1 callGroup callfun getCallDeviceDefaultVideoSendCapability(): PlanetKitVideoCapability?
fun getCallDeviceDefaultVideoReceiveCapability(): PlanetKitVideoCapability?
fun getConferenceDeviceDefaultVideoSendCapability(): PlanetKitVideoCapability?
fun getConferenceDeviceDefaultVideoReceiveCapability(): PlanetKitVideoCapability?
fun setPreferredHardwareCodec(preferredHardwareCodec: PlanetKitPreferredHardwareCodec)
fun getPreferredHardwareCodec(): PlanetKitPreferredHardwareCodec
PlanetKitCCParam
class 1-to-1 callval isRecordOnCloudEnabled: Boolean
PlanetKitMicMuteControlMethod
enum class 1-to-1 callGroup callAUDIO_MANAGER
AUDIO_DRIVER
PlanetKitVerifyCallParam.Builder
class 1-to-1 callfun setMicMuteControlMethod(value: PlanetKitMicMuteControlMethod)
PlanetKitMakeCallParam.Builder
class 1-to-1 callfun setMicMuteControlMethod(value: PlanetKitMicMuteControlMethod)
PlanetKitConferenceParam.Builder
class Group callfun setMicMuteControlMethod(value: PlanetKitMicMuteControlMethod)
PlanetKitPeerControl
class Group callfun setVolumeLevelSetting(@IntRange(from = 0, to = 110) volumeLevel: Int, userData: Any? = null, callback: PlanetKitRequestCallback? = null): Boolean
PlanetKitPeerView
class Group callfun setVolumeLevelSetting(@IntRange(from = 0, to = 110) volumeLevel: Int, userData: Any? = null, callback: PlanetKitRequestCallback? = null): Boolean
PlanetKitCameraType
enum class 1-to-1 callGroup callEXTERNAL
PlanetKitCameraManager
interface 1-to-1 callGroup callval supportDeviceFeatureExternalCamera: Boolean
fun interface UsbCameraAvailabilityListener
fun addUsbCameraAvailabilityListener(listener: UsbCameraAvailabilityListener)
fun removeUsbCameraAvailabilityListener(listener: UsbCameraAvailabilityListener)
Removed
AudioSource
class 1-to-1 callPlanetKitResponseOnEnableVideo
enum class 1-to-1 callPlanetKitMakeCallParam.Builder
class 1-to-1 callfun responseOnEnableVideo(responseOnEnableVideo: PlanetKitResponseOnEnableVideo)
PlanetKitVerifyCallParam.Builder
class 1-to-1 callfun responseOnEnableVideo(responseOnEnableVideo: PlanetKitResponseOnEnableVideo)
PlanetKitVideoCapability
class 1-to-1 callGroup callpreferredHwCodec: Boolean
ConferenceListener
interface Group callfun onRoomUpdated(joinedPeerCount: Int)
PlanetKitSubgroup
interface Group callfun getPeerVolumeLevelSetting(user: PlanetKitUser): Int
PlanetKitSubgroupManager
interface Group callfun 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