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 Streaming Package will report all connected platforms, as well as status information for each of the platforms.
Retrieving Platform Information
The Beam Streaming Manager
holds the SessionState
object whenever you start streaming. This SessionState
object contains an array of StreamPlatform
objects, which provide all the information you need.
To start streaming to a platform, all you need to do is pass the desired StreamPlatform
object to the StartSocialStream
function on the Beam Streaming Manager
. This will update the StreamPlatform
object with the status of the stream and also fire the OnStreamPlatformStateChanged
event from Beam Unity Events
.
Stopping a stream is just as simple, just send the same StreamPlatform
object to the StopSocialStream
function.
If a user has their platform set to Auto-stream then this will automatically happen when they initially start streaming.
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.