In order to start streaming/broadcasting, launch OBS studio and go to: Settings > Stream > Select Custom from drop-down and enter the server and streamKey.Once the details have been entered, click OK and close the Settings Panel. Next, you can click on the “Start Streaming” button.
At the viewers’ end, from the message object, you can fetch the metadata by calling the getMetadata() method. Using this metadata, you can fetch the broadcast details.
JavaScript
Java
Kotlin
Swift
var metadata = message.getMetadata();if (metadata != null) { var injectedObject = metadata["@injected"]; if (injectedObject != null && injectedObject.hasOwnProperty("extensions")) { var extensionsObject = injectedObject["extensions"]; if ( extensionsObject != null && extensionsObject.hasOwnProperty("broadcast") ) { var broadcastObject = extensionsObject["broadcast"]; } }}