@desynova-digital/player 3.9.3 → 3.9.5
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/Manager.js +0 -0
- package/actions/player.js +0 -0
- package/actions/video.js +0 -0
- package/colors.js +0 -0
- package/components/AudioMeter.js +0 -0
- package/components/BigPlayButton.js +2 -2
- package/components/ImageViewer.js +0 -0
- package/components/MarkerBar.js +1 -1
- package/components/Menu.js +0 -0
- package/components/Player.js +0 -0
- package/components/PlayerHeader.js +7 -7
- package/components/Playlist.js +3 -3
- package/components/PointersBar.js +4 -4
- package/components/PosterImage.js +0 -0
- package/components/SDOutline.js +0 -0
- package/components/Shortcut.js +2 -2
- package/components/Slider.js +1 -1
- package/components/TagsBar.js +1 -1
- package/components/Video.js +38 -23
- package/components/control-bar/AudioTracksMenuButton.js +0 -0
- package/components/control-bar/CameraButton.js +0 -0
- package/components/control-bar/CommentsButton.js +0 -0
- package/components/control-bar/ControlBar.js +2 -2
- package/components/control-bar/EditorControlMenuButton.js +5 -5
- package/components/control-bar/ForwardControl.js +0 -0
- package/components/control-bar/ForwardReplayControl.js +1 -1
- package/components/control-bar/FullscreenToggle.js +0 -0
- package/components/control-bar/PlayToggle.js +1 -1
- package/components/control-bar/ReplayControl.js +0 -0
- package/components/control-bar/SettingsMenuButton.js +0 -0
- package/components/control-bar/SubtitleLanguagesMenuButton.js +0 -0
- package/components/control-bar/VolumeMenuButton.js +0 -0
- package/components/control-bar/ZoomMenuButton.js +0 -0
- package/components/marking-controls/MarkInControl.js +0 -0
- package/components/marking-controls/MarkOutControl.js +0 -0
- package/components/marking-controls/MarkingAddButton.js +0 -0
- package/components/marking-controls/MarkingControl.js +1 -1
- package/components/marking-controls/MarkingDeleteButton.js +0 -0
- package/components/marking-controls/MarkingDuration.js +0 -0
- package/components/marking-controls/MarkingPreview.js +0 -0
- package/components/progress-bar/AudioWaveform.js +0 -0
- package/components/progress-bar/LoadProgressBar.js +0 -0
- package/components/progress-bar/MouseTimeDisplay.js +0 -0
- package/components/progress-bar/PlayProgressBar.js +0 -0
- package/components/progress-bar/ProgressControl.js +0 -0
- package/components/progress-bar/SeekBar.js +0 -0
- package/components/progress-bar/Timeline.js +0 -0
- package/components/settings-menu-control/PlaybackRateControl.js +0 -0
- package/components/settings-menu-control/SafeAreaControl.js +1 -1
- package/components/settings-menu-control/SettingsMenu.js +0 -0
- package/components/settings-menu-control/SubtitleControl.js +0 -0
- package/components/time-controls/CurrentTimeDisplay.js +1 -1
- package/components/time-controls/DurationDisplay.js +1 -1
- package/components/time-controls/TimeDivider.js +1 -1
- package/components/volume-control/VolumeBar.js +0 -0
- package/components/volume-control/VolumeControl.js +0 -0
- package/components/volume-control/VolumeLevel.js +0 -0
- package/components/zoom-control/ZoomBar.js +1 -1
- package/components/zoom-control/ZoomLevel.js +0 -0
- package/index.js +0 -0
- package/package.json +1 -1
- package/reducers/index.js +0 -0
- package/reducers/operation.js +0 -0
- package/reducers/player.js +0 -0
- package/utils/browser.js +0 -0
- package/utils/dom.js +0 -0
- package/utils/fullscreen.js +0 -0
- package/utils/index.js +0 -0
package/Manager.js
CHANGED
|
File without changes
|
package/actions/player.js
CHANGED
|
File without changes
|
package/actions/video.js
CHANGED
|
File without changes
|
package/colors.js
CHANGED
|
File without changes
|
package/components/AudioMeter.js
CHANGED
|
File without changes
|
|
@@ -46,8 +46,8 @@ var defaultProps = {
|
|
|
46
46
|
|
|
47
47
|
var PlayButton = (0, _styledComponents2.default)(_components.Button).withConfig({
|
|
48
48
|
displayName: 'BigPlayButton__PlayButton',
|
|
49
|
-
componentId: 'o6dg96-0'
|
|
50
|
-
})(['background:', ';width:100px;height:100px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);border:none;&:hover,&:focus{background:', ';}'], function (props) {
|
|
49
|
+
componentId: 'sc-o6dg96-0'
|
|
50
|
+
})(['background:', ';width:100px;height:100px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);border:none;z-index:1;&:hover,&:focus{background:', ';}'], function (props) {
|
|
51
51
|
return _colors2.default.common.video[props.assetType].buttonGradient;
|
|
52
52
|
}, function (props) {
|
|
53
53
|
return _colors2.default.common.video[props.assetType].buttonGradient;
|
|
File without changes
|
package/components/MarkerBar.js
CHANGED
|
@@ -42,7 +42,7 @@ var defaultProps = {
|
|
|
42
42
|
|
|
43
43
|
var MarkerBlock = _styledComponents2.default.div.withConfig({
|
|
44
44
|
displayName: 'MarkerBar__MarkerBlock',
|
|
45
|
-
componentId: 'yn9zkf-0'
|
|
45
|
+
componentId: 'sc-yn9zkf-0'
|
|
46
46
|
})(['width:100%;height:30px;position:', ';bottom:', ';.marker{position:absolute;width:2px;height:20px;p{font-family:SFUIText-Medium;font-size:10px;color:#ffffff;position:absolute;left:50%;transform:translateX(-50%);}', '{position:absolute;display:block;left:50%;top:10px;transform:translateX(-50%);}}'], function (props) {
|
|
47
47
|
return props.controlType === 'advanced' && !props.isFullscreen ? 'relative' : 'absolute';
|
|
48
48
|
}, function (props) {
|
package/components/Menu.js
CHANGED
|
File without changes
|
package/components/Player.js
CHANGED
|
File without changes
|
|
@@ -56,7 +56,7 @@ var propTypes = {
|
|
|
56
56
|
|
|
57
57
|
var PlayerHeaderBlock = _styledComponents2.default.div.withConfig({
|
|
58
58
|
displayName: 'PlayerHeader__PlayerHeaderBlock',
|
|
59
|
-
componentId: 'conl4h-0'
|
|
59
|
+
componentId: 'sc-conl4h-0'
|
|
60
60
|
})(['position:relative;display:flex;justify-content:flex-start;align-items:center;background:#000;transition:all 250ms ease-in-out;height:', ';width:100%;z-index:1;position:', ';top:', ';overflow:', ';'], function (props) {
|
|
61
61
|
return props.player === 'panel' && props.active || props.player !== 'panel' ? '60px' : '0px';
|
|
62
62
|
}, function (props) {
|
|
@@ -69,7 +69,7 @@ var PlayerHeaderBlock = _styledComponents2.default.div.withConfig({
|
|
|
69
69
|
|
|
70
70
|
var VideoTitle = _styledComponents2.default.button.withConfig({
|
|
71
71
|
displayName: 'PlayerHeader__VideoTitle',
|
|
72
|
-
componentId: 'conl4h-1'
|
|
72
|
+
componentId: 'sc-conl4h-1'
|
|
73
73
|
})(['font-family:SFUIText-Regular;text-align:left;padding:0;font-size:13px;color:#ffffff;background-color:transparent;border:none;outline:none;cursor:', ';'], function (_ref) {
|
|
74
74
|
var isShowPageAvailable = _ref.isShowPageAvailable;
|
|
75
75
|
return isShowPageAvailable ? 'pointer' : 'default';
|
|
@@ -77,12 +77,12 @@ var VideoTitle = _styledComponents2.default.button.withConfig({
|
|
|
77
77
|
|
|
78
78
|
var PlayerDetails = _styledComponents2.default.div.withConfig({
|
|
79
79
|
displayName: 'PlayerHeader__PlayerDetails',
|
|
80
|
-
componentId: 'conl4h-2'
|
|
80
|
+
componentId: 'sc-conl4h-2'
|
|
81
81
|
})(['margin-left:20px;text-align:left;.video-bottom-container{display:flex;justify-content:flex-start;align-items:center;margin-top:8px;.video-sub-title{color:#afb2ba;font-size:10px;font-family:SFUIText-Medium;margin-right:5px;}.version-category{font-size:10px;letter-spacing:0.4px;color:#fff;font-family:SFUIText-Regular;text-transform:uppercase;}.versions-dropdown-block{position:relative;&:hover{.active-version{cursor:pointer;border-color:#00cec6 !important;}.versions-dropdown-container{visibility:visible;opacity:1;}}.active-version{transition:all 350ms ease-in-out;border:1px solid #fff;border-radius:10px;margin-left:5px;padding:3px 10px;color:#fff;font-size:10px;font-family:SFUIText-Regular;font-weight:bold;pointer-events:none;}.versions-dropdown-container{padding-top:15px;position:absolute;top:13px;left:50%;transform:translateX(-50%);visibility:hidden;opacity:0;transition:all 450ms ease-in-out;&:after{content:\'\';border-bottom:6px solid #00cec6;border-right:6px solid transparent;border-left:6px solid transparent;position:absolute;top:9px;left:50%;transform:translateX(-50%);}.versions-container{overflow-y:auto;overflow-x:hidden;max-height:204px;box-shadow:0px 12px 24px rgb(0 0 0 / 20%);min-width:250px;background:#fff;border-radius:10px;.ingest-versions-container{border-bottom:1px solid rgba(0,0,0,0.1);padding:10px 15px;.ingest-version-block{display:flex;justify-content:space-between;align-items:center;.upload-type{width:6px;height:6px;border-radius:100%;overflow:hidden;left:5px;position:absolute;}.ingest-version-name{color:#182738;font-size:11px;font-family:SFUIText-Regular;font-weight:bold;margin-right:10px;}.video-versions-container{display:inline-flex;align-items:center;.more-dropdown-icon{padding-top:8px;cursor:pointer;}path{fill:#182738;}}}}&::-webkit-scrollbar{width:5px;background-color:#6d6a6a;}}}}.video-time-block{margin-left:5px;display:flex;justify-content:center;align-items:center;.tv-time,.ott-time{display:flex;justify-content:center;align-items:center;margin-left:10px;p{margin-left:5px;color:rgb(175,178,186);font-family:\'SFUIText-Regular\';font-size:10px;align-self:self-end;}}}}']);
|
|
82
82
|
|
|
83
83
|
var VersionBlock = _styledComponents2.default.div.withConfig({
|
|
84
84
|
displayName: 'PlayerHeader__VersionBlock',
|
|
85
|
-
componentId: 'conl4h-3'
|
|
85
|
+
componentId: 'sc-conl4h-3'
|
|
86
86
|
})(['font-family:SFUIText-Regular;font-weight:bold;font-size:10px;line-height:1.2;border-radius:100%;width:30px;height:30px;display:flex;align-items:center;justify-content:center;cursor:pointer;background:', ';color:', ';&.active{background:', ';color:#ffffff;pointer-events:none;}margin-right:10px;'], function (props) {
|
|
87
87
|
return props.upload_type === 'fc' ? 'rgba(0, 206, 198, 0.1)' : 'rgba(255, 99, 39, 0.1)';
|
|
88
88
|
}, function (props) {
|
|
@@ -93,17 +93,17 @@ var VersionBlock = _styledComponents2.default.div.withConfig({
|
|
|
93
93
|
|
|
94
94
|
var PlayerType = _styledComponents2.default.div.withConfig({
|
|
95
95
|
displayName: 'PlayerHeader__PlayerType',
|
|
96
|
-
componentId: 'conl4h-4'
|
|
96
|
+
componentId: 'sc-conl4h-4'
|
|
97
97
|
})(['margin-left:auto;margin-right:15px;display:flex;', '{padding:7px;background-color:rgba(255,255,255,0.1);border:none;}'], _components.Button.Element);
|
|
98
98
|
|
|
99
99
|
var QCReportButton = (0, _styledComponents2.default)(_components.Button).withConfig({
|
|
100
100
|
displayName: 'PlayerHeader__QCReportButton',
|
|
101
|
-
componentId: 'conl4h-5'
|
|
101
|
+
componentId: 'sc-conl4h-5'
|
|
102
102
|
})(['pointer-events:all !important;margin-right:10px;']);
|
|
103
103
|
|
|
104
104
|
var BackButton = (0, _styledComponents2.default)(_components.Button).withConfig({
|
|
105
105
|
displayName: 'PlayerHeader__BackButton',
|
|
106
|
-
componentId: 'conl4h-6'
|
|
106
|
+
componentId: 'sc-conl4h-6'
|
|
107
107
|
})(['background:', ';border:none;margin:10px;margin-right:0;width:40px;height:40px;&:hover,&:focus{background:', ';}', '{transform:translate(-50%,-50%);top:50%;left:50%;position:absolute;}'], function (props) {
|
|
108
108
|
return _colors2.default.common.video[props.assetType].base;
|
|
109
109
|
}, function (props) {
|
package/components/Playlist.js
CHANGED
|
@@ -41,17 +41,17 @@ var propTypes = {
|
|
|
41
41
|
|
|
42
42
|
var PlaylistContainer = (0, _styledComponents2.default)('div').withConfig({
|
|
43
43
|
displayName: 'Playlist__PlaylistContainer',
|
|
44
|
-
componentId: 'pwroms-0'
|
|
44
|
+
componentId: 'sc-pwroms-0'
|
|
45
45
|
})(['', '{display:none;}'], _components.Carousel.Header);
|
|
46
46
|
|
|
47
47
|
var PlaylistCarousel = (0, _styledComponents2.default)(_components.Carousel).withConfig({
|
|
48
48
|
displayName: 'Playlist__PlaylistCarousel',
|
|
49
|
-
componentId: 'pwroms-1'
|
|
49
|
+
componentId: 'sc-pwroms-1'
|
|
50
50
|
})(['width:100%;']);
|
|
51
51
|
|
|
52
52
|
var PlaylistCard = (0, _styledComponents2.default)('div').withConfig({
|
|
53
53
|
displayName: 'Playlist__PlaylistCard',
|
|
54
|
-
componentId: 'pwroms-2'
|
|
54
|
+
componentId: 'sc-pwroms-2'
|
|
55
55
|
})(['width:143px;height:80px;opacity:', ';background:url(', ') 50% 50%/100% auto no-repeat;transform:', ';transition:all 550ms cubic-bezier(0.02,0.01,0.47,1);cursor:', ';pointer-events:', ';&:hover{opacity:1;transform:translateY(0px);}.asset-filename{text-shadow:0 2px 4px rgba(0,0,0,0.7);font-family:SFUIText-Medium;font-size:12px;line-height:1;color:#ffffff;text-align:left;height:auto;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;word-break:break-word;line-height:17px;padding:5px;}'], function (props) {
|
|
56
56
|
return props.active ? '1' : '0.5';
|
|
57
57
|
}, function (props) {
|
|
@@ -49,21 +49,21 @@ var defaultProps = {
|
|
|
49
49
|
|
|
50
50
|
var PointersContainer = _styledComponents2.default.div.withConfig({
|
|
51
51
|
displayName: 'PointersBar__PointersContainer',
|
|
52
|
-
componentId: 'b8687a-0'
|
|
52
|
+
componentId: 'sc-b8687a-0'
|
|
53
53
|
})(['display:flex;']);
|
|
54
54
|
|
|
55
55
|
var PointerBlock = _styledComponents2.default.div.withConfig({
|
|
56
56
|
displayName: 'PointersBar__PointerBlock',
|
|
57
|
-
componentId: 'b8687a-1'
|
|
57
|
+
componentId: 'sc-b8687a-1'
|
|
58
58
|
})(['width:100%;height:20px;position:relative;border-top:1px solid #333333;border-bottom:1px solid #333333;.empty-pointers-msg{display:flex;justify-content:center;align-items:center;height:100%;p{font-family:SFUIText-Medium;font-size:11px;color:#aaaaaa;}', '{margin:0 5px;}}'], _components.Icon.Element);
|
|
59
59
|
var MarkerTagsBlock = _styledComponents2.default.div.withConfig({
|
|
60
60
|
displayName: 'PointersBar__MarkerTagsBlock',
|
|
61
|
-
componentId: 'b8687a-2'
|
|
61
|
+
componentId: 'sc-b8687a-2'
|
|
62
62
|
})(['min-width:100px;max-width:100px;position:relative;height:100%;.tags-block{height:20px;font-family:SFUIText-Medium;font-size:10px;color:#ffffff;text-transform:uppercase;border-top:1px solid #333333;border-bottom:1px solid #333333;p{line-height:18px;padding:0 10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}}']);
|
|
63
63
|
|
|
64
64
|
var ToolTipStyles = _styledComponents2.default.div.withConfig({
|
|
65
65
|
displayName: 'PointersBar__ToolTipStyles',
|
|
66
|
-
componentId: 'b8687a-3'
|
|
66
|
+
componentId: 'sc-b8687a-3'
|
|
67
67
|
})(['position:absolute;z-index:2;height:18px;transition:left .1s ease-in-out;.tooltip-container{border-radius:0.25rem;padding:5px;width:fit-content;background:#FFFFFF;;color:#666666;h4{white-space:nowrap;font-size:12px;}&:after{content:\'\';position:absolute;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid white;', ' left:50%;transform:translateX(-50%);}}'], function (props) {
|
|
68
68
|
return props.multiline ? "bottom: -21px;" : "bottom: -9px;";
|
|
69
69
|
});
|
|
File without changes
|
package/components/SDOutline.js
CHANGED
|
File without changes
|
package/components/Shortcut.js
CHANGED
|
@@ -299,8 +299,8 @@ var Shortcut = function (_Component) {
|
|
|
299
299
|
|
|
300
300
|
if ((playerSelectedMarker.leftMarker > -1 || playerSelectedMarker.rightMarker > -1) && playerSelectedMarker.markerType === 'create') {
|
|
301
301
|
var onDeleteMarker = _this.props.onDeleteMarker;
|
|
302
|
-
// actions.handleMarkerPointChange('delete');
|
|
303
302
|
|
|
303
|
+
actions.handleMarkerPointChange('delete');
|
|
304
304
|
onDeleteMarker();
|
|
305
305
|
}
|
|
306
306
|
}
|
|
@@ -313,7 +313,7 @@ var Shortcut = function (_Component) {
|
|
|
313
313
|
var onDeleteMarker = _this.props.onDeleteMarker;
|
|
314
314
|
|
|
315
315
|
actions.handleVideoPreview(false);
|
|
316
|
-
|
|
316
|
+
actions.handleMarkerPointChange('delete');
|
|
317
317
|
onDeleteMarker();
|
|
318
318
|
} else {
|
|
319
319
|
return null;
|
package/components/Slider.js
CHANGED
|
@@ -76,7 +76,7 @@ var defaultProps = {
|
|
|
76
76
|
|
|
77
77
|
var SliderBlock = _styledComponents2.default.div.withConfig({
|
|
78
78
|
displayName: 'Slider__SliderBlock',
|
|
79
|
-
componentId: 'i91ua7-0'
|
|
79
|
+
componentId: 'sc-i91ua7-0'
|
|
80
80
|
})(['position:relative;z-index:2;width:100%;height:100%;background:', ';'], _colors2.default.dark.base);
|
|
81
81
|
|
|
82
82
|
var Slider = function (_Component) {
|
package/components/TagsBar.js
CHANGED
|
@@ -32,7 +32,7 @@ var propTypes = {
|
|
|
32
32
|
|
|
33
33
|
var TagsBlock = _styledComponents2.default.div.withConfig({
|
|
34
34
|
displayName: 'TagsBar__TagsBlock',
|
|
35
|
-
componentId: 'n53sgs-0'
|
|
35
|
+
componentId: 'sc-n53sgs-0'
|
|
36
36
|
})(['width:100%;height:10px;position:absolute;bottom:40px;cursor:default;.marker{position:absolute;width:2px;height:100%;background:#00cec6;cursor:pointer;transition:transform 250ms ease-in-out;&:hover{transform:scale(2);}}']);
|
|
37
37
|
|
|
38
38
|
var TagsBar = function (_Component) {
|
package/components/Video.js
CHANGED
|
@@ -115,12 +115,12 @@ var defaultProps = {
|
|
|
115
115
|
|
|
116
116
|
var SubTitleSection = _styledComponents2.default.div.withConfig({
|
|
117
117
|
displayName: 'Video__SubTitleSection',
|
|
118
|
-
componentId: 'omlcc3-0'
|
|
118
|
+
componentId: 'sc-omlcc3-0'
|
|
119
119
|
})(['position:absolute;font-family:SFUIText-Regular;font-size:16px;bottom:20px;width:100%;display:flex;justify-content:center;text-align:center;color:#FFFFFF;height:90%;align-items:center;.subtitleContainer{border-radius:4px;width:fit-content;background:#000000;opacity:0.9;padding:8px 10px;line-height:20px;position:absolute;}']);
|
|
120
120
|
|
|
121
121
|
var VideoBlock = _styledComponents2.default.div.withConfig({
|
|
122
122
|
displayName: 'Video__VideoBlock',
|
|
123
|
-
componentId: 'omlcc3-1'
|
|
123
|
+
componentId: 'sc-omlcc3-1'
|
|
124
124
|
})(['position:relative;&.video-react-player-block{position:relative;transition:all 0.1s ease-in-out;-moz-transition:all 0.1s ease-in-out;-webkit-transition:all 0.1s ease-in-out;-ms-transition:all 0.1s ease-in-out;-o-transition:all 0.1s ease-in-out;video{position:absolute;top:0;left:0;width:100%;height:100%;right:0;bottom:0;}.audio-tracks{position:relative;display:flex;background:rgba(0,0,0,0.5);color:#fff;z-index:10;position:absolute;width:100%;bottom:0;p{cursor:pointer;padding:10px;}}.loader-container{width:100%;height:100%;display:flex;justify-content:center;align-items:center;position:absolute;z-index:10;background:rgba(0,0,0,0.5)}}&.ratio-border{border:1px solid rgba(255,255,255,0.5);&:after{content:\'16:9 Safe Area\';position:absolute;color:#fff;font-family:SFUIText-Regular;font-size:12px;transform:rotate(-90deg);top:20%;left:-50px;}}']);
|
|
125
125
|
|
|
126
126
|
var Video = function (_Component) {
|
|
@@ -1160,12 +1160,26 @@ var Video = function (_Component) {
|
|
|
1160
1160
|
});
|
|
1161
1161
|
}
|
|
1162
1162
|
}, {
|
|
1163
|
-
key: '
|
|
1164
|
-
value: function
|
|
1163
|
+
key: 'handleSubtitleContainerClick',
|
|
1164
|
+
value: function handleSubtitleContainerClick() {
|
|
1165
1165
|
var _props29 = this.props,
|
|
1166
1166
|
actions = _props29.actions,
|
|
1167
|
-
|
|
1168
|
-
|
|
1167
|
+
player = _props29.player;
|
|
1168
|
+
|
|
1169
|
+
if (player.paused) {
|
|
1170
|
+
actions.play();
|
|
1171
|
+
} else {
|
|
1172
|
+
actions.pause();
|
|
1173
|
+
}
|
|
1174
|
+
}
|
|
1175
|
+
}, {
|
|
1176
|
+
key: 'handleSubtitleClick',
|
|
1177
|
+
value: function handleSubtitleClick(e) {
|
|
1178
|
+
var _props30 = this.props,
|
|
1179
|
+
actions = _props30.actions,
|
|
1180
|
+
player = _props30.player,
|
|
1181
|
+
onScreenSubtitleClick = _props30.onScreenSubtitleClick,
|
|
1182
|
+
controlType = _props30.controlType;
|
|
1169
1183
|
var currentSubtitleObj = this.state.currentSubtitleObj;
|
|
1170
1184
|
|
|
1171
1185
|
if (controlType === 'advanced') {
|
|
@@ -1181,23 +1195,24 @@ var Video = function (_Component) {
|
|
|
1181
1195
|
}
|
|
1182
1196
|
}
|
|
1183
1197
|
actions.handleVideoRewind(false);
|
|
1198
|
+
e.stopPropagation();
|
|
1184
1199
|
}
|
|
1185
1200
|
}, {
|
|
1186
1201
|
key: 'render',
|
|
1187
1202
|
value: function render() {
|
|
1188
1203
|
var _this5 = this;
|
|
1189
1204
|
|
|
1190
|
-
var
|
|
1191
|
-
loop =
|
|
1192
|
-
poster =
|
|
1193
|
-
preload =
|
|
1194
|
-
autoPlay =
|
|
1195
|
-
playsInline =
|
|
1196
|
-
muted =
|
|
1197
|
-
crossOrigin =
|
|
1198
|
-
videoId =
|
|
1199
|
-
fileType =
|
|
1200
|
-
userEmail =
|
|
1205
|
+
var _props31 = this.props,
|
|
1206
|
+
loop = _props31.loop,
|
|
1207
|
+
poster = _props31.poster,
|
|
1208
|
+
preload = _props31.preload,
|
|
1209
|
+
autoPlay = _props31.autoPlay,
|
|
1210
|
+
playsInline = _props31.playsInline,
|
|
1211
|
+
muted = _props31.muted,
|
|
1212
|
+
crossOrigin = _props31.crossOrigin,
|
|
1213
|
+
videoId = _props31.videoId,
|
|
1214
|
+
fileType = _props31.fileType,
|
|
1215
|
+
userEmail = _props31.userEmail;
|
|
1201
1216
|
var _state2 = this.state,
|
|
1202
1217
|
isBuffering = _state2.isBuffering,
|
|
1203
1218
|
watermark = _state2.watermark,
|
|
@@ -1325,14 +1340,14 @@ var Video = function (_Component) {
|
|
|
1325
1340
|
),
|
|
1326
1341
|
currentSubtitleObj && currentSubtitleObj.line1 && currentSubtitleObj.line1.length && _react2.default.createElement(
|
|
1327
1342
|
SubTitleSection,
|
|
1328
|
-
{
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
}
|
|
1332
|
-
},
|
|
1343
|
+
{ id: 'outer', onClick: function onClick() {
|
|
1344
|
+
return _this5.handleSubtitleContainerClick();
|
|
1345
|
+
} },
|
|
1333
1346
|
_react2.default.createElement(
|
|
1334
1347
|
'span',
|
|
1335
|
-
{
|
|
1348
|
+
{ onClick: function onClick(e) {
|
|
1349
|
+
return _this5.handleSubtitleClick(e);
|
|
1350
|
+
}, className: 'subtitleContainer', style: _extends({}, currentSubtitleObj.style) },
|
|
1336
1351
|
currentSubtitleObj.line1 && _react2.default.createElement(
|
|
1337
1352
|
'pre',
|
|
1338
1353
|
null,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -98,7 +98,7 @@ var propTypes = {
|
|
|
98
98
|
|
|
99
99
|
var PlayerControlBlock = _styledComponents2.default.div.withConfig({
|
|
100
100
|
displayName: 'ControlBar__PlayerControlBlock',
|
|
101
|
-
componentId: 'u3uawu-0'
|
|
101
|
+
componentId: 'sc-u3uawu-0'
|
|
102
102
|
})(['width:100%;height:', ';overflow:', ';position:', ';bottom:', ';background:', ';display:flex;justify-content:flex-start;align-items:center;transition:all 250ms ease-in-out;'], function (props) {
|
|
103
103
|
return props.player === 'panel' && props.active || props.player !== 'panel' ? '50px' : '0px';
|
|
104
104
|
}, function (props) {
|
|
@@ -111,7 +111,7 @@ var PlayerControlBlock = _styledComponents2.default.div.withConfig({
|
|
|
111
111
|
|
|
112
112
|
var VideoControlBlock = _styledComponents2.default.div.withConfig({
|
|
113
113
|
displayName: 'ControlBar__VideoControlBlock',
|
|
114
|
-
componentId: 'u3uawu-1'
|
|
114
|
+
componentId: 'sc-u3uawu-1'
|
|
115
115
|
})(['width:100%;display:flex;justify-content:flex-start;align-items:center;']);
|
|
116
116
|
|
|
117
117
|
var defaultProps = {
|
|
@@ -44,12 +44,12 @@ var propTypes = {
|
|
|
44
44
|
|
|
45
45
|
var EditContainer = (0, _styledComponents2.default)('div').withConfig({
|
|
46
46
|
displayName: 'EditorControlMenuButton__EditContainer',
|
|
47
|
-
componentId: 'yoq9bd-0'
|
|
47
|
+
componentId: 'sc-yoq9bd-0'
|
|
48
48
|
})(['position:relative;']);
|
|
49
49
|
|
|
50
50
|
var EditBlock = (0, _styledComponents2.default)('div').withConfig({
|
|
51
51
|
displayName: 'EditorControlMenuButton__EditBlock',
|
|
52
|
-
componentId: 'yoq9bd-1'
|
|
52
|
+
componentId: 'sc-yoq9bd-1'
|
|
53
53
|
})(['display:flex;background:transparent;font-family:SFUIText-Medium;font-size:12px;text-transform:uppercase;justify-content:flex-start;align-items:center;border-bottom:1px solid #eeeeee;box-sizing:border-box;height:', ';padding:', ';transition:all 250ms ease-in-out;opacity:', ';pointer-events:', ';overflow:hidden;&:last-child{border:none;}&:hover,&:focus{svg path{fill:#00cec6;}p{color:#00cec6;}}svg path{fill:#afb2ba;}p{margin-left:10px;white-space:nowrap;color:#999999;}'], function (props) {
|
|
54
54
|
return props.active ? '45px' : '0px';
|
|
55
55
|
}, function (props) {
|
|
@@ -62,7 +62,7 @@ var EditBlock = (0, _styledComponents2.default)('div').withConfig({
|
|
|
62
62
|
|
|
63
63
|
var CommentBlock = (0, _styledComponents2.default)('div').withConfig({
|
|
64
64
|
displayName: 'EditorControlMenuButton__CommentBlock',
|
|
65
|
-
componentId: 'yoq9bd-2'
|
|
65
|
+
componentId: 'sc-yoq9bd-2'
|
|
66
66
|
})(['position:relative;width:', ';padding:', ';height:', ';overflow:hidden;transition:all 250ms ease-in-out;', '{border:none;resize:none;}'], function (props) {
|
|
67
67
|
return props.active ? '300px' : '0px';
|
|
68
68
|
}, function (props) {
|
|
@@ -73,12 +73,12 @@ var CommentBlock = (0, _styledComponents2.default)('div').withConfig({
|
|
|
73
73
|
|
|
74
74
|
var BackButton = (0, _styledComponents2.default)(_components.Button).withConfig({
|
|
75
75
|
displayName: 'EditorControlMenuButton__BackButton',
|
|
76
|
-
componentId: 'yoq9bd-3'
|
|
76
|
+
componentId: 'sc-yoq9bd-3'
|
|
77
77
|
})(['background:transparent;border:none;margin:0 !important;width:20px;height:20px;padding:0;right:15px;top:10px;position:absolute;&:hover,&:focus{background:transparent;}', '{transform:translate(-50%,-50%);top:50%;left:50%;position:absolute;svg path{fill:#000;}}'], _components.Icon.Element);
|
|
78
78
|
|
|
79
79
|
var SendButton = (0, _styledComponents2.default)(_components.Button).withConfig({
|
|
80
80
|
displayName: 'EditorControlMenuButton__SendButton',
|
|
81
|
-
componentId: 'yoq9bd-4'
|
|
81
|
+
componentId: 'sc-yoq9bd-4'
|
|
82
82
|
})(['background:rgba(0,206,198,0.1);border:none;margin:0 !important;width:30px;height:30px;padding:0;position:absolute;right:15px;top:calc(100% - 45px);&:hover,&:focus{background:rgba(0,206,198,0.1);}', '{transform:translate(-50%,-50%);top:50%;left:50%;position:absolute;svg path{fill:#00cec6;}}'], _components.Icon.Element);
|
|
83
83
|
|
|
84
84
|
var EditorControlMenuButton = function (_Component) {
|
|
File without changes
|
|
@@ -38,7 +38,7 @@ var defaultProps = {
|
|
|
38
38
|
|
|
39
39
|
var ForwardReplayButton = (0, _styledComponents2.default)(_components.Button).withConfig({
|
|
40
40
|
displayName: 'ForwardReplayControl__ForwardReplayButton',
|
|
41
|
-
componentId: 's2rlry-0'
|
|
41
|
+
componentId: 'sc-s2rlry-0'
|
|
42
42
|
})(['background:transparent;border:none;margin:0 10px;&:hover,&:focus{background:transparent;}']);
|
|
43
43
|
|
|
44
44
|
exports.default = function (mode) {
|
|
File without changes
|
|
@@ -38,7 +38,7 @@ var defaultProps = {
|
|
|
38
38
|
|
|
39
39
|
var PlayPauseButton = (0, _styledComponents2.default)(_components.Button).withConfig({
|
|
40
40
|
displayName: 'PlayToggle__PlayPauseButton',
|
|
41
|
-
componentId: 'pe28t7-0'
|
|
41
|
+
componentId: 'sc-pe28t7-0'
|
|
42
42
|
})(['background:transparent;border:none;margin:0 10px;&:hover,&:focus{background:transparent;}']);
|
|
43
43
|
|
|
44
44
|
var PlayToggle = function (_Component) {
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -63,7 +63,7 @@ var defaultProps = {
|
|
|
63
63
|
|
|
64
64
|
var MarkingBlock = _styledComponents2.default.div.withConfig({
|
|
65
65
|
displayName: 'MarkingControl__MarkingBlock',
|
|
66
|
-
componentId: 'zeqqs4-0'
|
|
66
|
+
componentId: 'sc-zeqqs4-0'
|
|
67
67
|
})(['min-width:300px;margin:0 15px;display:flex;justify-content:flex-start;align-items:center;']);
|
|
68
68
|
|
|
69
69
|
function MarkingControl(_ref) {
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -33,7 +33,7 @@ var propTypes = {
|
|
|
33
33
|
|
|
34
34
|
var SafeAreaBlock = (0, _styledComponents2.default)('div').withConfig({
|
|
35
35
|
displayName: 'SafeAreaControl__SafeAreaBlock',
|
|
36
|
-
componentId: 'zvok24-0'
|
|
36
|
+
componentId: 'sc-zvok24-0'
|
|
37
37
|
})(['display:flex;background:transparent;font-family:SFUIText-Medium;font-size:12px;text-transform:uppercase;justify-content:flex-start;align-items:center;&:hover{background:rgba(0,206,198,0.1);}p{margin-left:10px;white-space:nowrap;}']);
|
|
38
38
|
|
|
39
39
|
var SafeAreaControl = function (_Component) {
|
|
File without changes
|
|
File without changes
|
|
@@ -30,7 +30,7 @@ var defaultProps = {
|
|
|
30
30
|
|
|
31
31
|
var VideoCurrentTime = _styledComponents2.default.div.withConfig({
|
|
32
32
|
displayName: 'CurrentTimeDisplay__VideoCurrentTime',
|
|
33
|
-
componentId: 'lqzvv-0'
|
|
33
|
+
componentId: 'sc-lqzvv-0'
|
|
34
34
|
})(['font-family:SFUIText-Regular;font-size:12px;letter-spacing:-0.6px;color:#ffffff;min-width:65px;text-align:left;']);
|
|
35
35
|
|
|
36
36
|
function CurrentTimeDisplay(_ref) {
|
|
@@ -29,7 +29,7 @@ var defaultProps = {
|
|
|
29
29
|
|
|
30
30
|
var VideoTotalDuration = _styledComponents2.default.div.withConfig({
|
|
31
31
|
displayName: 'DurationDisplay__VideoTotalDuration',
|
|
32
|
-
componentId: 'ymjmp3-0'
|
|
32
|
+
componentId: 'sc-ymjmp3-0'
|
|
33
33
|
})(['font-family:SFUIText-Regular;font-size:12px;letter-spacing:-0.6px;margin:0 2px;color:#888888;']);
|
|
34
34
|
|
|
35
35
|
function DurationDisplay(_ref) {
|
|
@@ -23,7 +23,7 @@ var propTypes = {
|
|
|
23
23
|
|
|
24
24
|
var TimeSeperator = _styledComponents2.default.div.withConfig({
|
|
25
25
|
displayName: 'TimeDivider__TimeSeperator',
|
|
26
|
-
componentId: 'tgg0s-0'
|
|
26
|
+
componentId: 'sc-tgg0s-0'
|
|
27
27
|
})(['color:#888888;margin:0 2px;font-family:SFUIText-Regular;font-size:12px;letter-spacing:-0.6px;']);
|
|
28
28
|
|
|
29
29
|
function TimeDivider(_ref) {
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -36,7 +36,7 @@ function _inherits(subClass, superClass) { if (typeof superClass !== "function"
|
|
|
36
36
|
|
|
37
37
|
var ZoomControlBar = _styledComponents2.default.div.withConfig({
|
|
38
38
|
displayName: 'ZoomBar__ZoomControlBar',
|
|
39
|
-
componentId: 'kco6ks-0'
|
|
39
|
+
componentId: 'sc-kco6ks-0'
|
|
40
40
|
})(['height:100%;position:relative;cursor:pointer;z-index:1;width:100%;']);
|
|
41
41
|
|
|
42
42
|
var propTypes = {
|
|
File without changes
|
package/index.js
CHANGED
|
File without changes
|
package/package.json
CHANGED
package/reducers/index.js
CHANGED
|
File without changes
|
package/reducers/operation.js
CHANGED
|
File without changes
|
package/reducers/player.js
CHANGED
|
File without changes
|
package/utils/browser.js
CHANGED
|
File without changes
|
package/utils/dom.js
CHANGED
|
File without changes
|
package/utils/fullscreen.js
CHANGED
|
File without changes
|
package/utils/index.js
CHANGED
|
File without changes
|