MC Player
ExpressionEngine 1.x, ExpressionEngine 2
Back to this add-on's main page
View Other Add-ons From Michael Cohen
Screencolor or bgcolour
General
Eervi
|
Posted: 19 November 2011 10:11 AM |
|
|
|
Hej !
how to make the bgcolor or screencolor work
this is not working (or with bgcolor)
[removed] [removed]
{exp:mc_player:play file=”{Video_tiedosto}” width=“480” height=“270” screencolor=”#ffffff” playerpath=”/jwplayer/player.swf”
}
-lm-
|
|
|
Eervi
|
Posted: 19 November 2011 10:15 AM |
# 1
|
|
|
Hej !
The site is where iI try to do it
http://www.uusikaupunki.tv/index.php/Videot
-lm-
|
|
|
Michael C.
|
Posted: 22 November 2011 05:51 PM |
# 2
|
|
Developer
|
It appears that setting the background color directly is not (yet) supported by the JW Player in HTML5 mode (which is what the MC Player focuses on). Once the JW Embedder script runs, it essentially ignores any background colors that may have been specified, and hardcodes the bgcolor to #000000;
I’ve tried a number of the solutions mentioned in that thread, and the only one that worked for me was adding this parameter to the tag:
wmode="transparent"
That will allow the background color of whatever element the player is inside of to show through. If you need a different background color than the default color of the rest of the page, just wrap the MC Player tag inside a <div> tag with a custom background color, like so:
<div style="background-color: red;"> {exp:mc_player:play file=”{Video_tiedosto}” width=“480” height=“270” screencolor=”#ffffff” playerpath=”/jwplayer/player.swf” wmode="transparent"} </div>
|
|
|
Eervi
|
Posted: 23 November 2011 12:24 PM |
# 3
|
|
|
Hej !
- Thanks, but I still have on the video too much black but now I know what to do or not :-)
|
|
|
Michael C.
|
Posted: 23 November 2011 06:44 PM |
# 4
|
|
Developer
|
Yes, it’s always a good idea to crop your videos to the actual content. Letterboxing (the black bars above and below the video) just wastes bytes that could otherwise be devoted to the actual image, and is generally unnecessary for online uses. :)
|
|
|