기술 자료

​
​

Development

User Acquisition

Monetization

산업 분야

Vivox Unreal SDK

Vivox Unreal SDK

이 페이지는 선택한 언어로 제공되지 않습니다.
Vivox
​
​
Vivox Unreal SDK
  • Overview
  • Get started
  • Release notes
  • Developer guide
    • Set up your project
    • Unity Authentication Service in Unreal
    • Create voice and text channels
    • Messaging
      • Send and receive group text messages
      • Directed text
      • Send data through text messages
      • Text chat developer guide
    • Audio management
    • Muting
    • In-game moderation
    • Android app development
    • iOS app development
    • Server-side recording
    • Speech-to-text audio transcription
    • Text-to-speech
    • Real-time recording
    • Transmission
    • Troubleshooting
  • Tutorials
  • Reference
  1. Vivox Unreal SDK documentation

Send data through text messages

Learn how to send structured data using text messages.
읽는 시간 2분
최근 업데이트: 8달 전

Vivox text messages can send additional, non-messaging data through two string variables:
  • Application stanza namespace
  • Application stanza body
The application stanza namespace carries Uniform Resource Identifier (URI) reference information that identifies an XML namespace. This URI identifies the kind of information you send in the application stanza body. For more information about how to format the URI, refer to the W3C documentation on XML Namespaces.
The application stanza body carries the data associated with the given application stanza namespace. If the data is text, it must be UTF-8 encoded. If binary, use base64 to encode with a maximum of 8k per message.
참고
This information is hidden from the player and is only accessible through the code.
You can hide messages if you need to keep them hidden from users. For example, you are using them only to send data with no visible message. One method to accomplish this is to label your application stanza namespace accordingly. For example, you can have an application stanza namespace named "data:hidden" or "message:omit". You can then check for all messages with the same application stanza namespace.
참고
Messages must contain data. You cannot send an empty message.
You can access the hidden data after it is received. You can access its application stanza body by grabbing the message from the function that receives it.

Unreal application stanza body

The following examples detail how to send hidden data through text messages and access hidden data from messages in the Vivox Unreal SDK.

Send hidden data in group messages

FString Message = playerInput; //Hello World!FString ApplicationStanzaNamespace = TEXT("team:color");FString ApplicationStanzaBody = TEXT("red");IChannelSession::FOnBeginSendTextCompletedDelegate SendChannelMessageCallback;SendChannelMessageCallback.BindLambda([this, channelId, Message](VivoxCoreError Error) { if (VxErrorSuccess == Error) { UE_LOG(LogVivoxGameInstance, Log, TEXT("Message sent to %s: %s \n"),*channelId.Name(), *Message); } return;});currentChannelSession.BeginSendText("", *Message, ApplicationStanzaNamespace, ApplicationStanzaBody, SendChannelMessageCallback);

Send hidden data in directed messages

FString Message = playerInput; //Hello World!FString ApplicationStanzaNamespace = TEXT("team:color");FString ApplicationStanzaBody = TEXT("red");ILoginSession::FOnBeginSendDirectedMessageCompletedDelegate SendDirectedMessageCallback;SendDirectedMessageCallback.BindLambda([this, accountName, message](VivoxCoreError error, const FString &request_id){ if (VxErrorSuccess != error) { UE_LOG(LogVivoxGameInstance, Error, TEXT("BeginSendDirectedMessage() returned %d:%s"), error, ANSI_TO_TCHAR(FVivoxCoreModule::ErrorToString(error))); } return;});currentLoginSession.BeginSendDirectedMessage(AccountId(VIVOX_VOICE_ISSUER, accountName, VIVOX_VOICE_DOMAIN), "", Message, ApplicationStanzaNamespace, ApplicationStanzaBody, SendDirectedMessageCallback);

Access hidden data from messages

if(textMessage.ApplicationStanzaNamespace == “team:color”){ if(textMessage.ApplicationStanzaBody == “red”) { //font becomes red } else if(textMessage.ApplicationStanzaBody == “blue”) { //font becomes blue } else { //font becomes grey }}

Related classes

  • BeginSendText()
  • BeginSendDirectedMessage()
  • ApplicationStanzaNamespace and ApplicationStanzaBody

Copyright © 2026 Unity Technologies
법률 정보개인정보 처리방침쿠키Documentation Terms of Use개인 정보 판매 또는 공유 금지개인정보 보호 선택(쿠키 설정)

'Unity', Unity 로고 및 기타 Unity 상표는 미국 및 기타 지역 내 Unity Technologies 또는 그 계열사의 상표 또는 등록상표입니다(자세한 내용은 여기에서 확인하세요). 기타 명칭 또는 브랜드는 해당 소유자의 상표입니다.

일부 페이지는 편의를 위해 기계 번역되었으며 부정확한 내용이 있을 수 있습니다. 정보가 상충되는 경우, 영어 버전을 우선으로 참조하세요.

  • 보고 있는 페이지
    • Unreal application stanza body

    • Send hidden data in group messages

    • Send hidden data in directed messages

    • Access hidden data from messages

    • Related classes


이 페이지의 문제 보고