New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

video-observer

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

video-observer

VideoObserver.js allows you to listen some particular events thats occurs for on streaming videos.

  • 1.0.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Video Observer

Build Status

Purpose

VideoObserver.js allows you to listen some particular events that's occurs for on streaming videos.

For example detect when video is ready to play or when the resolution of your live stream video changes.

Installation

$ npm install video-observer

Example Usage

import { VideoObserver } from 'video-observer';

var vObserver = VideoObserver('#video');

// When video is ready to play
vObserver.on('ready', function (error) {
    if (error) {
        throw error;
    }

    console.log('ready without errors!!');
});

// When resolution changes
vObserver.on('resolutionChange', function (resolution, event) {
    console.log('resolution changed!!', resolution);
});

Building

Fork and clone the repository. Then, install dependencies with.

npm install

Then run the build script:

npm run build

NOTE: You need node.js v8.11.2 or higher.

Changelog

See CHANGELOG.md.

License

MIT

Keywords

FAQs

Package last updated on 27 Dec 2018

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