artplayer-react

React Component for Artplayer, It is recommended to package itself according to actual business needs.

Usage no npm install needed!

<script type="module">
  import artplayerReact from 'https://cdn.skypack.dev/artplayer-react';
</script>

README

artplayer-react

React Component for Artplayer, It is recommended to package itself according to actual business needs.

Demo

Checkout the demo from Codesandbox

Install

Install with npm

$ npm install artplayer-react

Or install with yarn

$ yarn add artplayer-react

Usage

import ArtplayerComponent from 'artplayer-react';

// ...
<ArtplayerComponent
    option={
        {
            // option, no 'container' property required
        }
    }
    getInstance={ins => console.log(ins)} // get the instance
/>;

License

MIT © Harvey Zack