Public
Authored by Maxime Pedrotti

Livestream embed sample

This snippet shows how a live video stream sent through LRZ's video streaming service could be published and/or embedded on a web page. This example shows a sample embed with VideoJS, other players may have different codes or prerequisites.

Prerequisites

In order to play a live stream, you need to enter the following settings in the HTML document:

  • stream application
    -> information given by LRZ video streaming team
  • stream key/name
    -> information given by LRZ video streaming team
  • poster image
    -> you may want to place an image file next to the document to show something when the stream is not playing

All external resources are addressed via HTTPS, your page needs to be served via HTTPS as well.

After making the changes, place the HTML and the respective player subfolder/script on a web server, and open the page in a web browser.

URL formats

LRZ's video streaming service delivers (at least) HLS and DASH streams. The usual format is:

Protocol URL
HLS https://stream.lrz.de/{APPLICATION}/{STREAM_KEY}/playlist.m3u8
DASH https://stream.lrz.de/{APPLICATION}/{STREAM_KEY}/manifest.mpd
Edited
livestream_videojs.html 1.37 KB
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment