1.0.6 • Published 10 months ago

pro-player v1.0.6

Weekly downloads
-
License
ISC
Repository
-
Last release
10 months ago

Pro Player

An advanced React video player component that allows you to play HLS (m3u8) files and supports DRM. It provides a customizable video player with lots of features including a quality selector.

NPM JavaScript Style Guide

Installation

You can install pro-player using npm or yarn.

NPM

npm install pro-player

Yarn

yarn add pro-player

Usage

First, import pro-player and its stylesheet into your project:

import React from 'react'
import ProPlayer from 'pro-player'
import 'pro-player/dist/index.css'

Then, you can use the ProPlayer component in your app by passing in the source, poster, drmSystemConfig, etc props:

const App = () => {
  return (
    <ProPlayer
      source='HLS_URL'
      poster='POSTER_URL'
      drmSystemConfig={{
        'com.apple.fps': {
          licenseUrl: 'LICENSE_URL',
          serverCertificateUrl: 'SERVER_CERTIFICATE_URL'
        },
        'com.widevine.alpha': {
          licenseUrl: 'LICENSE_URL'
        }
      }}
    />
  )
}

export default App

Contributing

Contributions are welcome! If you'd like to contribute to pro-player, please submit a pull request with your changes.

License

MIT © langford-dev

1.0.6

10 months ago

1.0.5

10 months ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago