Skip to content

Latest commit

 

History

History
63 lines (54 loc) · 2.16 KB

readme.md

File metadata and controls

63 lines (54 loc) · 2.16 KB

Free VAST/VMAP JS Plugin JW Player

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

Usage

  • clone the project
  • call jwplayer and config it
  • upload VmapJwPlayer.js to your server
  • Enjoy it :)
<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/VmapJwPlayer.js": {},
        }
        ,advertising:{
            client:"vast",
            schedule:"VMAP XML DATA URL",
        }
        primary: "html5",
    });
</script>
FORMAT TYPE
Linear MP4, FLV,MP4,JPG,PNG,GIF
Non-linear MP4, FLV,MP4,JPG,PNG,GIF
Skippable Linear MP4, FLV,MP4,JPG,PNG,GIF

Note

ES6 Version and NPM Package coming soon :)

License

Attribution-NonCommercial 3.0 Unported (CC BY-NC 3.0)
(C) 2016 - miladheydari.ir @iammilaad
https://creativecommons.org/licenses/by-nc/3.0/