Streaming Platforms
Users can bind their Beam account to their personal third party accounts, unlocking streaming capabilities to their favourite platforms.
Linking an account is done via the Beam Portal's Connections section.
Once this is done, the Beam Manager will report all connected platforms, as well as status information for each of the platforms.
Retrieving Platform Information
The Beam Manager
holds the StreamPlatforms
enumeration. This is available as soon as the user logs in, but is refreshed and updated as soon as the user starts streaming.
When the user has not yet started streaming, you can change platform settings by calling the ChangePlatformAutoStream
function. You can pass a function you want to fire once the request has been completed (so you can update any relating UI).
When the user has started streaming, you must call the ChangePlatformStream
function instead. This will not change the user's auto stream settings, but will allow them to change whether they are streaming to a specific platform or not. The OnStreamPlatformStateChanged
event from Beam Unity Events
will be fired when this happens.
There is a noticeable difference between how these operate as the request during streaming happens at a stream level, while the request when not streaming happens at an account level.
If a user has their platform set to Auto-stream then the platform will automatically start streaming when they do.
It is advised to check the IsStreaming
bool of the StreamPlatform
objects when a stream starts, or before trying to start/stop streaming to said platform.
The same applies when trying to change the auto-stream value, but by checking the AutoStream
bool instead.