Browser demos
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 the samples below, sign in to the nanoStream Dashboard with your existing nanoStream account.
If you donβt have an account yet, you can sign up, or get in touch with our sales team via nanocosmos.de/contact or by email at sales(at)nanocosmos.net.
Need help accessing an existing organization or unsure how to proceed?
π Check the Authentication section for step-by-step guidance on creating an account, logging in, and requesting access from your system administrator.
- Login to the nanoStream Dashboard
- Create a stream
- Append the stream name to the sample pages' URLs using the
streamName
URL parameter.
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.
Currently, the nanoStream Webcaster does not support live transcoding.
Webcaster Samplesβ
Append your stream name to one of the following samples:
- Main Sample: https://nanocosmos.github.io/webcaster/samples/index.html?streamName=YOUR-STREAM-NAME
- Minimal Sample: https://nanocosmos.github.io/webcaster/samples/minimal/index.html?streamName=YOUR-STREAM-NAME
- Screen Share: https://nanocosmos.github.io/webcaster/samples/screenshare/index.html?streamName=YOUR-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=YOUR-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.