Getting Started

Getting Started

The player consists of a single JS file along with a CSS file. Both have to be included on the website where the player is going to be used.

<link rel="stylesheet" href="https://mfstatic.com/css/mediaflowplayer.min.css" />
<div id="myplayer"></div><script src="https://mfstatic.com/js/mediaflowplayer.min.js" crossorigin="anonymous"></script><script>const player = new MFPlayer('#myplayer', '28AFLTPJOS');</script>

JavaScript API

const player = new MFPlayer(_element_, _mediaid_, [_options_]);

Initializes and loads a Mediaflow video with a given media ID. The player is added to the given DOM element (can be specified as either a DOM element or a string, e.g. '#playerwrapper').

player.loadNew(_mediaid_);

Loads a new Mediaflow video with a given media ID.

Last updated