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

@interactive-video-labs/angular

v0.2.0

Published

Thin Angular wrapper for the @interactive-video-labs/core engine. Enables cue-based interactive video playback in Angular applications.

Downloads

18

Readme

@interactive-video-labs/angular

Welcome to @interactive-video-labs/angular — a lightweight Angular wrapper around the @interactive-video-labs/core engine for cue-driven interactive video experiences.

This wrapper enables seamless integration of interactive video players into Angular applications using idiomatic Angular components and bindings, while staying close to the underlying core engine API.


Table of Contents

Installation

YouTo install the package, use your preferred package manager:

# Using pnpm
pnpm add @interactive-video-labs/angular @interactive-video-labs/core

# Using npm
npm install @interactive-video-labs/angular @interactive-video-labs/core

# Using yarn
yarn add @interactive-video-labs/angular @interactive-video-labs/core

Usage

Import InteractiveVideoComponent into your Angular component's imports array:

import { InteractiveVideoComponent } from '@interactive-video-labs/angular';

@Component({
  selector: 'app-my-component',
  standalone: true,
  imports: [InteractiveVideoComponent],
  template: ` <iv-interactive-video videoUrl="your-video-url.mp4"></iv-interactive-video> `,
})
export class MyComponent {}

Basic Usage

<iv-interactive-video videoUrl="https://example.com/your-video.mp4"></iv-interactive-video>

With Cue Points

import { Component } from '@angular/core';
import { InteractiveVideoComponent, CuePoint } from '@interactive-video-labs/angular';

@Component({
  selector: 'app-cue-point-example',
  standalone: true,
  imports: [InteractiveVideoComponent],
  template: `
    <iv-interactive-video
      videoUrl="https://example.com/video-with-cues.mp4"
      [cues]="myCues"
    ></iv-interactive-video>
  `,
})
export class CuePointExampleComponent {
  myCues: CuePoint[] = [
    { time: 5, type: 'text', value: 'Hello at 5 seconds!' },
    { time: 10, type: 'image', value: 'https://example.com/image.png' },
  ];
}

With Translations

import { Component } from '@angular/core';
import { InteractiveVideoComponent, Translations } from '@interactive-video-labs/angular';

@Component({
  selector: 'app-translation-example',
  standalone: true,
  imports: [InteractiveVideoComponent],
  template: `
    <iv-interactive-video
      videoUrl="https://example.com/video.mp4"
      locale="es"
      [translations]="spanishTranslations"
    ></iv-interactive-video>
  `,
})
export class TranslationExampleComponent {
  spanishTranslations: Translations = {
    play: 'Reproducir',
    pause: 'Pausar',
    // ... other translations
  };
}

With Analytics Events

import { Component } from '@angular/core';
import {
  InteractiveVideoComponent,
  AnalyticsEvent,
  AnalyticsPayload,
} from '@interactive-video-labs/angular';

@Component({
  selector: 'app-analytics-example',
  standalone: true,
  imports: [InteractiveVideoComponent],
  template: `
    <iv-interactive-video
      videoUrl="https://example.com/video.mp4"
      (analyticsEvent)="handleAnalytics($event)"
    ></iv-interactive-video>
  `,
})
export class AnalyticsExampleComponent {
  handleAnalytics(event: [event: AnalyticsEvent, payload?: AnalyticsPayload]): void {
    const [eventName, payload] = event;
    console.log(`Analytics Event: ${eventName}`, payload);
    // Send to your analytics service
  }
}

Mounting to an External Element

You can mount the player to an existing HTML element by providing its ID to the targetElementId input.

<div id="my-custom-player-container" style="width: 100%; height: 400px;"></div>
<iv-interactive-video
  videoUrl="https://example.com/video.mp4"
  targetElementId="my-custom-player-container"
></iv-interactive-video>

API Reference

Inputs

| Name | Type | Description | Default | Required | | :---------------- | :------------- | :------------------------------------------------------------------- | :---------- | :------- | | videoUrl | string | The URL of the video to be loaded. | undefined | Yes | | cues | CuePoint[] | An array of cue points for interactive events. | undefined | No | | translations | Translations | An object containing translations for the player. | undefined | No | | autoplay | boolean | Whether the video should start playing automatically. | false | No | | loop | boolean | Whether the video should loop. | false | No | | locale | string | The locale to be used for the player. | 'en' | No | | targetElementId | string | The ID of an external HTML element where the player will be mounted. | undefined | No |

Outputs

| Name | Type | Description | | :--------------- | :------------------------------------------------------------------ | :-------------------------------------- | | analyticsEvent | EventEmitter<[event: AnalyticsEvent, payload?: AnalyticsPayload]> | Emits analytics events from the player. |

Development

For detailed instructions on setting up your development environment, installing dependencies, running tests, and building the project, please refer to the DEVELOPER.md file.

Contributing

We welcome contributions to @interactive-video-labs/angular! Please see our CONTRIBUTING.md for guidelines.

License

This project is licensed under the MIT License.engine API.