Security News
Supply Chain Attack Detected in Solana's web3.js Library
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
@skylineos/videojs-clsp
Advanced tools
Video JS plugin for Skyline Technology Solutions' CLSP Player - https://github.com/skylineos/clsp-player
A videojs
plugin that adds support for video served over the clsp
protocol, which is a proprietary near-real-time video streaming protocol only available via Skyline's SFS solutions.
clsp
protocol support is provided by https://github.com/skylineos/clsp-player.
Note that if you do not specifically need video.js
, we recommend you use clsp-player
as it is more performant and has better memory management.
dist
assets
src
assets
This plugin can only support browsers that are supported by the clsp-player
. See https://github.com/skylineos/clsp-player for the list of supported browsers.
See https://github.com/skylineos/clsp-player for the URL structure for clsp
stream URLs.
yarn add @babel/polyfill @skylineos/videojs-clsp
npm i @babel/polyfill @skylineos/videojs-clsp
dist
assetsNOTE: See demos/simple-dist/
and demos/advanced-dist/
for full examples.
NOTE: @babel/polyfill
, video.js
, videojs-errors
MUST be sourced/included prior to the plugin.
<head>
Tag<head>
<!-- CLSP VideoJS Plugin Styles -->
<link
rel="stylesheet"
href="/path/to/dist/videojs-clsp.css"
>
<!-- Babel Polyfill -->
<script
type="text/javascript"
src="//cdn.jsdelivr.net/npm/@babel/polyfill@7.8.7/dist/polyfill.min.js"
></script>
<!-- VideoJS -->
<script
type="text/javascript"
src="//vjs.zencdn.net/7.7.5/video.min.js"
></script>
<!-- VideoJS Errors -->
<script
type="text/javascript"
src="//cdn.jsdelivr.net/npm/videojs-errors@4.3.2/dist/videojs-errors.min.js"
></script>
<head>
<script>
Tag<!-- CLSP VideoJS Plugin -->
<script src="/path/to/dist/videojs-clsp.min.js"></script>
<script>
// construct the player
var player = window.videojs('my-video');
// Only use CLSP if in a supported browser
if (window.clspUtils.supported()) {
// Note - This must be executed prior to playing the video for CLSP streams
window.player.clsp();
}
// When the player is ready, start playing the stream
window.player.on('ready', function () {
// Even though the "ready" event has fired, it's not actually ready
// until the "next tick"...
setTimeout(function () {
window.player.play();
});
});
</script>
<video>
tagNOTE: with clsp-player
, it is recommended that you have an "extra" container element wrapping your video element. When using video.js
, a wrapper element will be created for you, so the extra one is not needed.
Note that for clsp
streams, the src
tag must have a type
attribute with a value of video/mp4; codecs='avc1.42E01E'
.
<div class="video-container">
<video
id="my-video"
class="video-js vjs-default-skin"
controls
>
<!-- CLSP Stream -->
<source
src="clsp://172.28.12.57/FairfaxVideo0510"
type="video/mp4; codecs='avc1.42E01E'"
/>
<!-- HLS Stream -->
<source
src="http://172.28.12.57:1935/rtplive/FairfaxVideo0510/playlist.m3u8"
type="application/x-mpegURL"
/>
</video>
</div>
src
assetsNOTE: See demos/simple-src/
and demos/advanced-src/
for full examples.
NOTE: @babel/polyfill
, video.js
, videojs-errors
MUST be sourced/included prior to the plugin.
import '@babel/polyfill';
import videojs from 'video.js';
import videojsErrors from 'videojs-errors/dist/videojs-errors.es';
import clspUtils from '@skylineos/videojs-clsp/src/js/utils';
import clspPlugin from '@skylineos/videojs-clsp/src/js/plugin';
clspPlugin().register();
const player = videojs('my-video', {
autoplay: true,
muted: true,
preload: 'auto',
controls: false,
sources: [
{
src: 'clsp://172.28.12.57/FairfaxVideo0510',
type: "video/mp4; codecs='avc1.42E01E'",
},
{
src: 'http://172.28.12.57:1935/rtplive/FairfaxVideo0510/playlist.m3u8',
type: 'application/x-mpegURL',
},
],
});
if (clspUtils.supported()) {
player.clsp();
}
@import '/path/to/node_modules/@skylineos/videojs-clsp/src/styles/videojs-clsp.scss';
@todo
@babel/polyfill
7.8.7
is required.
video.js
7.7.5
is the recommended version. Version 6.x
is not recommended due to it being less performant over time.
We recommend using videojs-errors
. Version 4.3.2
is recommended, because as of version 4.2.0
, it allows us to re-register successive errors to respond to successfive failures as necessary to support stream recovery.
FAQs
Video JS plugin for Skyline Technology Solutions' CLSP Player - https://github.com/skylineos/clsp-player
The npm package @skylineos/videojs-clsp receives a total of 101 weekly downloads. As such, @skylineos/videojs-clsp popularity was classified as not popular.
We found that @skylineos/videojs-clsp demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.