Первое сентября
Москва

@1sept/videojs-nuevo (13.0.4)

Published 2025-06-27 12:11:04 +03:00 by naumso

Installation

@1sept:registry=
npm install @1sept/videojs-nuevo@13.0.4
"@1sept/videojs-nuevo": "13.0.4"

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 – 5514544310494346
  • *.1sept.dev – 551454431049555612
  • *.1sept.wip – 551454431049465a14

Установка

Авторизация (если еще не авторизован)

npm config set @1sept:registry=https://git.1sept.ru/api/packages/1sept/npm/
npm config set -- '//git.1sept.ru/api/packages/1sept/npm/:_authToken' "{token}"

Добавить в .yarnrc.yml

npmScopes:
  1sept:
    npmAlwaysAuth: true
    npmRegistryServer: https://git.1sept.ru/api/packages/1sept/npm/
  • yarn add @1sept/videojs-nuevo
  • yarn add hls.js
  • yarn add video.js

Пример сборки в 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);

if(location.hostname.match('1sept.ru')) {
  var key = '5514544310494346';
} else if(location.hostname.match('1sept.dev')) {
  var key = '551454431049555612';
} else {
  var key = '551454431049465a14';
}

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, license: "key" });
  }

  /**
   * Трансляция
   */
  if (document.getElementById('video-js-live')) {

    var player = videojs('video-js-live', {liveui:true});
    player.nuevo({settingsButton: false, zoomMenu: false, license: "key"});

    let poster = document.getElementById('video-js-live').getAttribute('poster');

    player.offline({
      offlineImage:  poster,
      offlineTimeout: 30,
      offlineCountdown: true,
      label: "Повторная попытка…"
    });
  }
  
});

Details
npm
2025-06-27 12:11:04 +03:00
7
naumso
MIT
3.0 MiB
Assets (1)
Versions (3) View all
13.5.1 2025-10-22
13.0.4 2025-06-27
13.0.3 2025-06-25