DiscordMediaSession
Events
Name
Description
OnServerUpdated
Fired whenever the client receives a new media server
Properties
Name
Description
Type
Client
A reference to the session's parent client
DiscordSocketClient
Server
The current server (or endpoint) the session is connected to
DiscordMediaServer
ReceivePackets
Sets whether to receive and parse incoming packets
bool
Guild
The guild relevant to the session (if there is one)
MinimalGuild?
Channel
The channel relevant to the session
MinimalChannel
State
The session's connection state
MediaConnectionState
Methods
Connect
Establishes a connection to the url given by Server.
Disconnect
Closes the connection with the server.
SetSSRC
Sets the client's Synchronization Sources by audioSsrc, where the one used for video is audioSsrc + 1 and audioSsrc + 2 for retransmition.
Parameters
Name
Description
Type
audioSsrc
The common number used to change the Synchronization Sources
uint
Last updated