VideoFX is a universl HTML5 video player that supports HLS and MPEG Dash Streaming in addition to MP4 progressive video. It can be tightly integrated into the Impossible FX infrastructure.
fxplayer.js
script in your web page and specify the project ID, movie name and parameters:
<html> <head> <script src="https://cdn.impossible.io/support/fxplayer.js"></script> </head> <body> <video id="my-video" controls="controls" width="640" height="360"> </video> <script> var player = fxplayer("my-video", {format: "hls"}); player.projectid="YOUR PROJECT ID"; player.movie="NAME OF YOUR DYNAMIC MOVIE"; player.params={ param1: "value1", param2: "value2", }; player.play(); </script> </body> </html>
npm
:
npm install impossiblefx-player
fxplayer.js
script returns a single function (fxplayer) that takes up to two parameters and returns an instance of the FXPlayer:
var player = fxplayer("ID of video tag", options?) or var player = fxplayer(video tag element, options?)
options
is an optional hash which controls various aspects of the player and render request parameters:
Properties | |
---|---|
projectid | The UUID of the project |
movie | The name of teh Dynamic Movie |
params | A Hash Object with movie variabes and values |
token | For token based rendering, supply the token only (omit projectid, moviename and params) |
Methods | |
play() | Play the video. |
Terms of Use | © 2017, Impossible Software, or its affiliates.