Browser demos
Webcaster Demos Overview
Below you can find links to our Webcaster demo applications. These samples are designed to showcase the broad capabilities of our Webcaster technology, providing you with practical experience and insight into its features. Explore our sample code to see how nanoStream Webcaster can enhance your webcasting projects.
To fully utilize these samples, please ensure you have a bintu account.
Create a stream in the nanoStream Cloud Dashboard, then create a stream and append the stream name to the sample pages' URLs using the streamName
URL parameter.
Please Note Before starting:
To begin, please sign in using your nanoStream Cloud/Bintu account credentials.
If you have not created an account yet, you can sign up or reach out to our dedicated sales team via the contact form or by sending an email tosales@nanocosmos.de
.
Currently, the nanoStream Webcaster does not support live transcoding.
Webcaster Samples
Find browser demos and examples how to implement the webcaster on your webpage.
Dashboard Integration
Use the Webcaster directly in the Cloud Dashboard.
Webcaster Samples
Append your stream name to one of the following samples:
- Main Sample: https://nanocosmos.github.io/webcaster/samples/index.html?streamName=[stream-name]
- Minimal Sample: https://nanocosmos.github.io/webcaster/samples/minimal/index.html?streamName=[stream-name]
- Screen Share: https://nanocosmos.github.io/webcaster/samples/screenshare/index.html?streamName=[stream-name]
Usage
The main sample
showcases the lifecyle of the Webcaster, you can perform the following actions there:
- append your bintu stream name to one of the URLs
- configure stream properties in the editor
WebcasterApiV6.Config
- click
Create New Instance
to create a new Webcaster instance with your configuration - click
startPreview
to preview the MediaStream that will be streamed to our CDN - click
startBroadcast
to start the ingest - click
stopBroadcast
to stop the ingest - click
recover
to restart the webcast with the same configuration - click
dispose
to destroy the Webcaster instance - click
setMuted
to mute the ingest
Configuration
All samples can be configured by the following URL query parameters:
- streamName
- ingestUrl
- serverUrl
- maxAudioBitrateBps
- transcodeAudioBitrateBps
- maxVideoBitrateBps
- maxEncodingFramerate
For explanation of the configuration options, please see the definition of the Config interface.
Main Sample
The main sample can be pre-configured through the webcasterconfig
URL query parameter.
Please see this example link:
- In this example
webcasterconfig
encodes the following payload:{"inputCfg":{"mediaStreamCfg":{"maxFramerate":30,"resolution":[640,480],"audioConstraints":{"autoGainControl":true,"channelCount":2,"echoCancellation":true,"noiseSuppression":true}},"broadcastCfg":{"transcodeAudioBitrateBps":128000,"maxAudioBitrateBps":128000,"maxVideoBitrateBps":500000,"maxEncodingFramerate":30}},"previewVideoElId":"preview","streamName":"[STREAM-NAME]","serverUrl":"https://bintu-webrtc.nanocosmos.de/p/webrtc"}
Configuration can be changed in the JSON editor under the WebcasterApiV6.Config section.
Changes to this config will be reflected into the location bar of the browser.
This means:
- you can change the settings, like resolution, bitrates, streamName etc
- you can then:
- reload the window and changes will be persisted
- or share your config by copying the URL from the location bar
Playback
You can play back your Webcaster ingests with our H5Live Player.
The main sample from preceding includes a side-by-side player for your convenience when testing. To create a shareable player link, append the stream name to our player demo URL:
- Player URL: https://demo.nanocosmos.de/nanoplayer/release/nanoplayer.html?entry.rtmp.streamname=[stream-name]
Click here for more information on how to embed the H5Live Player on your own webpage.
Also note that for secure playback, you need to create your own playback tokens. Find information about secure playback tokens here.