Documentation

Example of code which plays Pre-roll, Post-roll, Mid-roll from xml

1. Open config.xml and edit the following attributes and save the file.

xml/http://yourdomain.com/HD FLV Player /xml/playlist.xml

true

http://yourdomain.com/HD FLV Player /xml/ads.xml

http://yourdomain.com/HD FLV Player /addons/midroll/xml/mid-roll.xml

false false

false

2. Open playlist.xml and edit the following attributes and save the file.

<playlist autoplay=”false” random=”false”>

<mainvideo
video_url=”Your stream name goes here”>

video_hdpath=””

video_id=”Your video id goes here”

thumb_image=”Your video thumb image path goes here”

preview_image =”Your Preview image path goes here”

allow_preroll=”true”

allow_midroll=”true”

allow_postroll=”true”

allow_download=”false”

<title> <![CDATA[Welcome]]> </title>

<!–Optional–>

<tagline targeturl=”https://mydomain.com”><![CDATA[<spanclass='heading'>Tagline -

</span><b>Your short description goes here for videos.</b>]]></tagline>

</mainvideo>

</playlist>

3. Open ads.xml and edit the following attributes and save the file.

<ads random=”false”>

<ad url=”your ad video here” targeturl=”http://www.platoon.in” clickurl=”" impressionurl=”">

<![CDATA[<span class='heading'> Tagline - </span> <b> Your short description goes here for

ad.</b>]]></ad>

</ads>

4. Open mid-roll.xml and edit the following attributes and save the file.

<mid-rollad begin=”5″ adinterval=”20″ adrotate=”true” random=”false”>

<mid-roll targeturl=”http://www.platoon.in” clickurl=”"

impression=”"><![CDATA[<spanclass='heading'>Platoon</span><br><span class='mid-roll'>Platoon is a offshore <b>

Software and Web Development company</b> from India.</span> ]]> </mid-roll>

</mid-rollad>

5. Run index.html in your favourite browser.

Related Posts via Categories

© Copyrights 2014 HD FLV Player - All Rights Reserved

A part of Contus