How to set up live streaming in VNIS Stream?

If you haven’t set up any live stream channel yet, and you like to set up a live stream from scratch, then you can follow this guide.

By using VNIS Video Stream for your live streaming, you can take advantage of its in-stream CDN switching and/or P2P video delivery capabilities. These capabilities can significantly enhance the performance and quality of experience (QoE) of your video streaming, giving your audience a seamless viewing experience.

The figure below shows the process flow.

To do this, navigate to ‘ Stream’ > ‘Live Streams’, then click the ‘Create live stream’ button.

You will be directed to another page where you can set up the following:

  • Stream Details,
  • CDN Configuration,
  • P2P Delivery, and
  • Domain Allowlist

Stream Details

The Stream details includes: 

  • Stream source name: a unique name for the stream source.
  • Protocol: specify the video format/container of the video stream. For this scenario, choose RTMP as the protocol.
  • Encoding frame interval: specifies the length of the output fragments. This can be set from 0.5 to 20 seconds.
  • Rewind window length: specifies the allowable duration to rewind the live stream. For example, if the value is set to 5 min, then the playback can be rewinded back to 5 minutes before the present time of the live stream. This can be set from 1 minute to 6 hours.
  • RTMP server location: sets the location of the RTMP server, which serve as the input and output channel for the live stream. Here are the available locations:
    • East Asia
    • East US
    • Korea Central
    • Southeast Asia
    • West Europe 

CDN Configuration

The system will recommend you to install 3 Basic CDNs by default, namely Cloudfront, StackPath, and GMA. You may also install additional CDNs depending on your business strategy.

You can add up to a maximum of 10 CDNs per stream source.

If you plan to install China RIM CDN, or China CDN you need to assign a site for the CDN.

If you plan to install Custom CDN, you need to set up CDN hostname for the CDN. Check this article to learn how to obtain the CDN hostname.

P2P Delivery

You can decide to enable P2P delivery or not. 

P2P allows users who are accessing the video to deliver video content to other users. Since, this feature reduces the usage of CDN infrastructure, it can reduce the cost of your video streaming services. In addition, P2P uses WebRTC protocol, which can protect the privacy of the stream source.

You can check this article to learn more about P2P delivery.

Domain Allowlist

You can enable the domain allowlist

Domain allowlist defines which domain/s or website/s are allowed to broadcast your video streams. 

You can use any domain or wildcard domain, and input up to a maximum of 10 domains. If this feature is disabled, your video stream can be broadcasted to any domains/websites. 

Finally, click the ‘ Create stream’ button, to finish the set up.

You may review the live stream configuration, and proceed to the next step which is setting up the software development kit (SDK) into your video streaming application.

The created stream will automatically create input and output channels through the RTMP server, and then transcode the incoming stream to RTMP format and the outgoing stream to LL HLS format. The outgoing stream will then push the content through the Multi CDN and/or P2P for delivery.

The created stream will be available in the Stream List section. 

 

If the stream name already exists, the name of the created stream will be renamed automatically, e.g. stream name will be renamed to “stream(1)” if “stream” already exists.

The Stream List has the following fields:

  • Stream name: This is the name of the stream.
  • Protocol: This is the streaming protocol, which also identifies the video format of the incoming stream. The value can be either HLS or RTMP.
  • Information: For RTMP, this corresponds to the location of RTMP server and its transcoder status. For HLS, this corresponds to the hostname of the origin server.
  • Created time: This is the date and time when your stream was successfully created.
  • Quick actions:
    • Analytics: This will present the Video Stream Analytics of a stream
    • Edit: This will redirect users to the video detail info page of a video 
    • Code Snippet: This provides the code snippet that you can copy into your video application. Read the article about setting up the software development kit (SDK) to learn more
    • Delete: This will delete the video.