clickyab / clickyab-vast-jwplayer

Vast plugin for jwplayer
12 stars 2 forks source link

Video Ad Serving Template (VAST) JS Plugin for jwPlayer (Beta)

without any License key

JW Player Logo

VAST/VPAID Advertising For The Most Popular HTML5 Player And Video Platform


Cross-platform, free and open-source VAST jwPlayer. This is an open source project made in @clickyab team.

Demo Page

Installation


    $ git clone git@github.com:clickyab/clickyab-vast-jwplayer.git

Usage

<script type="text/javascript">
    var playerInstance = jwplayer("video");
    playerInstance.setup({
        aspectratio: "16:9",
        stretching:'uniform',
        playlist: [{
            sources: [

                {
                    file:  'http://example.com/video.mp4'  ,
                    label: '240',
                    type:"video/mp4"
                    ,"default": "true"
                }

            ],
            title: "Your Video Title",
            description: "Your Video Description",
            image: "Your Video Poster"
        }],
        plugins: {
            "http://example.com/vastAD.js": {},
        }
        ,advertising:{
            client:"vast",
            schedule:"http://v.clickyab.com/ads/vast.php?a={clickyab_id}&l={video_duration}&RandomNumber",
        }
        primary: "html5",
    });
</script>

Note

ES6 Version and NPM Package coming soon :)

License

The MIT License (MIT)
(C) 2016 - clickyab.com 

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the “Software”), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.