Exposing videos with a custom mask
Here we have customized the mask with a logo. Click on the video and you can see it above the video. We have also customized the close effect on the expose by giving it a fierce magenta colored "flash" effect. Click on the following video and wait for it to finish (or press the ESC key).
standalone demoCSS code
By default, the Expose tool uses the id "mask" for the mask. You can customize it by simply adjusting its CSS properties. Here are our customizations for this demo:
HTML code
This time we are exposing our video player and this is the only relevant HTML code. The player is surrounded with an additional box that is styled with a black background color and gradient. The styling is, of course, done with CSS:
The configuration
We have tweaked quite a few of the configuration variables and each one is commented. We have also set two callback functions onBeforeClose and onBeforeLoad to achieve the magenta colored "flash" effect when the exposing closes. Note that the player is paused when the exposing is closed. Upon construction, the expose API is returned by enabling the api variable. We use this variable in the Flowplayer configuration below:
Here we call the load and close methods of the Expose API at the proper places: