Sonettic Cinema

 
 

XML Configuration

The configuration with flashvars is very simple, but not handy (for more information about flashvars, visit Adobe website). We offer the best and the most convenient way to set your player through XML (more about this format). This is very simple, useful and suitable way to configure the player.

To supply the player with content, we use our general method of transferring parameters from HTML into SWF-flashvars, and we also set the path to the file the same way.

Initial data:

name value
player swf cinemaplayer.swf
video file trailer.flv
html page index.html
thumbnail thumb.png
host www.example.com
xml properties xmlprops/props.xml

The main goals are to integrate the player with xml properties into index.html page, and to paste thumbnail thumb.png and the file trailer.flv with the video.

Important! If you want the player to load pictures from your domain, you have to place crossdomain.xml file in the root of your server (more about Cross-domain policy file specification).

On your server you have to create a folder named integration. Then you have to place the following code into the file index.html and the tag <body>:

The video path as a variable content you have to paste into the flashvar; the path to the thumbnail has to go as flashvar poster, and the path to XML settings has to be properties flashvar.

The flashvar body for the tags Object and Embed must look like this:

For more information about Players settings, please visit our page with the description of configuration variables. (www.sonettic-cinema.com/..../).

In the props.xml file we have changed the color of the menu (<menubgcolor>); we have turned on auto play (<autoplay>), turned off zoom (<allowzoom>), and embed the code(<allowembed>).

For more information about Players settings, please visit our page with the description of configuration variables. (www.sonettic-cinema.com/..../).

Part of XML settings:

Full XML with most of properties you can download here.

Flashvars:

flashvar value
content trailer.flv
content trailer.flv
properties xmlprops/props.xml

We also have examples to review online.


  
  1.  
  
  
  • Resent Searches
  •  
  •  
  • Clear searches history