Socket
Socket
Sign inDemoInstall

videojs-contrib-ads

Package Overview
Dependencies
Maintainers
27
Versions
126
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

videojs-contrib-ads

A framework that provides common functionality needed by video advertisement libraries working with video.js.


Version published
Maintainers
27
Created
Source

Contrib Ads: A Tool for Building Video.js Ad Plugins

Build Status Greenkeeper badge

videojs-contrib-ads provides common functionality needed by video advertisement libraries working with video.js. It takes care of a number of concerns for you, reducing the code you have to write for your ad plugin.

videojs-contrib-ads is not a stand-alone ad plugin. It is a library that is used by other ad plugins in order to fully support video.js. If you want to build an ad plugin, you've come to the right place. If you want to play ads in video.js without writing code, this is not the right project for you.

Maintenance Status: Stable

Benefits

  • Ad timeouts are implemented by default. If ads take too long to load, content automatically plays.
  • Player state is automatically restored after ad playback, even if the ad played back in the content's video element.
  • Content is automatically paused and a loading spinner is shown while preroll ads load.
  • Media events will fire as though ads don't exist. For more information, read the documentation on Redispatch.
  • Useful macros in ad server URLs are provided.
  • Preroll checks automatically happen again when the video source changes.

Documentation

Documentation Index

Release History

A short list of features, fixes and changes for each release is available in CHANGELOG.md.

License

See LICENSE.

Keywords

FAQs

Package last updated on 17 May 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc