vastjs

VAST Manager

Usage no npm install needed!

<script type="module">
  import vastjs from 'https://cdn.skypack.dev/vastjs';
</script>

README

vastjs

Vast management module.

Install

npm install vastjs

Sample Code

const Vast = require('vastjs');
const vast = new Vast();
vast.load('path/to/vast-url').then(() => {
  console.log(vast.duration);
  console.log(vast.media('video/mp4', 6000));
  vast.timeupdate(22.5);
});

Author

kuro-daei

Repository

GitHub

Lisence

Apache-2.0