1.51.6 • Published 2 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 --save
or
yarn clarence-js
Usage
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
2 years ago
1.51.5
2 years ago
1.5.0
2 years ago
1.51.0
2 years ago
1.51.2
2 years ago
1.51.1
2 years ago
1.51.4
2 years ago
1.1.2
3 years ago
1.1.1
3 years ago
1.0.99
3 years ago
1.0.95
3 years ago
1.0.94
3 years ago
1.0.93
3 years ago
1.0.92
3 years ago
1.0.91
3 years ago
1.0.9
3 years ago
1.0.8
3 years ago
1.0.7
3 years ago
1.0.6
3 years ago
1.0.5
3 years ago
1.0.4
3 years ago
1.0.0
3 years ago