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 🙏

© 2024 – Pkg Stats / Ryan Hefner

ozone-video-player

v6.3.6

Published

[![NPM version][npm-image]][npm-url]

Downloads

1,054

Readme

NPM version

ozone-video-player

Customisable Ozone video player. Package in a webComponents and written in typeScript. Features:

  • Play video from an url
  • Play ozone Video item
  • Control video (OSD) play/pause, sound, full screen
  • Display control for ozone subtitles
  • Add and controls markers on the video (used for video montage)

usage

Install

npm install  ozone-video-player --save

Add conf.ozone.json at root of your project. You can adapt conf.ozone.json from this repo.

use pre bundle version

To include bundle ozone-video-player element in your javaScript:

<script type="text/javascript" src="node_modules/ozone-video-player/build/index.js"></script>

<ozone-video-player></ozone-video-player>

See example in demo/Example_Bundle

Build with webpack

import {OzoneVideoPlayer} from "ozone-video-player";

// Your code here

See example in demo/Example_Import

For usage in typeScript use option "moduleResolution": "node"

API

Most important parameters.

Attribute

Attribute are javaScript properties accessible from the dom.

  • hidden

hidden: Default is false. True when set. hide element and pause the player.

  • video-url (alias videoUrl)

videoUrl: string Url to play a video directly

  • video

video: Video OzoneVideo to play.

  • markers

markers: Array Array of markers on video

  • subtitlesAvailable

subtitlesAvailable: Array List of subtitles languages available

  • subtitleSelected

subtitleSelected: string selected subtitle language

Properties

Only accesible for JavaScript

  • player

player: ClapprPlayer Interface to Clappr player element

Methode

  • loadOzoneVideo

loadOzoneVideo(data?: Video): Promise Load video from Ozone. Parameters is an Ozone Video Object

  • loadVideoUrl

loadVideoUrl(url: string): Promise Load a video from an url.

Styling

The following custom css mixin properties are available for styling:

Custom property | Description | Default ----------------|-------------|---------- --marker-bar-background | Background color of the marker's bar | rgba(29,38,43,0.52) --resizer-color | Background color of the resizer | rgba(29,38,43,0.9) --resizer-handle-color | Background color of the resizer's handle | rgba(255,255,255,0.2) --marker-bar | Mixin applied to the marker's bar| {} --resizer | Mixin applied to the marker's bar| {} --moving-tooltip-background-color | Background color of the moving tooltip | rgba(29,38,43,0.9) --moving-tooltip-text-color | Text color of the moving tooltip | white --moving-tooltip-mixin | Mixin applied to the marker's bar| {} --subtiltes-color | Color of the subtitles | #fffb00 --subtitles-font-size | Font size of the subtiltes | 16px --subtitles-weight | Font weight of the subtitles | bold --subtitles-font-family | Font family of the subtitles | 'Roboto' --subtitles | Mixin applied to the subtitles and the subtitles' container | {}

Contribution guide

Build your package

$ npm run start

Or watch demo on change

$ npm run demo