Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@articulate/orson

Package Overview
Dependencies
Maintainers
6
Versions
64
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@articulate/orson

React video component with some Articulate flavor

  • 0.0.21
  • unpublished
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
6
Weekly downloads
 
Created
Source

Orson

An Articulate flavored react component video player.

Install

npm install @articulate/orson

Usage

Orson requires the installation of video.js. npm install video.js

Update your webpack config loaders

{
  test: /\.js$/,
  loader: 'babel-loader',
  include: path.join(__dirname, 'node_modules', '@articulate', 'orson')
},
{
  test: /\.eot$/,
  loader: 'url-loader'
}

Note: you may need to npm install the url-loader and it's dependent file-loader.

Import VideoPlayer into your component.

import VideoPlayer from '@articulate/orson/lib/VideoPlayer';

<VideoPlayer>
  <source src="__path_to_mp4__" type="video/mp4" />
  <source src="__path_to_format__" type="video/format" />
  <p>
    Custom Error Message
  </p>
</VideoPlayer>

Available Props

These props are not required, but available if needed.

  • aspectRatio - a number, defualts to (9 / 16)
  • options - video.js options used to create the player object. See Videojs Options

Keywords

FAQs

Package last updated on 21 Jul 2016

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