VoiceChat - stingray.VoiceChat namespace reference - Stingray Lua API Reference

stingray.VoiceChat namespace reference

Description

The interface to access voice chat functionality on Xbox One.

Functions

Parameters

user_id :

integer

Id of a local user.

channel :

integer

Index of the chat channel. Should be between 0 and 255.

Returns
This function does not return any values.

Use latest_added_users() to track when finished.

Parameters
This function does not accept any parameters.
Returns

chat_user[]

List of users in chat

The [] notation indicates that this type is an array: a table in which the keys of the members are sequential integers, and the value of each element is an instance of the type shown.
Parameters
This function does not accept any parameters.
Returns

boolean

Returns true if the game has mic focus.

Parameters
This function does not accept any parameters.
Returns

boolean

Returns true if the voice chat is waiting for asynchronous jobs to finish.

Parameters
This function does not accept any parameters.
Returns
This function does not return any values.
Parameters
This function does not accept any parameters.
Returns

chat_user_channel*

List of xbox_user_id of users and the channel they have been added to.

The * notation indicates that there may be zero or more instances of the specified type.
Parameters
This function does not accept any parameters.
Returns

chat_user_channel*

List of xbox_user_id of users and the channel they have been removed from.

The * notation indicates that there may be zero or more instances of the specified type.
Parameters
This function does not accept any parameters.
Returns
This function does not return any values.
Parameters

xbox_user_id :

string

User to mute

Returns
This function does not return any values.
Parameters

user_id :

integer

Id of a local user.

channel :

integer

Index of the chat channel. Should be between 0 and 255.

Returns
This function does not return any values.

Use latest_removed_users() to track when finished.

Parameters

xbox_user_id :

string

Xbox User Id of a local user.

channel :

integer

Index of the chat channel. Should be between 0 and 255.

Returns
This function does not return any values.

Note that only local users can be removed from the chat with this function.

Use latest_removed_users() to track when finished.

Parameters
This function does not accept any parameters.
Returns
This function does not return any values.

Ensure that there are no running jobs by calling VoiceChat.has_running_jobs() before shutting down.

Parameters
This function does not accept any parameters.
Returns
This function does not return any values.
Parameters

xbox_user_id :

string

User to unmute

Returns
This function does not return any values.