npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@een/live-video-web-sdk

v1.10.2

Published

This package allows EEN users to incorporate live video on their web solution. Copyright (C) 2025 Eagle Eye Network B.V. - [email protected]. This software can not be copied and/or distributed without the express permission of Eagle Eye Networks.

Readme

Eagle Eye Networks Live Video Web SDK

Copyright (C) 2025 Eagle Eye Network B.V. - [email protected]
This package allows EEN users to incorporate live video on their web solution. Copyright (C) 2025 Eagle Eye Network B.V. - [email protected] This software can not be copied and/or distributed without the express permission of Eagle Eye Networks.

Installation

Note: This is the development documentation. For the npm package documentation, please refer to the README.md file included in the published package.

npm install @een/live-video-web-sdk

Quick Start

import VideoPlayer from '@een/live-video-web-sdk';

const player = new VideoPlayer({
  jwt: 'your-jwt-token',
  cameraId: 'your-camera-id',
  videoElement: document.getElementById('video') as HTMLVideoElement,
  onError: (error) => console.error('Player error:', error),
  onFrame: (time) => console.log('Frame rendered at:', time)
});

await player.start();

Configuration Options

interface Config {
  cameraId?: string;                    // Camera identifier
  jwt: string;                         // Authentication JWT token
  videoElement?: HTMLVideoElement;      // Target video element
  canvasElement?: HTMLCanvasElement;    // Target canvas (WebCodecs only)
  maxBuffer?: number;                  // Maximum buffer size (0-10000ms)
  minBuffer?: number;                  // Minimum buffer size (default: 1000ms)
  videoTech?: "WebCodecs" | "FLV";     // Preferred playback technology
  feedUrl?: string;                    // Direct feed URL (optional)
  baseUrl?: string;                    // API base URL (auto-detected from JWT)
  eenUniqueId?: string;                // EEN system unique identifier
  
  // Event Callbacks
  onFrame?: (time: number) => void;
  onStop?: () => void;
  onAudio?: () => void;
  onSwitchToFlv?: () => void;
  onError?: (error: VideoPlayerError) => void;
  onWarning?: (warning: VideoPlayerWarning) => void;
}

The SDK provides comprehensive error categorization:

Configuration Errors

  • CONFIG_INVALID_JWT - Invalid or missing JWT token
  • CONFIG_INVALID_VIDEO_TECH - Invalid video technology specified
  • CONFIG_CANVAS_WITHOUT_WEBCODECS - Canvas element used without WebCodecs
  • CONFIG_DUAL_VIDEO_TARGETS - Both video element and canvas provided
  • CONFIG_INVALID_BUFFER_SIZE - Buffer size outside valid range
  • CONFIG_MISSING_FEED_PARAMS - Missing required feed parameters

Network Errors

  • NETWORK_FEED_FETCH_ERROR - Failed to fetch video feed
  • NETWORK_JWT_DECODE_ERROR - JWT decoding failed
  • NETWORK_STREAM_REQUEST_ERROR - Stream request failed
  • NETWORK_CONNECTION_ERROR - Network connection error
  • NETWORK_STREAM_WARNING - Stream warning (non-fatal)

Player Errors

  • PLAYER_START_WHILE_PLAYING - Attempted to start while already playing
  • PLAYER_MULTIPART_STREAM_ERROR - Multipart stream error
  • PLAYER_FLV_START_ERROR - FLV player initialization error
  • PLAYER_HARDWARE_ACCELERATION_ERROR - Hardware acceleration error

WebCodecs Errors

  • WEBCODECS_VIDEO_DECODER_ERROR - Video decoder error
  • WEBCODECS_AUDIO_DECODER_ERROR - Audio decoder error
  • WEBCODECS_AUDIO_RENDER_ERROR - Audio rendering error
  • WEBCODECS_VIDEO_RENDER_ERROR - Video rendering error
  • WEBCODECS_AUDIO_CONFIG_ERROR - Audio configuration error
  • WEBCODECS_FRAME_PROCESSING_ERROR - Frame processing error

API Methods

Core Methods

// Start video playback
await player.start(config?: Config): Promise<void>

// Stop video playback
player.stop(): void

// Check if currently playing
player.isPlaying(): boolean

Audio Control (WebCodecs only)

// Audio muting
player.getAudioMuted(): boolean
player.setAudioMuted(muted: boolean): void
player.toggleMute(): void

// Volume control (0.0 - 1.0)
player.getAudioVolume(): number
player.setAudioVolume(volume: number): void

// Audio error checking
player.getAudioPlaybackError(): any

Buffer Management (WebCodecs only)

// Buffer configuration
player.setMaxBuffer(ms: number): void
player.setMinBuffer(ms: number): void
player.getBufferLength(): number