Cross-platform, free and open-source VAST jwPlayer
- 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 |
ES6 Version and NPM Package coming soon :)
Attribution-NonCommercial 3.0 Unported (CC BY-NC 3.0)
(C) 2016 - miladheydari.ir @iammilaad
https://creativecommons.org/licenses/by-nc/3.0/