Videojs disable black background

videojs (v3.2.0) always shows a black background when loading video in swf mode. Does anyone know how to change this?

You can add the following swf parameters to the player:

var params = {}; params.bgcolor = "#ffffff"; params.wmode = "transparent"; 

V.options.flash.params = params;

With wmode = "transparent" you can see a black box in the upper left corner. In IE7 / 8, the window does not disappear when playing a video and is displayed as a black line around the video (for example, a black frame).

Thanks a lot Florian

+4
source share
1 answer

ahh I just found this: http://help.videojs.com/discussions/problems/1220-black-square-in-flash-file

there it is recommended to compile swf yourself using the flash linker. you can download the project here: https://github.com/zencoder/video-js-swf

Then you can configure your own swf with a custom background color as follows:

 var params = {}; params.bgcolor = "#ffffff"; _V_.options.flash.swf = "videojs/VideoJS.swf"; _V_.options.flash.params = params; 

Hope that videojs will soon update their own host downloads and CDNs with the corresponding swf. amuses Florian

+5
source

All Articles