@seafile/sdoc-editor 1.0.206-test0.2.6 → 1.0.206-test0.2.8
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.
|
@@ -27,7 +27,7 @@ const Video = _ref => {
|
|
|
27
27
|
const videoFileName = data.videoFiles && ((_data$videoFiles$ = data.videoFiles[0]) === null || _data$videoFiles$ === void 0 ? void 0 : _data$videoFiles$.name) || null;
|
|
28
28
|
const videoFileSize = data.videoFiles && ((_data$videoFiles$2 = data.videoFiles[0]) === null || _data$videoFiles$2 === void 0 ? void 0 : _data$videoFiles$2.size) || null;
|
|
29
29
|
const isEmbeddableLink = data.videoFiles && ((_data$videoFiles$3 = data.videoFiles[0]) === null || _data$videoFiles$3 === void 0 ? void 0 : _data$videoFiles$3.isEmbeddableLink) || false;
|
|
30
|
-
console.log(55, isEmbeddableLink, (0, _helpers.getVideoURL)(data));
|
|
30
|
+
console.log(55, data.videoFiles, isEmbeddableLink, (0, _helpers.getVideoURL)(data));
|
|
31
31
|
const handlePlay = () => {
|
|
32
32
|
setVideoStates(prev => ({
|
|
33
33
|
...prev,
|
|
@@ -94,7 +94,7 @@ const Video = _ref => {
|
|
|
94
94
|
style: {
|
|
95
95
|
visibility: isLoaded ? 'visible' : 'hidden'
|
|
96
96
|
}
|
|
97
|
-
}, !isEmbeddableLink && /*#__PURE__*/_react.default.createElement("video", {
|
|
97
|
+
}, !isEmbeddableLink && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("video", {
|
|
98
98
|
className: "sdoc-video-element",
|
|
99
99
|
ref: videoRef,
|
|
100
100
|
src: (0, _helpers.getVideoURL)(data),
|
|
@@ -107,7 +107,16 @@ const Video = _ref => {
|
|
|
107
107
|
style: {
|
|
108
108
|
boxShadow: isSelected ? '0 0 0 2px #007bff' : 'none'
|
|
109
109
|
}
|
|
110
|
-
}),
|
|
110
|
+
}), /*#__PURE__*/_react.default.createElement("div", {
|
|
111
|
+
className: "sdoc-video-play sdocfont sdoc-play icon-font",
|
|
112
|
+
style: {
|
|
113
|
+
visibility: isPaused ? 'visible' : 'hidden'
|
|
114
|
+
},
|
|
115
|
+
contentEditable: "false"
|
|
116
|
+
})), isEmbeddableLink &&
|
|
117
|
+
/*#__PURE__*/
|
|
118
|
+
// <center>
|
|
119
|
+
_react.default.createElement("iframe", {
|
|
111
120
|
className: "sdoc-video-element",
|
|
112
121
|
ref: videoRef,
|
|
113
122
|
src: (0, _helpers.getVideoURL)(data),
|
|
@@ -122,12 +131,6 @@ const Video = _ref => {
|
|
|
122
131
|
style: {
|
|
123
132
|
boxShadow: isSelected ? '0 0 0 2px #007bff' : 'none'
|
|
124
133
|
}
|
|
125
|
-
}), /*#__PURE__*/_react.default.createElement("div", {
|
|
126
|
-
className: "sdoc-video-play sdocfont sdoc-play icon-font",
|
|
127
|
-
style: {
|
|
128
|
-
visibility: isPaused ? 'visible' : 'hidden'
|
|
129
|
-
},
|
|
130
|
-
contentEditable: "false"
|
|
131
134
|
}))));
|
|
132
135
|
};
|
|
133
136
|
const SdocVideo = (0, _reactI18next.withTranslation)('sdoc-editor')(Video);
|