How do I play a .SWF
file using the video.js
player?
I've played around with the code below, but I can not get it to work.
When I open the .swf
file directly (using open with IE), I then I am able to play the .swf
file that way.
JavaScript:
// path to location of swf-file
_V_.options.flash.swf = "video-js.swf";
// flashvars
_V_.options.flash.flashVars = {
file: "./ExportSWF/Recording.swf", //file to be played
autostart: "false",
provider: "http",
"http.startparam": "start"
};
// object params
_V_.options.flash.params = {
allowfullscreen: "true",
wmode: "transparent",
allowscriptaccess: "always"
};
HTML:
<video id="example_video_1" class="video-js vjs-default-skin" controls preload="none" width="400" height="300">