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:
-
Load the meta-player's code from your MistServer's HTTP output
(default location:http://example.com:8080/player.js
) -
Call the
mistPlay
method usingmistPlay(streamName,options)
, wherestreamName
is a string with the name of the stream that you want to show, andoptions
is an object containing the desired settings, as explained in the next chapter.
For example:mistPlay("live",{
target: document.getElementById("live"),
autoplay: false
});
📄️ Meta-Player options
Options for the meta-player
📄️ Meta-Player API methods
API methods for the meta-player
📄️ Meta-Player MistVideoObject
The MistVideoObject for the meta-player
📄️ Meta-Player Skinning
Skining the meta-player