@1sept/videojs-nuevo (13.0.3)
Published 2025-06-25 14:46:49 +03:00 by naumso
Installation
@1sept:registry=npm install @1sept/videojs-nuevo@13.0.3"@1sept/videojs-nuevo": "13.0.3"About this package
Плагин nuevo для плеера video.js
Nuevo plugin is a set of advanced player original features and options merged into one javascript plugin file of relatively small file size.
Presented player Skins for Videojs are unique, completely custom design, optimized for mobile devices based on modern css stylesheet and javascript code. Skins work properly only with Nuevo plugin, since they require specific buttons and conttrol-bar elements order, managed through javascript code. All Nuevo plugin options, player setup code examples are listed on dedicated online documentation website page. Nuevo plugin versions history you can reach here and on indifidual demo pages.
Лицензирван для доменов:
- *.1sept.ru
- *.1sept.dev
- *.1sept.wip
Установка
yarn add video.jsyarn add @1sept/videojs-nuevo@ssh://git@git.1sept.ru:1sept/videojs-nuevo.git
Пример сборки в webpack
import videojs from 'video.js';
import '@1sept/videojs-nuevo/skins/party/videojs.css';
import '@1sept/videojs-nuevo/nuevo.min.js';
import '@1sept/videojs-nuevo/plugins/videojs.offline';
import ru from '@1sept/videojs-nuevo/lang/ru.json';
videojs.addLanguage('ru', ru);
document.addEventListener("DOMContentLoaded", function(event) {
/**
* Запись
*/
if (document.getElementById('video-js-rec')) {
var player = videojs('video-js-rec', { playbackRates: [0.5,1,1.5,2,3] });
player.nuevo({ shareMenu: false, zoomMenu: false, ccButton: false });
}
/**
* Трансляция
*/
if (document.getElementById('video-js-live')) {
var player = videojs('video-js-live', {liveui:true});
player.nuevo({settingsButton: false, zoomMenu: false});
let poster = document.getElementById('video-js-live').getAttribute('poster');
player.offline({
offlineImage: poster,
offlineTimeout: 30,
offlineCountdown: true,
label: "Повторная попытка…"
});
}
});
Details
2025-06-25 14:46:49 +03:00
Assets (1)
Versions (3)
View all
npm
7
naumso
MIT
3.0 MiB
videojs-nuevo-13.0.3.tgz
3.0 MiB