Socket
Socket
Sign inDemoInstall

@segment/analytics.js-video-plugins

Package Overview
Dependencies
1
Maintainers
128
Versions
18
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

@segment/analytics.js-video-plugins

Add automatic Segment event tracking to popular video players.


Version published
Maintainers
128
Weekly downloads
439,067
decreased by-4.5%

Weekly downloads

Readme

Source

analytics.js-video-plugins

Add automatic Segment event tracking to popular video players.

Introduction

Video plugins are built to hook into the lifecycle API of their corresponding video player and translate those events in to Segment events that adhere to the Video Spec.

Getting Started

Each individual plugin is stored in the /plugins directory. Plugins are built into a single module using Webpack and output as a single commonJs module into the /dist directory. This file is then bundled into analytics.js via analytics.js-private using Browserify. Each plugin is accessible at runtime at window.analytics.plugins.

Contributing

If you're interested in contributing to the development of an existing player plugin or creating a new one, please reference our contribution guidelines.

Releasing

To release, simply merge your changes into master on Github, pull them down locally into your master branch, and run yarn release <major | minor | patch>. This will automatically update package.json with the appropriate version bump, build a new dist file, push the updates to GitHub, and publish to npm.

Next, follow the instructions to release analytics.js (note: you'll be bumping the version of @segment/analytics.js-video-plugins in that repo to the version you just published.

FAQs

Last updated on 28 Jan 2021

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc