음성채팅에 mid 대신 alias로 로그인
This commit is contained in:
@ -88,7 +88,7 @@ func (gv *eosauth) joinVoiceChat(data JoinVoiceChatRequst) map[string]any {
|
||||
voiceendpoint := fmt.Sprintf("https://api.epicgames.dev/rtc/v1/%s/room/%s", config.EosDeploymentId, data.Gid)
|
||||
participants := eosRoomParticipants{
|
||||
Participants: []eosRoomParticipantRequests{
|
||||
{Puid: data.Mid},
|
||||
{Puid: data.Alias},
|
||||
},
|
||||
}
|
||||
|
||||
@ -114,7 +114,7 @@ func (gv *eosauth) joinVoiceChat(data JoinVoiceChatRequst) map[string]any {
|
||||
participant := par.(map[string]any)
|
||||
|
||||
channelCredentials := map[string]any{
|
||||
"override_userid": data.Mid,
|
||||
"override_userid": data.Alias,
|
||||
"client_base_url": result["clientBaseUrl"],
|
||||
"participant_token": participant["token"],
|
||||
}
|
||||
@ -125,7 +125,7 @@ func (gv *eosauth) joinVoiceChat(data JoinVoiceChatRequst) map[string]any {
|
||||
}
|
||||
|
||||
func (gv *eosauth) leaveVoiceChat(data LeaveVoiceChatRequst) {
|
||||
voiceendpoint := fmt.Sprintf("https://api.epicgames.dev/rtc/v1/%s/room/%s/participants/%s", config.EosDeploymentId, data.Gid, data.Mid)
|
||||
voiceendpoint := fmt.Sprintf("https://api.epicgames.dev/rtc/v1/%s/room/%s/participants/%s", config.EosDeploymentId, data.Gid, data.Alias)
|
||||
accessToken := gv.AccessToken
|
||||
|
||||
req, _ := http.NewRequest("DELETE", voiceendpoint, nil)
|
||||
|
||||
Reference in New Issue
Block a user