Livestreaming

Livestream

START_STREAMING (streamPayload: TLivestreamData)

Starts live-streaming the web app on the given sourceUrl

const LivstreamData:TLivestreamData = {
	sourceUrl: "https://yourapp.com",
	data: {
		title: "My Livestream",
		desc: "This is my first Livestream"
	}
}
 
huddleClient.startStreaming(LivstreamData);

STOP_STREAMING

Stops the live-stream on the web app

huddleClient.stopStreaming();

Sample Code

<script>
	const LivstreamData:TLivestreamData = {
		sourceUrl: "https://yourapp.com",
		data: {
			title: "My Livestream",
			desc: "This is my first Livestream"
		}
	}
 
	huddleClient.initialize("YOUR_PROJECT_ID") 
	document.getElementById('startStreaming').onclick = () => {
		huddleClient.startStreaming(LivstreamData);
	};
 
	document.getElementById('stopStreaming').onclick = () => {
		huddleClient.stopStreaming();
	};
</script>
 
Audio/Video Infrastructure designed for the developers to empower them ship simple yet powerful Audio/Video Apps.
support
company
Copyright © 2022 Graphene 01, Inc. All Rights Reserved.