PlayFab Party Overview
PlayFab Party simplifies adding low-latency chat and data communication to your game in a way that's flexible, inclusive, and secured. Party is ideal for multiplayer implementations where a cloud-hosted dedicated server is not desired (sometimes called "peer to peer or P2P games"). Party is also well-suited to power voice and text communication for social experiences your app may provide (e.g. in-game squads, or post-game lobbies), even if you're using a cloud server as the game host.
Party uses Azure Cognitive Services to transcribe player voice chat and synthesize text as speech. This functionality has several uses but was primarily designed as an accessibility aide. Typical usage of Party voice chat is billed on a per-minute basis, and up to 10% of those voice minutes can leverage transcription and synthesis for free. We recommend tying activation of this capability to an ease-of-access player setting. Party usage associated with the Xbox Live ecosystem is discounted. To learn more about this discount and how Party is priced please read the Party billing page.
Party can not only transcribe player chat, but also translate chat in real time. In anonymous matchmaking and international competitive games, these transcription and translation capabilities can make for a more engaging multiplayer experience.
A key goal of PlayFab Party (and our other multiplayer services), is to facilitate interoperable multiplayer infrastructure and cross-network gameplay. We encourage customers to verify that their multiplayer experiences comply with relevant platform policies for multiplayer and cross-network player activity.
- Encryption and authentication. Party authenticates player devices using their PlayFab player identity and encrypts data with a DTLS-like protocol.
- Device to device datagram networking. At the core of Party are relays that are hosted globally across the Azure cloud. Player devices use these relays to create Party networks and send game data to one another. The Party networking system includes configurable transport features such as automatic retries when encountering packet loss.
- Voice and text chat. Player devices can bind audio devices to Party networks to accomplish real-time voice chat. Text chat messages between players are also supported.
- Speech-to-text and voice synthesis. Party can transcribe player voice chat and synthesize utterances for text message. This functionality has several uses but was primarily designed as an accessibility aide.
- Real-time translation. Party can understand and synthesize real-time translations of player voice and text chat.
- Learn about PlayFab Party objects and their relationships
- Learn about PlayFab Party invitations and the security model
- Learn how PlayFab Party interacts with your discovery flows
- Find out more about PlayFab Party chat communication
For details on parameters, return values, and behaviors when invoking the libraries, see the PlayFab Party API reference documentation topic.
To read best practices for user experiences and Microsoft's recommendations around chat and data communication user interfaces, see the PlayFab Party UX guidelines topic.
|Windows 10, Windows 8.1||C++ SDK, Xbox Live Helper Library||BumbleRumble|
|Xbox One (XDK)||C++ SDK, Xbox Live Helper Library||BumbleRumble|
|Windows 7||C++ SDK, Xbox Live Helper Library||Pending|
|iOS||C++ SDK, Unity||Chat App|
|Android||C++ SDK, Unity||Chat App|
|Nintendo Switch||C++ SDK||Chat App|
|Sony PlayStation 4||C++ SDK||Chat App|
|Sony PlayStation 5||C++ SDK||Chat App|
|Google Stadia||C++ SDK||Chat App|
Relationship to the game and other components
PlayFab Party provides a data transport, and games will typically need an external discovery or signaling mechanism to share initial connectivity information. For example, many social platforms provide invitation systems that can include connection information and be used for signaling. You can also leverage other PlayFab multiplayer features such as Matchmaking for like-minded players to find each other. Or, you can have players rendezvous using your own custom technology.
The game is responsible for determining if real-time chat or data communication between given players should be allowed based on its privacy and privilege implementation (e.g., restricted accounts that can only chat with players who are friends on a particular social platform, or behavioral bans) and gameplay reasons like same or opposing teams.
PlayFab Party then enforces the described policies efficiently for connectivity, voice chat, and text chat together or independently. Helper modules are available for some social platforms like Microsoft Xbox Live that take care of common tasks needed to integrate their privilege ecosystems with PlayFab Party.
All PlayFab multiplayer features, including Party, are designed to let you build interoperable multiplayer experiences across devices and platforms. When implementing cross-play, you should leverage best industry design practices so that the game's multiplayer experiences don't accidentally put certain device form factors at a disadvantage relative to others, and that they comply with all applicable platform policies for cross-platform multiplayer activity.
To synchronize its particular game state, the game is responsible for deciding when (or if) to submit data messages to PlayFab Party and what the payloads mean.
The PlayFab Party transport ensures that submitted messages are delivered securely and efficiently via features like optionally guaranteeing delivery despite Internet packet loss, and automatically fragmenting and reassembling messages larger than the environment supports. PlayFab Party also provides ongoing connection quality feedback such as observed latency. The game can choose how to interpret the feedback and tune, predict, or recover in the way best suited to its own design and tolerances.
Using data transmission in PlayFab Party is entirely optional; some games use only chat features.
PlayFab Party supports a wide variety of communication topologies. All chat or data messages are conceptually from one peer device or user directly to others, however PlayFab Party automatically leverages a transparent cloud relay service to avoid common environmental and security problems with actually establishing direct connections peer-to-peer.
The game is not required to use that logical peer-to-peer communication within a collection of devices in a particular way. You might choose to have one device treated as an owner ("host"), or you might treat all peers as equals.
You can enable chat at any time or send data messages using any of the following patterns:
- unidirectionally from one-to-many
- constrained to "teams" or game-defined "channels"
- arbitrary symmetric or asymmetric subsets, or combinations of the above
Multiple local users on a single device, as well as connecting to more than one distinct group of players at a time are also supported.
While PlayFab Party is flexible regarding topology for exchanging data among inter-connected devices, its conceptually peer-to-peer orientation implies that the authoritative game state will be managed on one or more of the users' devices cooperatively.
Some multiplayer games have designs or modes that are not well-suited to this requirement, perhaps due to supporting device form factors with insufficient resources, or due to competitive cheating concerns, for example. If this applies to your game, you may wish to consider using PlayFab multiplayer servers to host custom dedicated game logic in a dynamically-scaling cloud environment in addition to using PlayFab Party for chat communication.
Direct peer-to-peer connectivity
For some platforms, PlayFab Party can be configured to use direct peer-to-peer connections for voice and game data transmission. For more information, see Using direct peer-to-peer connections.