Skip to main content

The Meta-Player

To view the streams MistServer has so diligently made available for you, you may use our Meta-Player. The Meta-Player is a bit of Javascript, that chooses how to show the stream based on the device it's being accessed from. The goal is to always show a working stream with a similar interface.

The MistServer Management Interface has an interactive page (See embed settings .) that can generate the required bit of code that you can place on your website to build the Meta-Player using the most common settings.

If you'd like to write the Javascript that initiates the player yourself, follow these steps:

  1. Load the meta-player's code from your MistServer's HTTP output
    (default location: http://example.com:8080/player.js)

  2. Call the mistPlay method using mistPlay(streamName,options), where streamName is a string with the name of the stream that you want to show, and options is an object containing the desired settings, as explained in the next chapter.
    For example:

    mistPlay("live",{
    target: document.getElementById("live"),
    autoplay: false
    });