API changelog
This page provides the list of API changes in PlanetKit 7.0 for Windows.
PlanetKit 7.0
Changed
-
ConferenceParamclass Group callPrevious PlanetKit 7.0.0 AudioDescriptionInfo GetAudioDescriptionInfo()const AudioDescriptionInfo& GetAudioDescriptionInfo() -
Configurationclass 1-to-1 callGroup callPrevious PlanetKit 7.0.0 static ConfigurationPtr Create(const WString &strBasePath, const WString &strDatabasePath)static ConfigurationPtr Create(const WString &strPlanetKitSystemDirectory) -
IPeerControlEventclass Group callPrevious PlanetKit 7.0.0 void OnScreenShareUpdated(PeerControlPtr pPeerControl, SubgroupPtr pSubgroup, EScreenShareState eState)void OnScreenShareUpdated(PeerControlPtr pPeerControl, SubgroupPtr pSubgroup, EScreenShareState eState, IntOptional nDisabledReason) -
PeerControlclass Group callPrevious PlanetKit 7.0.0 void SetView(WindowHandle hWnd)VideoRenderPtr SetView(WindowHandle hWnd)bool StopVideo(void *pUserData=nullptr, StoptVideoResultCallback pCallback=nullptr)bool StopVideo(void *pUserData=nullptr, StopVideoResultCallback pCallback=nullptr) -
PlanetKitCallclass 1-to-1 callPrevious PlanetKit 7.0.0 bool SendShortData(const WString &strType, void *pData, unsigned int nSize, void *pUserData=nullptr, ResultCallback pCallback=nullptr)bool SendShortData(const WString &strType, void *pData, unsigned int nSize, void *pUserData=nullptr, SendShortDataResultHandler pHandler=nullptr) -
PlanetKitConferenceclass Group callPrevious PlanetKit 7.0.0 bool SendShortData(const WString &strType, void *pData, unsigned int nSize, UserIdPtr pPeerId, void *pUserData=nullptr, ResultCallback pCallback=nullptr)bool SendShortData(const WString &strType, void *pData, unsigned int nSize, UserIdPtr pPeerId, void *pUserData=nullptr, SendShortDataResultHandler pHandler=nullptr)bool SendShortDataToAllPeers(const WString &strType, void *pData, unsigned int nSize, void *pUserData=nullptr, ResultCallback pCallback=nullptr)bool SendShortDataToAllPeers(const WString &strType, void *pData, unsigned int nSize, void *pUserData=nullptr, SendShortDataResultHandler pHandler=nullptr) -
SendVoiceProcessorclass 1-to-1 callGroup callPrevious PlanetKit 7.0.0 EPlanetkitNoiseSuppressorMode GetNoiseSuppressorMode()EPlanetKitNoiseSuppressorMode GetNoiseSuppressorMode()bool SetNoiseSuppressor(EPlanetkitNoiseSuppressorMode ePlanetkitNoiseSuppressorMode=EPlanetkitNoiseSuppressorMode::PLNK_NOISE_SUPPRESSOR_MODE_ENABLE, void *pUserData=nullptr, ResultCallback pCallback=nullptr)bool SetNoiseSuppressor(EPlanetKitNoiseSuppressorMode ePlanetKitNoiseSuppressorMode=EPlanetKitNoiseSuppressorMode::PLNK_NOISE_SUPPRESSOR_MODE_ENABLE, void *pUserData=nullptr, ResultCallback pCallback=nullptr) -
CallVerifiedParamclass 1-to-1 callPrevious PlanetKit 7.0.0 bool IsPeerUsePreparation()bool IsPeerUseResponderPreparation() -
ECapturerMediaTypeenum 1-to-1 callGroup callPrevious PlanetKit 7.0.0 PLNK_CAPTURER_TYPE_UnknownPLNK_CAPTURER_TYPE_UNKNOWNPLNK_CAPTURER_TYPE_v210PLNK_CAPTURER_TYPE_V210PLNK_CAPTURER_TYPE_v216PLNK_CAPTURER_TYPE_V216PLNK_CAPTURER_TYPE_v410PLNK_CAPTURER_TYPE_V410PLNK_CAPTURER_TYPE_Base_HDCPPLNK_CAPTURER_TYPE_BASE_HDCP -
MakeCallParamclass 1-to-1 callPrevious PlanetKit 7.0.0 void SetPreparation(bool bPreparation)void SetUseResponderPreparation(bool bUseResponderPreparation)bool IsPreparation()bool UseResponderPreparation() -
Enum name changes
Previous PlanetKit 7.0.0 Note EPlanetkitNoiseSuppressorModeEPlanetKitNoiseSuppressorMode1-to-1 call, Group call
Added
-
CameraControllerclass 1-to-1 callGroup callbool ChangeCamera(SharedPtr<CustomCamera> pCustomCamera)
-
ConferencePeerScreenShareUpdatedParamclass Group callIntOptional GetDisabledReason()
-
Configurationclass 1-to-1 callGroup callvoid EnableLog(const WString &strLogDirectory, WStringOptional strLogFileName, ELogLevel eLogLevel=ELogLevel::PLNK_LOG_SIMPLE)void EnableLog(const WString &strLogDirectory, ELogLevel eLogLevel=ELogLevel::PLNK_LOG_SIMPLE, ELogSizeLimit eLogSizeLimit=ELogSizeLimit::PLNK_LOG_SIZE_LIMIT_LARGE)const WString& GetPlanetKitSystemDirectory()
-
CustomCameraclass 1-to-1 callGroup callinline bool IsPostingFrameAvailable()inline bool IsRunning()void OnStart()void OnStop()inline Start()inline Stop()inline WriteFrameData(SVideoFrame &sVideoFrame)
-
EPlanetKitAutoGainControlenum 1-to-1 callGroup callPLNK_AUTO_GAIN_CONTROL_TYPE_HARDWARE_ECHO_TOLERANCE = 3
-
ESendShortDataFailReasonenum 1-to-1 callGroup callPLNK_SEND_SHORT_DATA_FAIL_REASON_NONE = 0PLNK_SEND_SHORT_DATA_FAIL_REASON_INVALID_PARAMETERPLNK_SEND_SHORT_DATA_FAIL_REASON_TOO_LONG_DATA_TYPEPLNK_SEND_SHORT_DATA_FAIL_REASON_TOO_LONG_DATAPLNK_SEND_SHORT_DATA_FAIL_REASON_TOO_FREQUENTPLNK_SEND_SHORT_DATA_FAIL_REASON_TIMEOUT
-
PeerControlclass Group callVideoRenderPtr GetVideoRender()
Removed
-
CameraControllerclass 1-to-1 callGroup callbool IsPostingFrameAvailable(UINT64 ull64tick)bool WriteFrameData(SVideoFrame &sVideoFrame)
-
CommonVideoStatusclass 1-to-1 callGroup callconst char * PeerId()const char * ServiceId()EVideoPauseReason VideoPauseReason()
-
CommonVideoStatusesclass 1-to-1 callGroup callCommonVideoStatus* At(size_t nIdx)size_t GetCount()
-
ConferenceParamclass Group callEConnectToken ConnectToken()static ConferenceParamPtr CreateWithAPIKey(UserIdPtr pMyID, const WString &strRoomID, const WString &strRoomServiceID, const WString &strAPIKey)const WString& GetAPIKey()int GetAudioInputNoSrcTimeOutSec()int GetVideoInputNoSrcTimeOutSec()void SetAudioInputNoSrcTimeOutSec(unsigned int nAudioInputNoSrcTimeOutSec)void SetVideoInputNoSrcTimeOutSec(unsigned int nVideoInputNoSrcTimeOutSec)
-
Configurationclass 1-to-1 callGroup callvoid EnableLogOutput(bool bEnable)const WString& GetBasePath()const WString& GetDatabasePath()ELogLevel GetLogLevel()ELogSizeLimit GetLogSizeLimit()bool IsLogOutputEnabled()void SetLogLevel(ELogLevel eLogLevel)void SetLogSizeLimit(ELogSizeLimit eLogSizeLimit)
-
EConnectTokenenum 1-to-1 callGroup callAPI_KEYACCESS_TOKEN
-
ELogLevelenum 1-to-1 callGroup callPLNK_LOG_SILENT
-
ELogSizeLimitenum 1-to-1 callGroup callPLNK_LOG_SIZE_LIMIT_UNLIMITED
-
EStartFailReasonenum 1-to-1 callGroup callPLNK_START_FAIL_REASON_INVALID_API_KEY = 9
-
MakeCallParamclass 1-to-1 callconst WString& APIKey()EConnectToken ConnectToken()static MakeCallParamPtr CreateWithAPIKey(UserIdPtr pMyID, UserIdPtr pPeerID, const WString &strKey)int GetAudioInputNoSrcTimeOutSec()int GetVideoInputNoSrcTimeOutSec()void SetAudioInputNoSrcTimeOutSec(unsigned int nAudioInputNoSrcTimeOutSec)void SetVideoInputNoSrcTimeOutSec(unsigned int nVideoInputNoSrcTimeOutSec)
-
PlanetKitConferenceclass Group callbool RequestPeerScreenShare(UserIdPtr pPeerId, const WStringOptional &strSubgroupName, void *pUserData, RequestPeerVideoResultCallback pCallback)bool RequestPeerVideo(UserIdPtr pPeerId, const WStringOptional &strSubgroupName, EVideoResolution eVideoResolution)bool RequestPeerVideo(UserIdPtr pPeerId, const WStringOptional &strSubgroupName, EVideoResolution eVideoResolution, void *pUserData, RequestPeerVideoResolutionCallback pCallback)bool RequestPeerVideo(UserIdPtr pPeerId, const WStringOptional &strSubgroupName, EVideoResolution eVideoResolution, void *pUserData, RequestPeerVideoResultCallback pCallback)bool StopPeerScreenShare(UserIdPtr pPeerId, const WStringOptional &strSubgroupName, void *pUserData, RequestPeerVideoResultCallback pCallback)bool StopPeerVideo(UserIdPtr pPeerId, const WStringOptional &strSubgroupName, void *pUserData=nullptr, RequestPeerVideoResultCallback pCallback=nullptr)
-
VerifyCallParamclass 1-to-1 callint GetAudioInputNoSrcTimeOutSec()int GetVideoInputNoSrcTimeOutSec()void SetAudioInputNoSrcTimeOutSec(unsigned int nAudioInputNoSrcTimeOutSec)void SetVideoInputNoSrcTimeOutSec(unsigned int nVideoInputNoSrcTimeOutSec)
-
VideoSourceclass 1-to-1 callGroup callinline EVideoCapturerType GetType()inline bool IsPostingFrameAvailable(UINT64 ullTick64)inline bool OnFrame(SVideoFrame &sPlanetKitVideoFrame)