@vidispine/vdt-videojs-react 23.1.0-pre.2 → 23.1.0-pre.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/VideoControls.js +15 -0
- package/dist/VideoPlayer.js +23 -0
- package/dist/VideoSeekBar.js +15 -0
- package/dist/VideoTimeCode.js +14 -0
- package/dist/index.js +4 -54
- package/package.json +8 -7
- package/dist/index.es.js +0 -37
- package/dist/index.es.js.map +0 -1
- package/dist/index.js.map +0 -1
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
2
|
+
import _classCallCheck from '@babel/runtime/helpers/classCallCheck';
|
|
3
|
+
import _createClass from '@babel/runtime/helpers/createClass';
|
|
4
|
+
import _inherits from '@babel/runtime/helpers/inherits';
|
|
5
|
+
import _possibleConstructorReturn from '@babel/runtime/helpers/possibleConstructorReturn';
|
|
6
|
+
import _getPrototypeOf from '@babel/runtime/helpers/getPrototypeOf';
|
|
7
|
+
import { Component } from 'react';
|
|
8
|
+
import { ExternalControls } from '@vidispine/vdt-videojs';
|
|
9
|
+
import { jsx } from 'react/jsx-runtime';
|
|
10
|
+
|
|
11
|
+
function ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols=symbols.filter(function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable;})),keys.push.apply(keys,symbols);}return keys;}function _objectSpread(target){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?ownKeys(Object(source),!0).forEach(function(key){_defineProperty(target,key,source[key]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(target,Object.getOwnPropertyDescriptors(source)):ownKeys(Object(source)).forEach(function(key){Object.defineProperty(target,key,Object.getOwnPropertyDescriptor(source,key));});}return target;}function _createSuper(Derived){var hasNativeReflectConstruct=_isNativeReflectConstruct();return function _createSuperInternal(){var Super=_getPrototypeOf(Derived),result;if(hasNativeReflectConstruct){var NewTarget=_getPrototypeOf(this).constructor;result=Reflect.construct(Super,arguments,NewTarget);}else {result=Super.apply(this,arguments);}return _possibleConstructorReturn(this,result);};}function _isNativeReflectConstruct(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));return true;}catch(e){return false;}}var VideoControls=/*#__PURE__*/function(_Component){_inherits(VideoControls,_Component);var _super=_createSuper(VideoControls);function VideoControls(){_classCallCheck(this,VideoControls);return _super.apply(this,arguments);}_createClass(VideoControls,[{key:"componentDidMount",value:function componentDidMount(){var player=this.props.player;// player prop is the whole react component
|
|
12
|
+
this.controls=new ExternalControls(_objectSpread(_objectSpread({target:this.controlsNode},this.props),{},{player:player.current.player}));this.controls.handleNewProps(this.props);}// eslint-disable-next-line camelcase
|
|
13
|
+
},{key:"UNSAFE_componentWillUpdate",value:function UNSAFE_componentWillUpdate(props){this.controls.handleNewProps(props);}},{key:"render",value:function render(){var _this=this;return/*#__PURE__*/jsx("div",{ref:function ref(node){_this.controlsNode=node;}});}}]);return VideoControls;}(Component);VideoControls.buttonNames=ExternalControls.buttonNames;
|
|
14
|
+
|
|
15
|
+
export { VideoControls };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
2
|
+
import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
|
|
3
|
+
import _classCallCheck from '@babel/runtime/helpers/classCallCheck';
|
|
4
|
+
import _createClass from '@babel/runtime/helpers/createClass';
|
|
5
|
+
import _inherits from '@babel/runtime/helpers/inherits';
|
|
6
|
+
import _possibleConstructorReturn from '@babel/runtime/helpers/possibleConstructorReturn';
|
|
7
|
+
import _getPrototypeOf from '@babel/runtime/helpers/getPrototypeOf';
|
|
8
|
+
import { Component } from 'react';
|
|
9
|
+
import { Player } from '@vidispine/vdt-videojs';
|
|
10
|
+
import '@vidispine/vdt-videojs/dist/index.css';
|
|
11
|
+
import { jsx } from 'react/jsx-runtime';
|
|
12
|
+
|
|
13
|
+
var _excluded=["setPlayer"],_excluded2=["setPlayer"];function ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols=symbols.filter(function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable;})),keys.push.apply(keys,symbols);}return keys;}function _objectSpread(target){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?ownKeys(Object(source),!0).forEach(function(key){_defineProperty(target,key,source[key]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(target,Object.getOwnPropertyDescriptors(source)):ownKeys(Object(source)).forEach(function(key){Object.defineProperty(target,key,Object.getOwnPropertyDescriptor(source,key));});}return target;}function _createSuper(Derived){var hasNativeReflectConstruct=_isNativeReflectConstruct();return function _createSuperInternal(){var Super=_getPrototypeOf(Derived),result;if(hasNativeReflectConstruct){var NewTarget=_getPrototypeOf(this).constructor;result=Reflect.construct(Super,arguments,NewTarget);}else {result=Super.apply(this,arguments);}return _possibleConstructorReturn(this,result);};}function _isNativeReflectConstruct(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));return true;}catch(e){return false;}}var VideoPlayer=/*#__PURE__*/function(_Component){_inherits(VideoPlayer,_Component);var _super=_createSuper(VideoPlayer);function VideoPlayer(){_classCallCheck(this,VideoPlayer);return _super.apply(this,arguments);}_createClass(VideoPlayer,[{key:"componentDidMount",value:function componentDidMount(){var _this$props=this.props,setPlayer=_this$props.setPlayer,playerProps=_objectWithoutProperties(_this$props,_excluded);this.player=new Player(_objectSpread({target:this.videoNode},playerProps));if(setPlayer){setPlayer(this.player);}}// eslint-disable-next-line camelcase
|
|
14
|
+
},{key:"UNSAFE_componentWillUpdate",value:function UNSAFE_componentWillUpdate(props){var _this=this;var createPlayer=function createPlayer(){var setPlayer=props.setPlayer,playerProps=_objectWithoutProperties(props,_excluded2);_this.player=new Player(_objectSpread({target:_this.videoNode},playerProps));if(setPlayer){setPlayer(_this.player);}};if(props.sources&&props.sources[0]&&props.sources[0].src){// sources changed
|
|
15
|
+
if(!(this.props.sources[0].src===props.sources[0].src)){if(this.player){this.player.videojs.pause();// Wait a frame until player is paused
|
|
16
|
+
setTimeout(function(){_this.player.videojs.dispose();createPlayer();},0);}else {createPlayer();}}else {// update reactive props
|
|
17
|
+
this.player.handleNewProps(props);}}}// destroy player on unmount
|
|
18
|
+
},{key:"componentWillUnmount",value:function componentWillUnmount(){var onUnmount=this.props.onUnmount;if(this.player){if(onUnmount)onUnmount(this.player);this.player.destroy();}}// wrap the player in a div with a `data-vjs-player` attribute
|
|
19
|
+
// so videojs won't create additional wrapper in the DOM
|
|
20
|
+
// see https://github.com/videojs/video.js/pull/3856
|
|
21
|
+
},{key:"render",value:function render(){var _this2=this;return/*#__PURE__*/jsx("div",{className:"data-vjs-player",children:/*#__PURE__*/jsx("div",{ref:function ref(node){_this2.videoNode=node;}})});}}]);return VideoPlayer;}(Component);
|
|
22
|
+
|
|
23
|
+
export { VideoPlayer };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import _classCallCheck from '@babel/runtime/helpers/classCallCheck';
|
|
2
|
+
import _createClass from '@babel/runtime/helpers/createClass';
|
|
3
|
+
import _inherits from '@babel/runtime/helpers/inherits';
|
|
4
|
+
import _possibleConstructorReturn from '@babel/runtime/helpers/possibleConstructorReturn';
|
|
5
|
+
import _getPrototypeOf from '@babel/runtime/helpers/getPrototypeOf';
|
|
6
|
+
import { Component } from 'react';
|
|
7
|
+
import { SeekBar } from '@vidispine/vdt-videojs';
|
|
8
|
+
import { jsx } from 'react/jsx-runtime';
|
|
9
|
+
|
|
10
|
+
function _createSuper(Derived){var hasNativeReflectConstruct=_isNativeReflectConstruct();return function _createSuperInternal(){var Super=_getPrototypeOf(Derived),result;if(hasNativeReflectConstruct){var NewTarget=_getPrototypeOf(this).constructor;result=Reflect.construct(Super,arguments,NewTarget);}else {result=Super.apply(this,arguments);}return _possibleConstructorReturn(this,result);};}function _isNativeReflectConstruct(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));return true;}catch(e){return false;}}var VideoSeekBar=/*#__PURE__*/function(_Component){_inherits(VideoSeekBar,_Component);var _super=_createSuper(VideoSeekBar);function VideoSeekBar(){_classCallCheck(this,VideoSeekBar);return _super.apply(this,arguments);}_createClass(VideoSeekBar,[{key:"componentDidMount",value:function componentDidMount(){var _this$props=this.props,player=_this$props.player,bgColor=_this$props.bgColor,fillColor=_this$props.fillColor,markersEnabled=_this$props.markersEnabled,regions=_this$props.regions,onRegionClick=_this$props.onRegionClick;// player prop is the whole react component
|
|
11
|
+
this.seekBar=new SeekBar({target:this.seekBarNode,player:player.current.player,bgColor:bgColor,fillColor:fillColor,markersEnabled:markersEnabled,/* eslint-disable-next-line react/destructuring-assignment */"in":this.props["in"],// can not use "in" with destructuring statement - reserved word
|
|
12
|
+
/* eslint-disable-next-line react/destructuring-assignment */out:this.props.out,regions:regions,onRegionClick:onRegionClick});}// eslint-disable-next-line camelcase
|
|
13
|
+
},{key:"UNSAFE_componentWillUpdate",value:function UNSAFE_componentWillUpdate(props){this.seekBar.handleNewProps(props);}},{key:"render",value:function render(){var _this=this;return/*#__PURE__*/jsx("div",{ref:function ref(node){_this.seekBarNode=node;}});}}]);return VideoSeekBar;}(Component);VideoSeekBar.Region=SeekBar.Region;
|
|
14
|
+
|
|
15
|
+
export { VideoSeekBar, VideoSeekBar as default };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import _classCallCheck from '@babel/runtime/helpers/classCallCheck';
|
|
2
|
+
import _createClass from '@babel/runtime/helpers/createClass';
|
|
3
|
+
import _inherits from '@babel/runtime/helpers/inherits';
|
|
4
|
+
import _possibleConstructorReturn from '@babel/runtime/helpers/possibleConstructorReturn';
|
|
5
|
+
import _getPrototypeOf from '@babel/runtime/helpers/getPrototypeOf';
|
|
6
|
+
import { Component } from 'react';
|
|
7
|
+
import { TimeCodeDisplay } from '@vidispine/vdt-videojs';
|
|
8
|
+
import { jsx } from 'react/jsx-runtime';
|
|
9
|
+
|
|
10
|
+
function _createSuper(Derived){var hasNativeReflectConstruct=_isNativeReflectConstruct();return function _createSuperInternal(){var Super=_getPrototypeOf(Derived),result;if(hasNativeReflectConstruct){var NewTarget=_getPrototypeOf(this).constructor;result=Reflect.construct(Super,arguments,NewTarget);}else {result=Super.apply(this,arguments);}return _possibleConstructorReturn(this,result);};}function _isNativeReflectConstruct(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));return true;}catch(e){return false;}}var VideoTimeCode=/*#__PURE__*/function(_Component){_inherits(VideoTimeCode,_Component);var _super=_createSuper(VideoTimeCode);function VideoTimeCode(){_classCallCheck(this,VideoTimeCode);return _super.apply(this,arguments);}_createClass(VideoTimeCode,[{key:"componentDidMount",value:function componentDidMount(){var player=this.props.player;// player prop is the whole react component
|
|
11
|
+
this.timeCode=new TimeCodeDisplay({target:this.timecodeNode,player:player.current.player,onInput:player.current.player});this.timeCode.update(this.props);player.current.player.setupTimeCode(this.timeCode);}// eslint-disable-next-line camelcase
|
|
12
|
+
},{key:"UNSAFE_componentWillUpdate",value:function UNSAFE_componentWillUpdate(props){this.timeCode.update(props);}},{key:"render",value:function render(){var _this=this;var _this$props=this.props,className=_this$props.className,styles=_this$props.styles;var ref=function ref(node){_this.timecodeNode=node;};return/*#__PURE__*/jsx("div",{style:styles,className:className,ref:ref});}}]);return VideoTimeCode;}(Component);
|
|
13
|
+
|
|
14
|
+
export { VideoTimeCode, VideoTimeCode as default };
|
package/dist/index.js
CHANGED
|
@@ -1,54 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
var _defineProperty = require('@babel/runtime/helpers/defineProperty');
|
|
6
|
-
var _objectWithoutProperties = require('@babel/runtime/helpers/objectWithoutProperties');
|
|
7
|
-
var _classCallCheck = require('@babel/runtime/helpers/classCallCheck');
|
|
8
|
-
var _createClass = require('@babel/runtime/helpers/createClass');
|
|
9
|
-
var _inherits = require('@babel/runtime/helpers/inherits');
|
|
10
|
-
var _possibleConstructorReturn = require('@babel/runtime/helpers/possibleConstructorReturn');
|
|
11
|
-
var _getPrototypeOf = require('@babel/runtime/helpers/getPrototypeOf');
|
|
12
|
-
var react = require('react');
|
|
13
|
-
var vdtVideojs = require('@vidispine/vdt-videojs');
|
|
14
|
-
require('@vidispine/vdt-videojs/dist/index.css');
|
|
15
|
-
var jsxRuntime = require('react/jsx-runtime');
|
|
16
|
-
|
|
17
|
-
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
18
|
-
|
|
19
|
-
var _defineProperty__default = /*#__PURE__*/_interopDefaultLegacy(_defineProperty);
|
|
20
|
-
var _objectWithoutProperties__default = /*#__PURE__*/_interopDefaultLegacy(_objectWithoutProperties);
|
|
21
|
-
var _classCallCheck__default = /*#__PURE__*/_interopDefaultLegacy(_classCallCheck);
|
|
22
|
-
var _createClass__default = /*#__PURE__*/_interopDefaultLegacy(_createClass);
|
|
23
|
-
var _inherits__default = /*#__PURE__*/_interopDefaultLegacy(_inherits);
|
|
24
|
-
var _possibleConstructorReturn__default = /*#__PURE__*/_interopDefaultLegacy(_possibleConstructorReturn);
|
|
25
|
-
var _getPrototypeOf__default = /*#__PURE__*/_interopDefaultLegacy(_getPrototypeOf);
|
|
26
|
-
|
|
27
|
-
var _excluded=["setPlayer"],_excluded2=["setPlayer"];function ownKeys$1(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols=symbols.filter(function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable;})),keys.push.apply(keys,symbols);}return keys;}function _objectSpread$1(target){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?ownKeys$1(Object(source),!0).forEach(function(key){_defineProperty__default["default"](target,key,source[key]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(target,Object.getOwnPropertyDescriptors(source)):ownKeys$1(Object(source)).forEach(function(key){Object.defineProperty(target,key,Object.getOwnPropertyDescriptor(source,key));});}return target;}function _createSuper$3(Derived){var hasNativeReflectConstruct=_isNativeReflectConstruct$3();return function _createSuperInternal(){var Super=_getPrototypeOf__default["default"](Derived),result;if(hasNativeReflectConstruct){var NewTarget=_getPrototypeOf__default["default"](this).constructor;result=Reflect.construct(Super,arguments,NewTarget);}else {result=Super.apply(this,arguments);}return _possibleConstructorReturn__default["default"](this,result);};}function _isNativeReflectConstruct$3(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));return true;}catch(e){return false;}}var VideoPlayer=/*#__PURE__*/function(_Component){_inherits__default["default"](VideoPlayer,_Component);var _super=_createSuper$3(VideoPlayer);function VideoPlayer(){_classCallCheck__default["default"](this,VideoPlayer);return _super.apply(this,arguments);}_createClass__default["default"](VideoPlayer,[{key:"componentDidMount",value:function componentDidMount(){var _this$props=this.props,setPlayer=_this$props.setPlayer,playerProps=_objectWithoutProperties__default["default"](_this$props,_excluded);this.player=new vdtVideojs.Player(_objectSpread$1({target:this.videoNode},playerProps));if(setPlayer){setPlayer(this.player);}}// eslint-disable-next-line camelcase
|
|
28
|
-
},{key:"UNSAFE_componentWillUpdate",value:function UNSAFE_componentWillUpdate(props){var _this=this;var createPlayer=function createPlayer(){var setPlayer=props.setPlayer,playerProps=_objectWithoutProperties__default["default"](props,_excluded2);_this.player=new vdtVideojs.Player(_objectSpread$1({target:_this.videoNode},playerProps));if(setPlayer){setPlayer(_this.player);}};if(props.sources&&props.sources[0]&&props.sources[0].src){// sources changed
|
|
29
|
-
if(!(this.props.sources[0].src===props.sources[0].src)){if(this.player){this.player.videojs.pause();// Wait a frame until player is paused
|
|
30
|
-
setTimeout(function(){_this.player.videojs.dispose();createPlayer();},0);}else {createPlayer();}}else {// update reactive props
|
|
31
|
-
this.player.handleNewProps(props);}}}// destroy player on unmount
|
|
32
|
-
},{key:"componentWillUnmount",value:function componentWillUnmount(){var onUnmount=this.props.onUnmount;if(this.player){if(onUnmount)onUnmount(this.player);this.player.destroy();}}// wrap the player in a div with a `data-vjs-player` attribute
|
|
33
|
-
// so videojs won't create additional wrapper in the DOM
|
|
34
|
-
// see https://github.com/videojs/video.js/pull/3856
|
|
35
|
-
},{key:"render",value:function render(){var _this2=this;return/*#__PURE__*/jsxRuntime.jsx("div",{className:"data-vjs-player",children:/*#__PURE__*/jsxRuntime.jsx("div",{ref:function ref(node){_this2.videoNode=node;}})});}}]);return VideoPlayer;}(react.Component);
|
|
36
|
-
|
|
37
|
-
function ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols=symbols.filter(function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable;})),keys.push.apply(keys,symbols);}return keys;}function _objectSpread(target){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?ownKeys(Object(source),!0).forEach(function(key){_defineProperty__default["default"](target,key,source[key]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(target,Object.getOwnPropertyDescriptors(source)):ownKeys(Object(source)).forEach(function(key){Object.defineProperty(target,key,Object.getOwnPropertyDescriptor(source,key));});}return target;}function _createSuper$2(Derived){var hasNativeReflectConstruct=_isNativeReflectConstruct$2();return function _createSuperInternal(){var Super=_getPrototypeOf__default["default"](Derived),result;if(hasNativeReflectConstruct){var NewTarget=_getPrototypeOf__default["default"](this).constructor;result=Reflect.construct(Super,arguments,NewTarget);}else {result=Super.apply(this,arguments);}return _possibleConstructorReturn__default["default"](this,result);};}function _isNativeReflectConstruct$2(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));return true;}catch(e){return false;}}var VideoControls=/*#__PURE__*/function(_Component){_inherits__default["default"](VideoControls,_Component);var _super=_createSuper$2(VideoControls);function VideoControls(){_classCallCheck__default["default"](this,VideoControls);return _super.apply(this,arguments);}_createClass__default["default"](VideoControls,[{key:"componentDidMount",value:function componentDidMount(){var player=this.props.player;// player prop is the whole react component
|
|
38
|
-
this.controls=new vdtVideojs.ExternalControls(_objectSpread(_objectSpread({target:this.controlsNode},this.props),{},{player:player.current.player}));this.controls.handleNewProps(this.props);}// eslint-disable-next-line camelcase
|
|
39
|
-
},{key:"UNSAFE_componentWillUpdate",value:function UNSAFE_componentWillUpdate(props){this.controls.handleNewProps(props);}},{key:"render",value:function render(){var _this=this;return/*#__PURE__*/jsxRuntime.jsx("div",{ref:function ref(node){_this.controlsNode=node;}});}}]);return VideoControls;}(react.Component);VideoControls.buttonNames=vdtVideojs.ExternalControls.buttonNames;
|
|
40
|
-
|
|
41
|
-
function _createSuper$1(Derived){var hasNativeReflectConstruct=_isNativeReflectConstruct$1();return function _createSuperInternal(){var Super=_getPrototypeOf__default["default"](Derived),result;if(hasNativeReflectConstruct){var NewTarget=_getPrototypeOf__default["default"](this).constructor;result=Reflect.construct(Super,arguments,NewTarget);}else {result=Super.apply(this,arguments);}return _possibleConstructorReturn__default["default"](this,result);};}function _isNativeReflectConstruct$1(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));return true;}catch(e){return false;}}var VideoSeekBar=/*#__PURE__*/function(_Component){_inherits__default["default"](VideoSeekBar,_Component);var _super=_createSuper$1(VideoSeekBar);function VideoSeekBar(){_classCallCheck__default["default"](this,VideoSeekBar);return _super.apply(this,arguments);}_createClass__default["default"](VideoSeekBar,[{key:"componentDidMount",value:function componentDidMount(){var _this$props=this.props,player=_this$props.player,bgColor=_this$props.bgColor,fillColor=_this$props.fillColor,markersEnabled=_this$props.markersEnabled,regions=_this$props.regions,onRegionClick=_this$props.onRegionClick;// player prop is the whole react component
|
|
42
|
-
this.seekBar=new vdtVideojs.SeekBar({target:this.seekBarNode,player:player.current.player,bgColor:bgColor,fillColor:fillColor,markersEnabled:markersEnabled,/* eslint-disable-next-line react/destructuring-assignment */"in":this.props["in"],// can not use "in" with destructuring statement - reserved word
|
|
43
|
-
/* eslint-disable-next-line react/destructuring-assignment */out:this.props.out,regions:regions,onRegionClick:onRegionClick});}// eslint-disable-next-line camelcase
|
|
44
|
-
},{key:"UNSAFE_componentWillUpdate",value:function UNSAFE_componentWillUpdate(props){this.seekBar.handleNewProps(props);}},{key:"render",value:function render(){var _this=this;return/*#__PURE__*/jsxRuntime.jsx("div",{ref:function ref(node){_this.seekBarNode=node;}});}}]);return VideoSeekBar;}(react.Component);VideoSeekBar.Region=vdtVideojs.SeekBar.Region;
|
|
45
|
-
|
|
46
|
-
function _createSuper(Derived){var hasNativeReflectConstruct=_isNativeReflectConstruct();return function _createSuperInternal(){var Super=_getPrototypeOf__default["default"](Derived),result;if(hasNativeReflectConstruct){var NewTarget=_getPrototypeOf__default["default"](this).constructor;result=Reflect.construct(Super,arguments,NewTarget);}else {result=Super.apply(this,arguments);}return _possibleConstructorReturn__default["default"](this,result);};}function _isNativeReflectConstruct(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));return true;}catch(e){return false;}}var VideoTimeCode=/*#__PURE__*/function(_Component){_inherits__default["default"](VideoTimeCode,_Component);var _super=_createSuper(VideoTimeCode);function VideoTimeCode(){_classCallCheck__default["default"](this,VideoTimeCode);return _super.apply(this,arguments);}_createClass__default["default"](VideoTimeCode,[{key:"componentDidMount",value:function componentDidMount(){var player=this.props.player;// player prop is the whole react component
|
|
47
|
-
this.timeCode=new vdtVideojs.TimeCodeDisplay({target:this.timecodeNode,player:player.current.player,onInput:player.current.player});this.timeCode.update(this.props);player.current.player.setupTimeCode(this.timeCode);}// eslint-disable-next-line camelcase
|
|
48
|
-
},{key:"UNSAFE_componentWillUpdate",value:function UNSAFE_componentWillUpdate(props){this.timeCode.update(props);}},{key:"render",value:function render(){var _this=this;var _this$props=this.props,className=_this$props.className,styles=_this$props.styles;var ref=function ref(node){_this.timecodeNode=node;};return/*#__PURE__*/jsxRuntime.jsx("div",{style:styles,className:className,ref:ref});}}]);return VideoTimeCode;}(react.Component);
|
|
49
|
-
|
|
50
|
-
exports.VideoControls = VideoControls;
|
|
51
|
-
exports.VideoPlayer = VideoPlayer;
|
|
52
|
-
exports.VideoSeekBar = VideoSeekBar;
|
|
53
|
-
exports.VideoTimeCode = VideoTimeCode;
|
|
54
|
-
//# sourceMappingURL=index.js.map
|
|
1
|
+
export { VideoPlayer } from './VideoPlayer.js';
|
|
2
|
+
export { VideoControls } from './VideoControls.js';
|
|
3
|
+
export { VideoSeekBar } from './VideoSeekBar.js';
|
|
4
|
+
export { VideoTimeCode } from './VideoTimeCode.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vidispine/vdt-videojs-react",
|
|
3
|
-
"version": "23.1.0-pre.
|
|
3
|
+
"version": "23.1.0-pre.3",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -13,7 +13,8 @@
|
|
|
13
13
|
"directory": "packages/vdt-videojs-react"
|
|
14
14
|
},
|
|
15
15
|
"main": "dist/index.js",
|
|
16
|
-
"module": "dist/index.
|
|
16
|
+
"module": "dist/index.js",
|
|
17
|
+
"sideEffects": false,
|
|
17
18
|
"files": [
|
|
18
19
|
"dist"
|
|
19
20
|
],
|
|
@@ -24,7 +25,7 @@
|
|
|
24
25
|
},
|
|
25
26
|
"dependencies": {
|
|
26
27
|
"@babel/runtime": "^7.20.1",
|
|
27
|
-
"@vidispine/vdt-videojs": "23.1.0-pre.
|
|
28
|
+
"@vidispine/vdt-videojs": "23.1.0-pre.3"
|
|
28
29
|
},
|
|
29
30
|
"peerDependencies": {
|
|
30
31
|
"react": "^17.0.0"
|
|
@@ -39,10 +40,10 @@
|
|
|
39
40
|
"@rollup/plugin-commonjs": "21.1.0",
|
|
40
41
|
"@rollup/plugin-json": "4.1.0",
|
|
41
42
|
"@rollup/plugin-node-resolve": "13.3.0",
|
|
42
|
-
"@vidispine/eslint-config-mdx": "23.1.0-pre.
|
|
43
|
-
"@vidispine/eslint-config-react": "23.1.0-pre.
|
|
44
|
-
"@vidispine/eslint-config-storybook": "23.1.0-pre.
|
|
45
|
-
"@vidispine/prettier-config": "23.1.0-pre.
|
|
43
|
+
"@vidispine/eslint-config-mdx": "23.1.0-pre.3",
|
|
44
|
+
"@vidispine/eslint-config-react": "23.1.0-pre.3",
|
|
45
|
+
"@vidispine/eslint-config-storybook": "23.1.0-pre.3",
|
|
46
|
+
"@vidispine/prettier-config": "23.1.0-pre.3",
|
|
46
47
|
"eslint": "8.28.0",
|
|
47
48
|
"prettier": "2.8.0",
|
|
48
49
|
"rimraf": "3.0.2",
|
package/dist/index.es.js
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
2
|
-
import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
|
|
3
|
-
import _classCallCheck from '@babel/runtime/helpers/classCallCheck';
|
|
4
|
-
import _createClass from '@babel/runtime/helpers/createClass';
|
|
5
|
-
import _inherits from '@babel/runtime/helpers/inherits';
|
|
6
|
-
import _possibleConstructorReturn from '@babel/runtime/helpers/possibleConstructorReturn';
|
|
7
|
-
import _getPrototypeOf from '@babel/runtime/helpers/getPrototypeOf';
|
|
8
|
-
import { Component } from 'react';
|
|
9
|
-
import { Player, ExternalControls, SeekBar, TimeCodeDisplay } from '@vidispine/vdt-videojs';
|
|
10
|
-
import '@vidispine/vdt-videojs/dist/index.css';
|
|
11
|
-
import { jsx } from 'react/jsx-runtime';
|
|
12
|
-
|
|
13
|
-
var _excluded=["setPlayer"],_excluded2=["setPlayer"];function ownKeys$1(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols=symbols.filter(function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable;})),keys.push.apply(keys,symbols);}return keys;}function _objectSpread$1(target){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?ownKeys$1(Object(source),!0).forEach(function(key){_defineProperty(target,key,source[key]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(target,Object.getOwnPropertyDescriptors(source)):ownKeys$1(Object(source)).forEach(function(key){Object.defineProperty(target,key,Object.getOwnPropertyDescriptor(source,key));});}return target;}function _createSuper$3(Derived){var hasNativeReflectConstruct=_isNativeReflectConstruct$3();return function _createSuperInternal(){var Super=_getPrototypeOf(Derived),result;if(hasNativeReflectConstruct){var NewTarget=_getPrototypeOf(this).constructor;result=Reflect.construct(Super,arguments,NewTarget);}else {result=Super.apply(this,arguments);}return _possibleConstructorReturn(this,result);};}function _isNativeReflectConstruct$3(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));return true;}catch(e){return false;}}var VideoPlayer=/*#__PURE__*/function(_Component){_inherits(VideoPlayer,_Component);var _super=_createSuper$3(VideoPlayer);function VideoPlayer(){_classCallCheck(this,VideoPlayer);return _super.apply(this,arguments);}_createClass(VideoPlayer,[{key:"componentDidMount",value:function componentDidMount(){var _this$props=this.props,setPlayer=_this$props.setPlayer,playerProps=_objectWithoutProperties(_this$props,_excluded);this.player=new Player(_objectSpread$1({target:this.videoNode},playerProps));if(setPlayer){setPlayer(this.player);}}// eslint-disable-next-line camelcase
|
|
14
|
-
},{key:"UNSAFE_componentWillUpdate",value:function UNSAFE_componentWillUpdate(props){var _this=this;var createPlayer=function createPlayer(){var setPlayer=props.setPlayer,playerProps=_objectWithoutProperties(props,_excluded2);_this.player=new Player(_objectSpread$1({target:_this.videoNode},playerProps));if(setPlayer){setPlayer(_this.player);}};if(props.sources&&props.sources[0]&&props.sources[0].src){// sources changed
|
|
15
|
-
if(!(this.props.sources[0].src===props.sources[0].src)){if(this.player){this.player.videojs.pause();// Wait a frame until player is paused
|
|
16
|
-
setTimeout(function(){_this.player.videojs.dispose();createPlayer();},0);}else {createPlayer();}}else {// update reactive props
|
|
17
|
-
this.player.handleNewProps(props);}}}// destroy player on unmount
|
|
18
|
-
},{key:"componentWillUnmount",value:function componentWillUnmount(){var onUnmount=this.props.onUnmount;if(this.player){if(onUnmount)onUnmount(this.player);this.player.destroy();}}// wrap the player in a div with a `data-vjs-player` attribute
|
|
19
|
-
// so videojs won't create additional wrapper in the DOM
|
|
20
|
-
// see https://github.com/videojs/video.js/pull/3856
|
|
21
|
-
},{key:"render",value:function render(){var _this2=this;return/*#__PURE__*/jsx("div",{className:"data-vjs-player",children:/*#__PURE__*/jsx("div",{ref:function ref(node){_this2.videoNode=node;}})});}}]);return VideoPlayer;}(Component);
|
|
22
|
-
|
|
23
|
-
function ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols=symbols.filter(function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable;})),keys.push.apply(keys,symbols);}return keys;}function _objectSpread(target){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?ownKeys(Object(source),!0).forEach(function(key){_defineProperty(target,key,source[key]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(target,Object.getOwnPropertyDescriptors(source)):ownKeys(Object(source)).forEach(function(key){Object.defineProperty(target,key,Object.getOwnPropertyDescriptor(source,key));});}return target;}function _createSuper$2(Derived){var hasNativeReflectConstruct=_isNativeReflectConstruct$2();return function _createSuperInternal(){var Super=_getPrototypeOf(Derived),result;if(hasNativeReflectConstruct){var NewTarget=_getPrototypeOf(this).constructor;result=Reflect.construct(Super,arguments,NewTarget);}else {result=Super.apply(this,arguments);}return _possibleConstructorReturn(this,result);};}function _isNativeReflectConstruct$2(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));return true;}catch(e){return false;}}var VideoControls=/*#__PURE__*/function(_Component){_inherits(VideoControls,_Component);var _super=_createSuper$2(VideoControls);function VideoControls(){_classCallCheck(this,VideoControls);return _super.apply(this,arguments);}_createClass(VideoControls,[{key:"componentDidMount",value:function componentDidMount(){var player=this.props.player;// player prop is the whole react component
|
|
24
|
-
this.controls=new ExternalControls(_objectSpread(_objectSpread({target:this.controlsNode},this.props),{},{player:player.current.player}));this.controls.handleNewProps(this.props);}// eslint-disable-next-line camelcase
|
|
25
|
-
},{key:"UNSAFE_componentWillUpdate",value:function UNSAFE_componentWillUpdate(props){this.controls.handleNewProps(props);}},{key:"render",value:function render(){var _this=this;return/*#__PURE__*/jsx("div",{ref:function ref(node){_this.controlsNode=node;}});}}]);return VideoControls;}(Component);VideoControls.buttonNames=ExternalControls.buttonNames;
|
|
26
|
-
|
|
27
|
-
function _createSuper$1(Derived){var hasNativeReflectConstruct=_isNativeReflectConstruct$1();return function _createSuperInternal(){var Super=_getPrototypeOf(Derived),result;if(hasNativeReflectConstruct){var NewTarget=_getPrototypeOf(this).constructor;result=Reflect.construct(Super,arguments,NewTarget);}else {result=Super.apply(this,arguments);}return _possibleConstructorReturn(this,result);};}function _isNativeReflectConstruct$1(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));return true;}catch(e){return false;}}var VideoSeekBar=/*#__PURE__*/function(_Component){_inherits(VideoSeekBar,_Component);var _super=_createSuper$1(VideoSeekBar);function VideoSeekBar(){_classCallCheck(this,VideoSeekBar);return _super.apply(this,arguments);}_createClass(VideoSeekBar,[{key:"componentDidMount",value:function componentDidMount(){var _this$props=this.props,player=_this$props.player,bgColor=_this$props.bgColor,fillColor=_this$props.fillColor,markersEnabled=_this$props.markersEnabled,regions=_this$props.regions,onRegionClick=_this$props.onRegionClick;// player prop is the whole react component
|
|
28
|
-
this.seekBar=new SeekBar({target:this.seekBarNode,player:player.current.player,bgColor:bgColor,fillColor:fillColor,markersEnabled:markersEnabled,/* eslint-disable-next-line react/destructuring-assignment */"in":this.props["in"],// can not use "in" with destructuring statement - reserved word
|
|
29
|
-
/* eslint-disable-next-line react/destructuring-assignment */out:this.props.out,regions:regions,onRegionClick:onRegionClick});}// eslint-disable-next-line camelcase
|
|
30
|
-
},{key:"UNSAFE_componentWillUpdate",value:function UNSAFE_componentWillUpdate(props){this.seekBar.handleNewProps(props);}},{key:"render",value:function render(){var _this=this;return/*#__PURE__*/jsx("div",{ref:function ref(node){_this.seekBarNode=node;}});}}]);return VideoSeekBar;}(Component);VideoSeekBar.Region=SeekBar.Region;
|
|
31
|
-
|
|
32
|
-
function _createSuper(Derived){var hasNativeReflectConstruct=_isNativeReflectConstruct();return function _createSuperInternal(){var Super=_getPrototypeOf(Derived),result;if(hasNativeReflectConstruct){var NewTarget=_getPrototypeOf(this).constructor;result=Reflect.construct(Super,arguments,NewTarget);}else {result=Super.apply(this,arguments);}return _possibleConstructorReturn(this,result);};}function _isNativeReflectConstruct(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));return true;}catch(e){return false;}}var VideoTimeCode=/*#__PURE__*/function(_Component){_inherits(VideoTimeCode,_Component);var _super=_createSuper(VideoTimeCode);function VideoTimeCode(){_classCallCheck(this,VideoTimeCode);return _super.apply(this,arguments);}_createClass(VideoTimeCode,[{key:"componentDidMount",value:function componentDidMount(){var player=this.props.player;// player prop is the whole react component
|
|
33
|
-
this.timeCode=new TimeCodeDisplay({target:this.timecodeNode,player:player.current.player,onInput:player.current.player});this.timeCode.update(this.props);player.current.player.setupTimeCode(this.timeCode);}// eslint-disable-next-line camelcase
|
|
34
|
-
},{key:"UNSAFE_componentWillUpdate",value:function UNSAFE_componentWillUpdate(props){this.timeCode.update(props);}},{key:"render",value:function render(){var _this=this;var _this$props=this.props,className=_this$props.className,styles=_this$props.styles;var ref=function ref(node){_this.timecodeNode=node;};return/*#__PURE__*/jsx("div",{style:styles,className:className,ref:ref});}}]);return VideoTimeCode;}(Component);
|
|
35
|
-
|
|
36
|
-
export { VideoControls, VideoPlayer, VideoSeekBar, VideoTimeCode };
|
|
37
|
-
//# sourceMappingURL=index.es.js.map
|
package/dist/index.es.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.es.js","sources":["../src/VideoPlayer.js","../src/VideoControls.js","../src/VideoSeekBar.js","../src/VideoTimeCode.js"],"sourcesContent":["/* eslint-disable react/destructuring-assignment */\n/* eslint-disable import/prefer-default-export */\nimport { Component } from 'react';\n\nimport { Player } from '@vidispine/vdt-videojs';\n\nimport '@vidispine/vdt-videojs/dist/index.css';\n\nexport class VideoPlayer extends Component {\n componentDidMount() {\n const { setPlayer, ...playerProps } = this.props;\n\n this.player = new Player({\n target: this.videoNode,\n ...playerProps,\n });\n\n if (setPlayer) {\n setPlayer(this.player);\n }\n }\n\n // eslint-disable-next-line camelcase\n UNSAFE_componentWillUpdate(props) {\n const createPlayer = () => {\n const { setPlayer, ...playerProps } = props;\n this.player = new Player({\n target: this.videoNode,\n ...playerProps,\n });\n if (setPlayer) {\n setPlayer(this.player);\n }\n };\n\n if (props.sources && props.sources[0] && props.sources[0].src) {\n // sources changed\n if (!(this.props.sources[0].src === props.sources[0].src)) {\n if (this.player) {\n this.player.videojs.pause();\n // Wait a frame until player is paused\n setTimeout(() => {\n this.player.videojs.dispose();\n createPlayer();\n }, 0);\n } else {\n createPlayer();\n }\n } else {\n // update reactive props\n this.player.handleNewProps(props);\n }\n }\n }\n\n // destroy player on unmount\n componentWillUnmount() {\n const { onUnmount } = this.props;\n\n if (this.player) {\n if (onUnmount) onUnmount(this.player);\n this.player.destroy();\n }\n }\n\n // wrap the player in a div with a `data-vjs-player` attribute\n // so videojs won't create additional wrapper in the DOM\n // see https://github.com/videojs/video.js/pull/3856\n render() {\n return (\n <div className=\"data-vjs-player\">\n <div\n ref={(node) => {\n this.videoNode = node;\n }}\n />\n </div>\n );\n }\n}\n","/* eslint-disable import/prefer-default-export */\nimport { Component } from 'react';\n\nimport { ExternalControls } from '@vidispine/vdt-videojs';\n\nexport class VideoControls extends Component {\n componentDidMount() {\n const { player } = this.props; // player prop is the whole react component\n this.controls = new ExternalControls({\n target: this.controlsNode,\n ...this.props,\n player: player.current.player,\n });\n\n this.controls.handleNewProps(this.props);\n }\n\n // eslint-disable-next-line camelcase\n UNSAFE_componentWillUpdate(props) {\n this.controls.handleNewProps(props);\n }\n\n render() {\n return (\n <div\n ref={(node) => {\n this.controlsNode = node;\n }}\n />\n );\n }\n}\n\nVideoControls.buttonNames = ExternalControls.buttonNames;\n","import { Component } from 'react';\n\nimport { SeekBar } from '@vidispine/vdt-videojs';\n\nexport class VideoSeekBar extends Component {\n componentDidMount() {\n const { player, bgColor, fillColor, markersEnabled, regions, onRegionClick } = this.props; // player prop is the whole react component\n\n this.seekBar = new SeekBar({\n target: this.seekBarNode,\n player: player.current.player,\n bgColor,\n fillColor,\n markersEnabled,\n /* eslint-disable-next-line react/destructuring-assignment */\n in: this.props.in, // can not use \"in\" with destructuring statement - reserved word\n /* eslint-disable-next-line react/destructuring-assignment */\n out: this.props.out,\n regions,\n onRegionClick,\n });\n }\n\n // eslint-disable-next-line camelcase\n UNSAFE_componentWillUpdate(props) {\n this.seekBar.handleNewProps(props);\n }\n\n render() {\n return (\n <div\n ref={(node) => {\n this.seekBarNode = node;\n }}\n />\n );\n }\n}\n\nVideoSeekBar.Region = SeekBar.Region;\n\nexport default VideoSeekBar;\n","import { Component } from 'react';\n\nimport { TimeCodeDisplay } from '@vidispine/vdt-videojs';\n\nexport class VideoTimeCode extends Component {\n componentDidMount() {\n const { player } = this.props; // player prop is the whole react component\n this.timeCode = new TimeCodeDisplay({\n target: this.timecodeNode,\n player: player.current.player,\n onInput: player.current.player,\n });\n\n this.timeCode.update(this.props);\n player.current.player.setupTimeCode(this.timeCode);\n }\n\n // eslint-disable-next-line camelcase\n UNSAFE_componentWillUpdate(props) {\n this.timeCode.update(props);\n }\n\n render() {\n const { className, styles } = this.props;\n const ref = (node) => {\n this.timecodeNode = node;\n };\n return <div style={styles} className={className} ref={ref} />;\n }\n}\n\nexport default VideoTimeCode;\n"],"names":["VideoPlayer","_createSuper","props","setPlayer","playerProps","player","Player","target","videoNode","createPlayer","sources","src","videojs","pause","setTimeout","dispose","handleNewProps","onUnmount","destroy","_jsx","node","Component","VideoControls","controls","ExternalControls","controlsNode","current","buttonNames","_isNativeReflectConstruct","VideoSeekBar","bgColor","fillColor","markersEnabled","regions","onRegionClick","seekBar","SeekBar","seekBarNode","out","Region","VideoTimeCode","timeCode","TimeCodeDisplay","timecodeNode","onInput","update","setupTimeCode","className","styles","ref"],"mappings":";;;;;;;;;;;;2/CAQaA,IAAAA,W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,CAAA,CAAA,CAxBgC5B,SAAS;;;;"}
|
package/dist/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../src/VideoPlayer.js","../src/VideoControls.js","../src/VideoSeekBar.js","../src/VideoTimeCode.js"],"sourcesContent":["/* eslint-disable react/destructuring-assignment */\n/* eslint-disable import/prefer-default-export */\nimport { Component } from 'react';\n\nimport { Player } from '@vidispine/vdt-videojs';\n\nimport '@vidispine/vdt-videojs/dist/index.css';\n\nexport class VideoPlayer extends Component {\n componentDidMount() {\n const { setPlayer, ...playerProps } = this.props;\n\n this.player = new Player({\n target: this.videoNode,\n ...playerProps,\n });\n\n if (setPlayer) {\n setPlayer(this.player);\n }\n }\n\n // eslint-disable-next-line camelcase\n UNSAFE_componentWillUpdate(props) {\n const createPlayer = () => {\n const { setPlayer, ...playerProps } = props;\n this.player = new Player({\n target: this.videoNode,\n ...playerProps,\n });\n if (setPlayer) {\n setPlayer(this.player);\n }\n };\n\n if (props.sources && props.sources[0] && props.sources[0].src) {\n // sources changed\n if (!(this.props.sources[0].src === props.sources[0].src)) {\n if (this.player) {\n this.player.videojs.pause();\n // Wait a frame until player is paused\n setTimeout(() => {\n this.player.videojs.dispose();\n createPlayer();\n }, 0);\n } else {\n createPlayer();\n }\n } else {\n // update reactive props\n this.player.handleNewProps(props);\n }\n }\n }\n\n // destroy player on unmount\n componentWillUnmount() {\n const { onUnmount } = this.props;\n\n if (this.player) {\n if (onUnmount) onUnmount(this.player);\n this.player.destroy();\n }\n }\n\n // wrap the player in a div with a `data-vjs-player` attribute\n // so videojs won't create additional wrapper in the DOM\n // see https://github.com/videojs/video.js/pull/3856\n render() {\n return (\n <div className=\"data-vjs-player\">\n <div\n ref={(node) => {\n this.videoNode = node;\n }}\n />\n </div>\n );\n }\n}\n","/* eslint-disable import/prefer-default-export */\nimport { Component } from 'react';\n\nimport { ExternalControls } from '@vidispine/vdt-videojs';\n\nexport class VideoControls extends Component {\n componentDidMount() {\n const { player } = this.props; // player prop is the whole react component\n this.controls = new ExternalControls({\n target: this.controlsNode,\n ...this.props,\n player: player.current.player,\n });\n\n this.controls.handleNewProps(this.props);\n }\n\n // eslint-disable-next-line camelcase\n UNSAFE_componentWillUpdate(props) {\n this.controls.handleNewProps(props);\n }\n\n render() {\n return (\n <div\n ref={(node) => {\n this.controlsNode = node;\n }}\n />\n );\n }\n}\n\nVideoControls.buttonNames = ExternalControls.buttonNames;\n","import { Component } from 'react';\n\nimport { SeekBar } from '@vidispine/vdt-videojs';\n\nexport class VideoSeekBar extends Component {\n componentDidMount() {\n const { player, bgColor, fillColor, markersEnabled, regions, onRegionClick } = this.props; // player prop is the whole react component\n\n this.seekBar = new SeekBar({\n target: this.seekBarNode,\n player: player.current.player,\n bgColor,\n fillColor,\n markersEnabled,\n /* eslint-disable-next-line react/destructuring-assignment */\n in: this.props.in, // can not use \"in\" with destructuring statement - reserved word\n /* eslint-disable-next-line react/destructuring-assignment */\n out: this.props.out,\n regions,\n onRegionClick,\n });\n }\n\n // eslint-disable-next-line camelcase\n UNSAFE_componentWillUpdate(props) {\n this.seekBar.handleNewProps(props);\n }\n\n render() {\n return (\n <div\n ref={(node) => {\n this.seekBarNode = node;\n }}\n />\n );\n }\n}\n\nVideoSeekBar.Region = SeekBar.Region;\n\nexport default VideoSeekBar;\n","import { Component } from 'react';\n\nimport { TimeCodeDisplay } from '@vidispine/vdt-videojs';\n\nexport class VideoTimeCode extends Component {\n componentDidMount() {\n const { player } = this.props; // player prop is the whole react component\n this.timeCode = new TimeCodeDisplay({\n target: this.timecodeNode,\n player: player.current.player,\n onInput: player.current.player,\n });\n\n this.timeCode.update(this.props);\n player.current.player.setupTimeCode(this.timeCode);\n }\n\n // eslint-disable-next-line camelcase\n UNSAFE_componentWillUpdate(props) {\n this.timeCode.update(props);\n }\n\n render() {\n const { className, styles } = this.props;\n const ref = (node) => {\n this.timecodeNode = node;\n };\n return <div style={styles} className={className} ref={ref} />;\n }\n}\n\nexport default VideoTimeCode;\n"],"names":["VideoPlayer","_inherits","_createSuper","_classCallCheck","_createClass","props","setPlayer","playerProps","_objectWithoutProperties","player","Player","target","videoNode","createPlayer","sources","src","videojs","pause","setTimeout","dispose","handleNewProps","onUnmount","destroy","_jsx","node","Component","VideoControls","controls","ExternalControls","controlsNode","current","buttonNames","_isNativeReflectConstruct","_getPrototypeOf","_possibleConstructorReturn","VideoSeekBar","bgColor","fillColor","markersEnabled","regions","onRegionClick","seekBar","SeekBar","seekBarNode","out","Region","VideoTimeCode","timeCode","TimeCodeDisplay","timecodeNode","onInput","update","setupTimeCode","className","styles","ref"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;2kDAQaA,IAAAA,WAAW,cACtB,SAAA,UAAA,CAAA,CAAAC,6BAAA,CAAA,WAAA,CAAA,UAAA,CAAA,CAAA,IAAA,MAAA,CAAAC,cAAA,CAAA,WAAA,CAAA,CAAA,SAAA,WAAA,EAAA,CAAAC,mCAAA,CAAA,IAAA,CAAA,WAAA,CAAA,CAAA,OAAA,MAAA,CAAA,KAAA,CAAA,IAAA,CAAA,SAAA,CAAA,CAAA,CAAAC,gCAAA,CAAA,WAAA,CAAA,CAAA,CAAA,GAAA,CAAA,mBAAA,CAAA,KAAA,CAAA,SAAA,iBAAA,EAAoB,CAClB,IAAA,WAAA,CAAsC,IAAI,CAACC,KAAK,CAAxCC,SAAS,CAAA,WAAA,CAATA,SAAS,CAAKC,WAAW,CAAAC,4CAAA,CAAA,WAAA,CAAA,SAAA,CAAA,CAEjC,IAAI,CAACC,MAAM,CAAG,IAAIC,iBAAM,CACtBC,eAAAA,CAAAA,CAAAA,MAAM,CAAE,IAAI,CAACC,SAAS,CACnBL,CAAAA,WAAW,CACd,CAAA,CAEF,GAAID,SAAS,CAAE,CACbA,SAAS,CAAC,IAAI,CAACG,MAAM,CAAC,CACxB,CACF,CAEA;AAAA,CAAA,CAAA,CAAA,GAAA,CAAA,4BAAA,CAAA,KAAA,CACA,SAA2BJ,0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