Custom HTML Video/Audio Controls
Importing
Script tag
- Put a script tag similar to this
<script src='https://unpkg.com/media-player-controls@1.1.1/dist/media-player-controls.js'></script>
in the head of your index.html - Then you can use the element anywhere in your template, JSX, html etc
Node Modules
- Run
npm install media-element-controls --save
- Put a script tag similar to this
<script src='node_modules/media-player-controls/dist/media-element-controls.js'></script>
in the head of your index.html - Then you can use the element anywhere in your template, JSX, html etc
Using