Init
API once.
Billing will not start after initialization. After you call Entering a voice chat room to enter the room successfully, the billing will start.QAVError.OK
will be returned with the value being 0.Poll
API should be called periodically for GME to trigger event callbacks.@class ITMGRoom;//Room APIs@class ITMGAudioCtrl;//Audio APIs@class ITMGAudioEffectCtrl;//Sound effect, accompaniment APIs
Init
API before you can use the voice chat and speech-to-text services.Init
API before calling any APIs of GME.API | Description |
InitEngine | Initializes GME |
Poll | Triggers event callback |
Pause | Pauses the system |
Resume | Resumes the system |
Uninit | Uninitializes GME |
ITMGContext
object first.ITMGContext ITMGDelegate <NSObject>
ITMGContext* _context = [ITMGContext GetInstance];_context.TMGDelegate =self;
OnEvent
. For the message type, please see ITMG_MAIN_EVENT_TYPE
. The message content is a dictionary for parsing the API callback contents.- (void)OnEvent:(ITMG_MAIN_EVENT_TYPE)eventType data:(NSDictionary*)data;
-(void)OnEvent:(ITMG_MAIN_EVENT_TYPE)eventType data:(NSDictionary *)data{NSLog(@"OnEvent:%lu,data:%@",(unsigned long)eventType,data);switch (eventType) {//Identify `eventType`}}
sdkAppID
parameter, see Voice Service Activation Guide.-(int)InitEngine:(NSString*)sdkAppID openID:(NSString*)openID;
Parameter | Type | Description |
sdkAppId | String | |
OpenId | String | OpenId can only be in Int64 type, which is passed after being converted to a string. |
Returned Value | Description |
QAV_OK= 0 | Initialized SDK successfully. |
QAV_ERR_SDK_NOT_FULL_UPDATE= 7015 | Checks whether the SDK file is complete. It is recommended to delete it and then import the SDK again. |
AV_ERR_SDK_NOT_FULL_UPDATE
is only a reminder but will not cause an initialization failure._openId = _userIdText.text;_appId = _appIdText.text;[[ITMGContext GetInstance] InitEngine:SDKAPPID openID:_openId];
Poll
API in update
. The Poll
API should be called periodically for GME to trigger event callbacks; otherwise, the entire SDK service will run exceptionally.
Refer to the EnginePollHelper.m file in Demo.Poll
API must be called periodically and in the main thread to avoid abnormal API callbacks.-(void)Poll;
[[ITMGContext GetInstance] Poll];
Pause
event occurs in the system, the engine should also be notified for pause.
If you need to pause the audio when switching to the background, you can call the Pause
API in the listening code used to switch to the background, and call the Resume
API in the listening event used to resume the foreground.-(QAVResult)Pause;
Resume
event occurs in the system, the engine should also be notified for resumption. The Resume
API only supports resuming voice chat.-(QAVResult)Resume;
-(int)Uninit;
[[ITMGContext GetInstance] Uninit];
API | Description |
GenAuthBuffer | Initializes authentication |
EnterRoom | Enters room |
IsRoomEntered | Indicates whether room entry is successful |
ExitRoom | Exits room |
ChangeRoomType | Modifies user's room audio type |
GetRoomType | Gets user's room audio type |
EnterRoom
API does not necessarily mean that the room entry is successful.AuthBuffer
for encryption and authentication of relevant features. For release in the production environment, please use the backend deployment key as detailed in Authentication Key. @interface QAVAuthBuffer : NSObject+ (NSData*) GenAuthBuffer:(unsigned int)appId roomId:(NSString*)roomId openID:(NSString*)openID key:(NSString*)key;+ @end
Parameter | Type | Description |
appId | int | AppId from the Tencent Cloud console. |
roomId | NSString | Room ID, which can contain up to 127 characters. |
openID | NSString | User ID, which is the same as openID during initialization. |
key | NSString |
#import "GMESDK/QAVAuthBuffer.h"NSData* authBuffer = [QAVAuthBuffer GenAuthBuffer:SDKAPPID3RD.intValue roomId:_roomId openID:_openId key:AUTHKEY];
ITMG_MAIN_EVENT_TYPE_ENTER_ROOM
message will be received as a callback. Mic and speaker are not enabled by default after room entry. The returned value of AV_OK
indicates a success.ChangeRoomType
API, the audio type of the room will be changed.-(int)EnterRoom:(NSString*) roomId roomType:(int)roomType authBuffer:(NSData*)authBuffer;
Parameter | Type | Description |
roomId | NSString | Room ID, which can contain up to 127 characters |
roomType | int | Room audio type |
authBuffer | NSData | Authentication key |
[[ITMGContext GetInstance] EnterRoom:_roomId roomType:_roomType authBuffer:authBuffer];
ITMG_MAIN_EVENT_TYPE_ENTER_ROOM
will be sent and identified in the OnEvent
function for callback and processing. A successful callback means that the room entry is successful, and the billing starts.-(void)OnEvent:(ITMG_MAIN_EVENT_TYPE)eventType data:(NSDictionary *)data{NSLog(@"OnEvent:%lu,data:%@",(unsigned long)eventType,data);switch (eventType) {case ITMG_MAIN_EVENT_TYPE_ENTER_ROOM:{int result = ((NSNumber*)[data objectForKey:@"result"]).intValue;NSString* error_info = [data objectForKey:@"error_info"];//Receive the event of successful room entry}break;}}
Message | Data | Sample |
ITMG_MAIN_EVENT_TYPE_ENTER_ROOM | result; error_info | {"error_info":"","result":0} |
ITMG_MAIN_EVENT_TYPE_ROOM_DISCONNECT | result; error_info | {"error_info":"waiting timeout, please check your network","result":0} |
ITMG_MAIN_EVENT_TYPE.ITMG_MAIN_EVENT_TYPE_ROOM_DISCONNECT
. At this time, the SDK will automatically reconnect, and the callback is ITMG_MAIN_EVENT_TYPE_RECONNECT_START
. When the reconnection is successful, there will be a callback ITMG_MAIN_EVENT_TYPE_RECONNECT_SUCCESS
.Error Code Value | Cause and Suggested Solution |
7006 | Authentication failed: The AppID does not exist or is incorrect.An error occurred while authenticating the authbuff .Authentication expired. The OpenId does not meet the specification. |
7007 | Already in another room. |
1001 | The user was already in the process of entering a room but repeated this operation. It is recommended not to call the room entering API until the room entry callback is returned. |
1003 | The user was already in the room and called the room entering API again. |
1101 | Make sure that the SDK is initialized, OpenId complies with the rules, the APIs are called in the same thread, and the Poll API is called normally. |
AV_OK
indicates a successful async delivery.RoomExitComplete
callback notification from the ExitRoom
API during API call; instead, you can directly call the API.-(int)ExitRoom
[[ITMGContext GetInstance] ExitRoom];
ITMG_MAIN_EVENT_TYPE_EXIT_ROOM
.-(void)OnEvent:(ITMG_MAIN_EVENT_TYPE)eventType data:(NSDictionary *)data{NSLog(@"OnEvent:%lu,data:%@",(unsigned long)eventType,data);switch (eventType) {case ITMG_MAIN_EVENT_TYPE_EXIT_ROOM:{// Receive the event of successful room exit}break;}}
Message | Data | Sample |
ITMG_MAIN_EVENT_TYPE_EXIT_ROOM | result; error_info | {"error_info":"","result":0} |
-(BOOL)IsRoomEntered;
[[ITMGContext GetInstance] IsRoomEntered];
ITMG_MAIN_EVENT_TYPE.ITMG_MAIN_EVENT_TYPE_SWITCH_ROOM
, and the fields are error_info
and result
.-(int) SwitchRoom:(NSString *)roomID authBuffer:(NSData*)authBuffer;
Parameter | Type | Description |
targetRoomID | NSString * | ID of the room to enter |
authBuffer | NSData* | Generates a new authentication with the ID of the room to enter |
- (IBAction)swichRoom:(id)sender {NSData* authBuffer = [QAVAuthBuffer GenAuthBuffer:_appId.intValue roomID:_roomIdText.text openID:_openId key:_key];[[[ITMGContext GetInstance]GetRoom]SwitchRoom:_roomIdText.text authBuffer:authBuffer];}-(void)OnEvent:(ITMG_MAIN_EVENT_TYPE)eventType data:(NSDictionary *)data{NSString* log =[NSString stringWithFormat:@"OnEvent:%d,data:%@", (int)eventType, data];[self showLog:log];NSLog(@"====%@====",log);switch (eventType) {case ITMG_MAIN_EVENT_TYPE_SWITCH_ROOM:{int result = ((NSNumber*)[data objectForKey:@"result"]).intValue;NSString* log = nil;if (result == QAV_OK) {log = [NSString stringWithFormat:@"switch room success."];} else {log = [NSString stringWithFormat:@"switch room failed."];}[self showLog:log];break;}}}
-(int) StartRoomSharing:(NSString *)targetRoomID targetOpenID:(NSString *)targetOpenID authBuffer:(NSData*)authBuffer;-(int) StopRoomSharing;
Parameter | Type | Description |
targetRoomID | NSString * | ID of the room to connect mic |
targetOpenID | NSString * | The target OpenID to connect mic |
authBuffer | NSData* | Reserved flag. You just need to enter NULL. |
- (IBAction)shareRoom:(id)sender {if(_shareRoomSwitch.isOn){[[[ITMGContext GetInstance]GetRoom]StartRoomSharing:_shareRoomID.text targetOpenID:_shareOpenID.text authBuffer:NULL];}else{[[[ITMGContext GetInstance]GetRoom]StopRoomSharing];}}}
ITMG_MAIN_EVNET_TYPE_USER_UPDATE
, where the data contains event_id
and user_list
. The event message will be identified in the OnEvent
function.
Notifications for audio events are subject to a threshold, and a notification will be sent only when this threshold is exceeded. The notification "A member has stopped sending audio packets” will be sent if no audio packets are received in more than two seconds. This event only returns the member speaking event, but not the specific volume level. If you need the specific volume levels of members in the room, use the GetVolumeById
API.event_id | Description | Maintenance |
ITMG_EVENT_ID_USER_ENTER | A member enters the room | Member list |
ITMG_EVENT_ID_USER_EXIT | A member exits the room | Member list |
ITMG_EVENT_ID_USER_HAS_AUDIO | A member sends audio packets. This event can be used to determine whether a user is speaking and display the voiceprint effect. It can be called together with getRecvStreamLevel. | Chat member list |
ITMG_EVENT_ID_USER_NO_AUDIO | A member stops sending audio packets | Chat member list |
-(void)OnEvent:(ITMG_MAIN_EVENT_TYPE)eventType data:(NSDictionary *)data{ITMG_EVENT_ID_USER_UPDATE event_id=((NSNumber*)[data objectForKey:@"event_id"]).intValue;NSMutableArray* uses = [NSMutableArray arrayWithArray: [data objectForKey:@"user_list"]];NSLog(@"OnEvent:%lu,data:%@",(unsigned long)eventType,data);switch (eventType) {case ITMG_MAIN_EVNET_TYPE_USER_UPDATE:{// Process//Parse the parameter to get `event_id` and `user_list`switch (eventID){case ITMG_EVENT_ID_USER_ENTER:// A member enters the roombreak;case ITMG_EVENT_ID_USER_EXIT:// A member exits the roombreak;case ITMG_EVENT_ID_USER_HAS_AUDIO:// A member sends audio packetsbreak;case ITMG_EVENT_ID_USER_NO_AUDIO:// A member stops sending audio packetsbreak;}break;}}}
Message | Data | Sample |
ITMG_MAIN_EVNET_TYPE_USER_UPDATE | event_id; user_list | {"event_id":0,"user_list":""} |
0
indicates the call is successful. Assume that users A, B, and C are all speaking using their mic in a room: ITMGContext GetAudioCtrl -(QAVResult)AddAudioBlackList:(NSString*)openID;
Parameter | Type | Description |
openId | NSString | ID to be blocked openid |
[[[ITMGContext GetInstance]GetAudioCtrl ] AddAudioBlackList[id]];
0
indicates the call is successful.-(QAVResult)RemoveAudioBlackList:(NSString*)openID;
Parameter | Type | Description |
openId | NSString | ID to be unblocked openid |
[[[ITMGContext GetInstance]GetAudioCtrl ] RemoveAudioBlackList[openId]];
EnableMic
and EnableSpeaker
APIs, which is equivalent to calling the EnableAudioCaptureDevice/EnableAudioSend
and EnableAudioPlayDevice/EnableAudioRecv
APIs.EnableAudioCaptureDevice(true)
and EnableAudioPlayDevice(true)
once after room entry, and call EnableAudioSend/Recv
to send/receive audio streams when Enable/Disable Mic is clicked.EnableAudioCaptureDevice
and EnableAudioPlayDevice
.pause
API to pause the audio engine and call the resume
API to resume the audio engine.API | Description |
EnableMic | Enables/disables mic |
GetMicState | Gets mic status |
EnableAudioCaptureDevice | Enables/disables capturing device |
IsAudioCaptureDeviceEnabled | Gets capturing device status |
EnableAudioSend | Enables/disables audio upstreaming |
IsAudioSendEnabled | Gets audio upstreaming status |
GetMicLevel | Gets real-time mic volume |
GetSendStreamLevel | Gets real-time audio upstreaming volume |
SetMicVolume | Sets mic volume |
GetMicVolume | Gets mic volume |
EnableSpeaker | Enables/disables speaker |
GetSpeakerState | Gets speaker status |
EnableAudioPlayDevice | Enables/disables playback device |
IsAudioPlayDeviceEnabled | Gets playback device status |
EnableAudioRecv | Enables/disables audio downstreaming |
IsAudioRecvEnabled | Gets audio downstreaming status |
GetSpeakerLevel | Gets real-time speaker volume |
GetRecvStreamLevel | Gets real-time downstreaming audio levels of other members in room |
SetSpeakerVolume | Sets speaker volume |
GetSpeakerVolume | Gets speaker volume |
EnableLoopBack | Enables/disables in-ear monitoring |
-(QAVResult)EnableMic:(BOOL)enable;
Parameter | Type | Description |
isEnabled | boolean | To enable the mic, set this parameter to YES ; otherwise, set it to NO . |
// Enable mic[[[ITMGContext GetInstance] GetAudioCtrl] EnableMic:YES];
-(int)GetMicState;
[[[ITMGContext GetInstance] GetAudioCtrl] GetMicState];
-(QAVResult)EnableAudioCaptureDevice:(BOOL)enabled;
Parameter | Type | Description |
enabled | BOOL | To enable the capturing device, set this parameter to YES , otherwise set it to NO . |
// Enable capturing device[[[ITMGContext GetInstance]GetAudioCtrl ]EnableAudioCaptureDevice:enabled];
-(BOOL)IsAudioCaptureDeviceEnabled;
BOOL IsAudioCaptureDevice = [[[ITMGContext GetInstance] GetAudioCtrl] IsAudioCaptureDeviceEnabled];
EnableAudioCaptureDevice
API.-(QAVResult)EnableAudioSend:(BOOL)enable;
Parameter | Type | Description |
enable | BOOL | To enable audio upstreaming, set this parameter to YES ; otherwise, set it to NO . |
[[[ITMGContext GetInstance]GetAudioCtrl ]EnableAudioSend:enabled];
-(BOOL)IsAudioSendEnabled;
BOOL IsAudioSend = [[[ITMGContext GetInstance] GetAudioCtrl] IsAudioSendEnabled];
-(int)GetMicLevel;
[[[ITMGContext GetInstance] GetAudioCtrl] GetMicLevel];
-(int)GetSendStreamLevel();
[[[ITMGContext GetInstance] GetAudioCtrl] GetSendStreamLevel];
volume
, which is equivalent to attenuating or gaining the captured sound. 0 indicates that the audio is mute, while 100 indicates that the volume remains unchanged. The default value is 100.-(QAVResult)SetMicVolume:(int) volume;
Parameter | Type | Description |
volume | int | Sets volume. Value range: 0-200 |
[[[ITMGContext GetInstance] GetAudioCtrl] SetMicVolume:100];
-(int) GetMicVolume;
[[[ITMGContext GetInstance] GetAudioCtrl] GetMicVolume];
-(void)EnableSpeaker:(BOOL)enable;
Parameter | Type | Description |
isEnabled | boolean | To disable the speaker, set this parameter to NO , otherwise set it to YES . |
// Enable the speaker[[[ITMGContext GetInstance] GetAudioCtrl] EnableSpeaker:YES];
-(int)GetSpeakerState;
[[[ITMGContext GetInstance] GetAudioCtrl] GetSpeakerState];
-(QAVResult)EnableAudioPlayDevice:(BOOL)enabled;
Parameter | Type | Description |
enabled | BOOL | To disable a playback device, set this parameter to NO , otherwise set it to YES . |
// Enable the playback device[[[ITMGContext GetInstance]GetAudioCtrl ]EnableAudioPlayDevice:enabled];
-(BOOL)IsAudioPlayDeviceEnabled;
BOOL IsAudioPlayDevice = [[[ITMGContext GetInstance] GetAudioCtrl] IsAudioPlayDeviceEnabled];
EnableAudioPlayDevice
API.-(QAVResult)EnableAudioRecv:(BOOL)enabled;
Parameter | Type | Description |
enabled | BOOL | To enable audio downstreaming, set this parameter to YES ; otherwise, set it to NO . |
[[[ITMGContext GetInstance]GetAudioCtrl ]EnableAudioRecv:enabled];
-(BOOL)IsAudioRecvEnabled;
BOOL IsAudioRecv = [[[ITMGContext GetInstance] GetAudioCtrl] IsAudioRecvEnabled];
-(int)GetSpeakerLevel;
[[[ITMGContext GetInstance] GetAudioCtrl] GetSpeakerLevel];
-(int)GetRecvStreamLevel:(NSString*) openID;
Parameter | Type | Description |
openID | NSString | openId of another member in the room |
[[[ITMGContext GetInstance] GetAudioCtrl] GetRecvStreamLevel:(NSString*) openId
-(int) SetSpeakerVolumeByOpenID:(NSString *)openId volume:(int)volume;
Parameter | Type | Description |
openId | String * | OpenID that needs to adjust the volume |
volume | int | Range: [0-200]; Default: 100 |
-(int) GetSpeakerVolumeByOpenID:(NSString *)openId;
-(QAVResult)SetSpeakerVolume:(int)vol;
Parameter | Type | Description |
vol | int | Sets volume. Value range: 0-200 |
[[[ITMGContext GetInstance] GetAudioCtrl] SetSpeakerVolume:100];
SetSpeakerVolume
API has not been called.
"Level" indicates the real-time volume, and "Volume" the speaker volume. The final volume = Level * Volume%. For example, if the "Level" is 100 and "Volume" is 60, the final volume is "60".-(int)GetSpeakerVolume;
[[[ITMGContext GetInstance] GetAudioCtrl] GetSpeakerVolume];
EnableLoopBack+EnableSpeaker
before you can hear your own voice.-(QAVResult)EnableLoopBack:(BOOL)enable;
Parameter | Type | Description |
enable | boolean | Specifies whether to enable in-ear monitoring. |
[[[ITMGContext GetInstance] GetAudioCtrl] EnableLoopBack:YES];
ITMG_MAIN_EVENT_TYPE_CHANGE_ROOM_TYPE
. The audio type of the room is determined by the first user to enter the room. After that, if a member in the room changes the room type, it will take effect for all members there.-(int)ChangeRoomType:(int)nRoomType;
Parameter | Type | Description |
nRoomType | int | Target room type to be switched to. For room audio types, please see the EnterRoom API. |
[[[ITMGContext GetInstance]GetRoom ]ChangeRoomType:_roomType];
EnterRoom
API.-(int)GetRoomType;
[[[ITMGContext GetInstance]GetRoom ]GetRoomType];
ITMG_MAIN_EVENT_TYPE_CHANGE_ROOM_TYPE
will be returned in the callback. The returned parameters include result
, error_info
, and new_room_type
. The new_room_type
represents the following information. The event message will be identified in the OnEvent
function.Event Subtype | Parameter | Description |
ITMG_ROOM_CHANGE_EVENT_ENTERROOM | 1 | Indicates that the existing audio type is inconsistent with and changed to that of the entered room. |
ITMG_ROOM_CHANGE_EVENT_START | 2 | Indicates that a user is already in the room and the audio type starts changing (e.g., calling the ChangeRoomType API to change the audio type). |
ITMG_ROOM_CHANGE_EVENT_COMPLETE | 3 | Indicates that a user is already in the room and the audio type has been changed. |
ITMG_ROOM_CHANGE_EVENT_REQUEST | 4 | Indicates that a room member calls the ChangeRoomType API to request a change of room audio type. |
-(void)OnEvent:(ITMG_MAIN_EVENT_TYPE)eventType data:(NSDictionary *)data{NSLog(@"OnEvent:%lu,data:%@",(unsigned long)eventType,data);switch (eventType) {case ITMG_MAIN_EVENT_TYPE_CHANGE_ROOM_TYPE:NSLog(@"ITMG_MAIN_EVENT_TYPE_CHANGE_ROOM_TYPE:%@ ",data);int result = ((NSNumber*)[data objectForKey:@"result"]).intValue;int newRoomType = ((NSNumber*) [data objectForKey:@"new_room_type"]).intValue;int subEventType = ((NSNumber*) [data objectForKey:@"sub_event_type"]).intValue;}}
Message | Data | Sample |
ITMG_MAIN_EVENT_TYPE_CHANGE_ROOM_TYPE | result;error_info;new_room_type;subEventType | {"error_info":"","new_room_type":0,"subEventType":0,"result":0} |
ITMG_MAIN_EVENT_TYPE_CHANGE_ROOM_QUALITY
. The returned parameters include weight
, loss
, and delay
, which represent the following information.Parameter | Type | Description |
weight | int | Value range: 1-50. 50 indicates excellent sound quality, 1 indicates very poor (barely usable) sound quality, and 0 represents an initial meaningless value. Generally, if the value is below 30, you can remind users that the network is poor and recommend them to switch the network. |
loss | double | Upstream packet loss rate |
delay | int | Voice chat delay in ms |
-(NSString*)GetSDKVersion;
[[ITMGContext GetInstance] GetSDKVersion];
-(ITMG_RECORD_PERMISSION)CheckMicPermission;
Parameter | Value | Description |
ITMG_PERMISSION_GRANTED | 0 | Mic permission is granted. |
ITMG_PERMISSION_Denied | 1 | Mic is disabled. |
ITMG_PERMISSION_NotDetermined | 2 | No authorization box has been popped up to request the permission. |
ITMG_PERMISSION_ERROR | 3 | An error occurred while calling the API. |
[[ITMGContext GetInstance] CheckMicPermission];
-(void)SetLogLevel:(ITMG_LOG_LEVEL)levelWrite (ITMG_LOG_LEVEL)levelPrint;
Parameter | Type | Description |
levelWrite | ITMG_LOG_LEVEL | Sets the level of logs to be written. TMG_LOG_LEVEL_NONE indicates not to write. Default value: TMG_LOG_LEVEL_INFO |
levelPrint | ITMG_LOG_LEVEL | Sets the level of logs to be printed. TMG_LOG_LEVEL_NONE indicates not to print. Default value: TMG_LOG_LEVEL_ERROR |
ITMG_LOG_LEVEL | Description |
TMG_LOG_LEVEL_NONE | Does not print logs |
TMG_LOG_LEVEL_ERROR | Prints error logs (default) |
TMG_LOG_LEVEL_INFO | Prints info logs |
TMG_LOG_LEVEL_DEBUG | Prints debug logs |
TMG_LOG_LEVEL_VERBOSE | Prints verbose logs |
[[ITMGContext GetInstance] SetLogLevel:TMG_LOG_LEVEL_INFO TMG_LOG_LEVEL_INFO];
-(void)SetLogPath:(NSString*)logDir;
Parameter | Type | Description |
logDir | NSString | Path |
[[ITMGContext GetInstance] SetLogPath:Path];
-(NSString*)GetQualityTips;
[[[ITMGContext GetInstance]GetRoom ] GetQualityTips];
Message | Description |
ITMG_MAIN_EVENT_TYPE_ENTER_ROOM | Indicates that a member enters an audio room. |
ITMG_MAIN_EVENT_TYPE_EXIT_ROOM | Indicates that a member exits an audio room. |
ITMG_MAIN_EVENT_TYPE_ROOM_DISCONNECT | Indicates that a room is disconnected for network or other reasons. |
ITMG_MAIN_EVENT_TYPE_CHANGE_ROOM_TYPE | Indicates a room type change event. |
ITMG_MAIN_EVNET_TYPE_USER_UPDATE | Indicates that the room members are updated. |
ITMG_MAIN_EVENT_TYPE_CHANGE_ROOM_QUALITY | Indicates the room quality information. |
Message | Data | Sample |
ITMG_MAIN_EVENT_TYPE_ENTER_ROOM | result; error_info | {"error_info":"","result":0} |
ITMG_MAIN_EVENT_TYPE_EXIT_ROOM | result; error_info | {"error_info":"","result":0} |
ITMG_MAIN_EVENT_TYPE_ROOM_DISCONNECT | result; error_info | {"error_info":"waiting timeout, please check your network","result":0} |
ITMG_MAIN_EVENT_TYPE_CHANGE_ROOM_TYPE | result; error_info; sub_event_type; new_room_type | {"error_info":"","new_room_type":0,"result":0} |
ITMG_MAIN_EVENT_TYPE_SPEAKER_NEW_DEVICE | result; error_info | {"deviceID":"{0.0.0.00000000}.{a4f1e8be-49fa-43e2-b8cf-dd00542b47ae}","deviceName":"Speaker (Realtek High Definition Audio)","error_info":"","isNewDevice":true,"isUsedDevice":false,"result":0} |
ITMG_MAIN_EVENT_TYPE_SPEAKER_LOST_DEVICE | result; error_info | {"deviceID":"{0.0.0.00000000}.{a4f1e8be-49fa-43e2-b8cf-dd00542b47ae}","deviceName":"Speaker (Realtek High Definition Audio)","error_info":"","isNewDevice":false,"isUsedDevice":false,"result":0} |
ITMG_MAIN_EVENT_TYPE_MIC_NEW_DEVICE | result; error_info | {"deviceID":"{0.0.1.00000000}.{5fdf1a5b-f42d-4ab2-890a-7e454093f229}","deviceName":"Mic (Realtek High Definition Audio)","error_info":"","isNewDevice":true,"isUsedDevice":true,"result":0} |
ITMG_MAIN_EVENT_TYPE_MIC_LOST_DEVICE | result; error_info | {"deviceID":"{0.0.1.00000000}.{5fdf1a5b-f42d-4ab2-890a-7e454093f229}","deviceName":"Mic (Realtek High Definition Audio)","error_info":"","isNewDevice":false,"isUsedDevice":true,"result":0} |
ITMG_MAIN_EVNET_TYPE_USER_UPDATE | user_list; event_id | {"event_id":1,"user_list":["0"]} |
ITMG_MAIN_EVENT_TYPE_NUMBER_OF_USERS_UPDATE | AllUser; AccUser; ProxyUser | {"AllUser":3,"AccUser":2,"ProxyUser":1} |
ITMG_MAIN_EVENT_TYPE_NUMBER_OF_AUDIOSTREAMS_UPDATE | AudioStreams | {"AudioStreams":3} |
ITMG_MAIN_EVENT_TYPE_CHANGE_ROOM_QUALITY | weight; loss; delay | {"weight":5,"loss":0.1,"delay":1} |
この記事はお役に立ちましたか?