Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@glomex/vast-ima-player

glomex11.4kApache-2.01.21.2TypeScript support: included

Convenience wrapper for advertising video/audio content with Google IMA

ima, ima-sdk, ad, googleads, vast, vpaid, vmap, player, video-player

readme

VAST-IMA-Player

VAST-IMA-Player is a convenience layer around Google Interactive Media Ads HTML5 SDK (short: IMA) which tries to make using IMA less cumbersome for common monetization usecases.

This library can be used to build a simple outstream player or it can be used to implement more complex monetization scenarios. VAST-IMA-Player can monetize any content media player (with pre-, mid and postrolls), which follows the browser-built-in HTMLMediaElement API.

View Documentation | View Test-Page

gzip size brotli size

Testing

Open the test-page: http://unpkg.com/@glomex/vast-ima-player@1/test-page/index.html

Or checkout this repository and execute the end-to-end tests via npm test. You can also start a local webserver via npm start and then open the http://localhost:5000/test-page/.

License

Apache 2.0 License