1.0.66 • Published 5 years ago

player-react v1.0.66

Weekly downloads
-
License
ISC
Repository
github
Last release
5 years ago

Agile Player

Component for audio and video playing made in React. It can play media on streaming and on demand in the following types, with the ability to set different broadcasters, and related medias:

DEMO: https://agilecontent.github.io/player-react/

Audio in a 'radio-player' style

alt text

Video in a 'radio-player' style

alt text

Audio/Video in a 'default-player' style

alt text

Transcription

alt text

Also it has the ability to run plugins. It has Analytics and VAST integration already built in

Advertisement

alt text

Usage

In a React app:

import { RadioPlayer, Player } from 'player-react';

// Example Radio player
render(<RadioPlayer config={config} />, element);

// Example Basic player
render(<Player config={config} />, element);

In a traditional website (no JSX):

import { createRadioPlayer, createPlayer } from 'player-react';

// Example Radio player
createRadioPlayer(config, element, props);

// Example Basic player
createPlayer(config, element, props);

The config must be an object. It's structure and all the accepted props are defined in the styleguide documentation.

Development

Start here:

npm install

npm run start-styleguide

You can then open it at http://localhost:6060

Tests

To run tests just:

npm run test-dev
npm run test-pro
npm run test-chrome

Deploy

To deploy the project:

npm run build-pro