1.51.6 • Published 3 years ago
clarence-js v1.51.6
🚀 Clarence-Js
Clarence JS is a Javascript Video player that can be integrated into any frontend project. It is named after Nigerian music video director, Clarence Peters.
Installation
npm i clarence-js --saveor
yarn clarence-jsUsage
Step 1: Add video implement in your html.
<video id="video-id" class="aj-video">
<source :src="content" type="video/mp4" />
</video>Step 2: Then import clarence-js in your javascript code.
import ClarencePlayer from 'clarence-js'If you're running an SSR application, you need to import the plugin dynamically after your app/component has been mounted. This is how it can be done in a vue ssr app.
import { onMounted } from 'vue'
onMounted(async() => {
const loader = await import('clarence-js')
const ClarencePlayer = loader.default
})Step 3: Initialize and mount player.
const player = new ClarencePlayer({
nodeID: playerID.value,
width: '824px',
height: 'auto',
});
player.mount();Step 4: Import clarence's css file.
@import '~clarence-js/build/clanrence.css;'1.51.6
3 years ago
1.51.5
3 years ago
1.5.0
3 years ago
1.51.0
3 years ago
1.51.2
3 years ago
1.51.1
3 years ago
1.51.4
3 years ago
1.1.2
4 years ago
1.1.1
4 years ago
1.0.99
4 years ago
1.0.95
4 years ago
1.0.94
4 years ago
1.0.93
4 years ago
1.0.92
4 years ago
1.0.91
4 years ago
1.0.9
4 years ago
1.0.8
4 years ago
1.0.7
4 years ago
1.0.6
4 years ago
1.0.5
4 years ago
1.0.4
4 years ago
1.0.0
4 years ago