This document describes the upgrade of GME.
The room entry operation has been changed from sync to async. If the returned value is 0, the async delivery is successful and waiting to be processed by the callback function; otherwise, the async delivery fails.
public abstract int EnterRoom();
The room exit operation has been changed from sync to async. It is handled in the same way as the
RoomExitComplete callback function. If the returned value is
AV_OK, the async delivery is successful.
If there is a scenario in the application where room entry is performed immediately after room exit, you don't need to wait for the
RoomExitCompletecallback notification from the
ExitRoomAPI during API call; instead, you can directly call the API.
public abstract int ExitRoom();
Error code "1" has no specific meaning and will no longer be returned since v2.3.5, so it has been deleted.
public int PauseAudio() public int ResumeAudio()
ResumeAudio API is called in an SDK below version 2.3, please see the table below for version comparison.
|Version Below 2.3||Version 2.3|
|For mutual exclusivity with other modules||Change
|For using voice messaging and speech-to-text in voice chat||Delete
ITMGContext virtual void SetLogLevel(int logLevel, bool enableWrite, bool enablePrint)
ITMGContext virtual void SetLogLevel(ITMG_LOG_LEVEL levelWrite, ITMG_LOG_LEVEL levelPrint)
|levelWrite||ITMG_LOG_LEVEL||Sets the level of logs to be written.
|levelPrint||ITMG_LOG_LEVEL||Sets the level of logs to be printed.
|TMG_LOG_LEVEL_NONE=0||Does not print logs|
|TMG_LOG_LEVEL_ERROR=1||Prints error logs (default)|
|TMG_LOG_LEVEL_INFO=2||Prints info logs|
|TMG_LOG_LEVEL_DEBUG=3||Prints debug logs|
|TMG_LOG_LEVEL_VERBOSE=4||Prints verbose logs|
This API is used to get the real-time audio upstreaming volume level. An int-type value will be returned. Value range: 0–100.
This API is used to get the real-time audio downstreaming volume levels of other members in the room. An int-type value will be returned. Value range: 0–100.
iter->second.level = ITMGContextGetInstance()->GetAudioCtrl()->GetRecvStreamLevel(iter->second.openid.c_str());
The type of returned values of the following APIs has been changed to
StartRecording UploadRecordedFile DownloadRecordedFile PlayRecordedFile SpeechToText