Security News
Introducing the Socket Python SDK
The initial version of the Socket Python SDK is now on PyPI, enabling developers to more easily interact with the Socket REST API in Python projects.
@scorum/clappr-flvjs-playback
Advanced tools
A clappr FLV playback based on flv.js
Add Clappr, flv.js and the plugin scripts to your HTML:
<head>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/clappr@latest/dist/clappr.min.js"></script>
<!--
THIS PLUGIN IS ALSO COMPATIBLE WITH CLAPPR-CORE
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/@clappr/core@latest/dist/clappr-core.min.js"></script>
--->
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/flv.js@latest/dist/flv.min.js"></script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/clappr-flvjs-playback@latest/dist/clappr-flvjs-playback.min.js"></script>
</head>
Then just add FLVJSPlayback
into the list of plugins of your player instance, and the options for the plugin go in the flvjsConfig
property as shown below.
var player = new Clappr.Player({
source: "http://your.flv.video",
mimeType: 'video/flv',
plugins: [ FLVJSPlayback ],
playback: {
flvjsConfig: {
enableLogging: true, // default is "false"
// Params from flv.js
}
}
});
The parameters of flvjsConfig
are completely equal to the parameters of flv.js
enableLogging
- enable or disable flv.js logging
Install dependencies:
npm install
Start HTTP dev server http://localhost:8080
:
npm start
Minified version of plugin will be placed at dist/clappr-flvjs-playback.min.js
npm run build
Run linter:
npm run lint
Fix lint errors:
npm run lint:fix
Feel free to submit issues and enhancement requests.
FAQs
clappr flv playback based on flv.js
The npm package @scorum/clappr-flvjs-playback receives a total of 0 weekly downloads. As such, @scorum/clappr-flvjs-playback popularity was classified as not popular.
We found that @scorum/clappr-flvjs-playback demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 6 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The initial version of the Socket Python SDK is now on PyPI, enabling developers to more easily interact with the Socket REST API in Python projects.
Security News
Floating dependency ranges in npm can introduce instability and security risks into your project by allowing unverified or incompatible versions to be installed automatically, leading to unpredictable behavior and potential conflicts.
Security News
A new Rust RFC proposes "Trusted Publishing" for Crates.io, introducing short-lived access tokens via OIDC to improve security and reduce risks associated with long-lived API tokens.