oplayer-ui-plus
v1.2.35
Published
ui plugin for oplayer
Downloads
50
Readme
OPlayer UI
Install
npm i @oplayer/core oplayer-ui-plus
<script src="https://cdn.jsdelivr.net/npm/@oplayer/core@latest/dist/index.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/oplayer-ui-plus@latest/dist/index.core.js"></script>
<!-- or just one -->
<!-- <script src="https://cdn.jsdelivr.net/npm/@oplayer/core@latest/dist/index.ui.js"></script> -->
Basic
const player = Player.make('#player', {
source: {
title: '君の名は',
src: 'https://oplayer.vercel.app/君の名は.mp4',
poster: 'https://oplayer.vercel.app/poster.png'
}
})
.use([OUI()])
.create()