API changelog
This page provides the list of API changes in PlanetKit 5.5 for Android.
PlanetKit 5.5.1
Removed
PlanetKitPluginProviderVirtualBackground
class 1-to-1 callGroup callPlanetKitCameraResolution
enum class 1-to-1 callGroup callTHUMBNAIL
PlanetKit 5.5.0
Changed
-
PlanetKit
object 1-to-1 callGroup callPrevious PlanetKit 5.5.0 fun getDefaultCameraVideoSource(): CameraVideoSource
fun getCameraManager(): PlanetKitCameraManager
-
PlanetKitCall
interface 1-to-1 callPrevious PlanetKit 5.5.0 fun acceptCall(listener: AcceptCallListener, useResponderPreparation: Boolean = false, recordOnCloud: Boolean = false)
fun acceptCall(listener: AcceptCallListener, initialMyVideoState: PlanetKitInitialMyVideoState = PlanetKitInitialMyVideoState.RESUME, useResponderPreparation: Boolean = false, recordOnCloud: Boolean = false)
fun acceptCall(listener: AcceptCallListener, callStartMessage: PlanetKitCallStartMessage, useResponderPreparation: Boolean = false, recordOnCloud: Boolean = false)
fun acceptCall(listener: AcceptCallListener, callStartMessage: PlanetKitCallStartMessage, initialMyVideoState: PlanetKitInitialMyVideoState = PlanetKitInitialMyVideoState.RESUME, useResponderPreparation: Boolean = false, recordOnCloud: Boolean = false)
fun enableVideo(userData: Any? = null, callback: PlanetKitRequestCallback? = null): Boolean
fun enableVideo(initialMyVideoState: PlanetKitInitialMyVideoState = PlanetKitInitialMyVideoState.RESUME, userData: Any? = null, callback: PlanetKitRequestCallback? = null): Boolean
fun setVideoSource(videoSource: VideoSource?)
fun setVideoSource(videoSource: PlanetKitCustomVideoSource)
,fun clearVideoSource()
-
PlanetKitConference
interface Group callPrevious PlanetKit 5.5.0 fun enableVideo(userData: Any? = null, callback: PlanetKitRequestCallback? = null): Boolean
fun enableVideo(initialMyVideoState: PlanetKitInitialMyVideoState = PlanetKitInitialMyVideoState.RESUME, userData: Any? = null, callback: PlanetKitRequestCallback? = null): Boolean
fun setVideoSource(videoSource: VideoSource?)
fun setVideoSource(videoSource: PlanetKitCustomVideoSource)
,fun clearVideoSource()
-
CallListener
class 1-to-1 callPrevious PlanetKit 5.5.0 fun onPeerOnHold(call: PlanetKitCall, reason: String?)
fun onPeerHold(call: PlanetKitCall, reason: String?)
Added
PlanetKitCameraManager
interface 1-to-1 callGroup callval resolution: PlanetKitCameraResolution
var cameraType: PlanetKitCameraType
val isStarted: Boolean
val fps: Int
fun setStateListener(listener: StateListener?)
fun setManualResolution(resolution: PlanetKitCameraResolution)
fun setDefaultResolution()
fun setVirtualBackgroundPlugin(plugin: PlanetKitPluginVirtualBackground) :Boolean
fun addCameraTypeChangedListener(listener: CameraTypeChangedListener)
fun removeCameraTypeChangedListener(listener: CameraTypeChangedListener)
fun setVideoSourceInterceptor(interceptor: PlanetKitVideoInterceptor?)
fun startPreview(view: PlanetKitVideoView): Boolean
fun stopPreview(view: PlanetKitVideoView): Boolean
fun enableDumpFrame(enable: Boolean)
PlanetKitCameraManager.StateListener
interface 1-to-1 callGroup callfun onStart()
fun onStop()
fun onError(@ErrorCode code: Int)
PlanetKitCameraManager.CameraTypeChangedListener
interface 1-to-1 callGroup callfun onChanged(isFrontCamera: Boolean)
PlanetKitPluginVirtualBackground
interface 1-to-1 callGroup callfun getCurrentVirtualBackgroundType(): VirtualBackgroundType
fun setVirtualBackgroundWithBlur(@IntRange(from = 1, to = 25) radius: Int)
fun setVirtualBackgroundWithImage(inputImage: Bitmap)
fun clearVirtualBackground()
PlanetKitCameraResolution
enum class 1-to-1 callGroup callTHUMBNAIL(1)
QVGA(2)
VGA(3)
HD(4)
PlanetKitPluginVirtualBackground.VirtualBackgroundType
enum class 1-to-1 callGroup callNONE(0)
BLUR(1)
IMAGE(2)
PlanetKitPluginProviderVirtualBackground
class 1-to-1 callGroup callfun getPlugin(): PlanetKitPluginVirtualBackground
PlanetKitInitialMyVideoState
enum class 1-to-1 callGroup callRESUME(0)
PAUSE(1)
PlanetKitMakeCallParam.Builder
class 1-to-1 callfun setInitialMyVideoState(value: PlanetKitInitialMyVideoState)
PlanetKitConferenceParam.Builder
class Group callfun setInitialMyVideoState(value: PlanetKitInitialMyVideoState)
PlanetKitDisconnectReason
enum class 1-to-1 callGroup callDESKTOP_SCREEN_LOCKED(1314)
PlanetKitCustomVideoSource
abstract class 1-to-1 callGroup callvar maxFps: Int? = null
fun addMyVideoView(view: PlanetKitVideoView)
fun removeMyVideoView(view: PlanetKitVideoView)
protected fun postFrameData(frameData: FrameData): Boolean
protected fun postingFrameDataAvailable(): Boolean
abstract fun onMaxFpsLimitUpdated(isLimitEnabled: Boolean, maxFps: Int)
PlanetKitCustomVideoSource.FrameData
abstract class 1-to-1 callGroup call
Removed
CameraVideoSource
class 1-to-1 callGroup callScreenCapturerVideoSource
class 1-to-1 callGroup callfun stop(reason: VideoSource.VideoSourceStopReason): Boolean
fun useDeviceRotation(): Boolean
PlanetKitCall
interface 1-to-1 callfun reject()