@desynova-digital/player 3.7.4 → 3.7.6
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 +0 -0
- package/components/ImageViewer.js +0 -0
- package/components/MarkerBar.js +0 -0
- package/components/Menu.js +0 -0
- package/components/Player.js +0 -0
- package/components/PlayerHeader.js +0 -0
- package/components/Playlist.js +0 -0
- package/components/PointersBar.js +0 -0
- package/components/PosterImage.js +0 -0
- package/components/SDOutline.js +0 -0
- package/components/Shortcut.js +0 -0
- package/components/Slider.js +0 -0
- package/components/TagsBar.js +0 -0
- package/components/Video.js +12 -2
- 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 +3 -0
- package/components/control-bar/EditorControlMenuButton.js +0 -0
- package/components/control-bar/ForwardControl.js +0 -0
- package/components/control-bar/ForwardReplayControl.js +0 -0
- package/components/control-bar/FullscreenToggle.js +0 -0
- package/components/control-bar/PlayToggle.js +0 -0
- 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 +0 -0
- 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 +0 -0
- package/components/settings-menu-control/SettingsMenu.js +0 -0
- package/components/settings-menu-control/SubtitleControl.js +0 -0
- package/components/time-controls/CurrentTimeDisplay.js +0 -0
- package/components/time-controls/DurationDisplay.js +0 -0
- package/components/time-controls/TimeDivider.js +0 -0
- 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 +0 -0
- 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
|
|
File without changes
|
|
File without changes
|
package/components/MarkerBar.js
CHANGED
|
File without changes
|
package/components/Menu.js
CHANGED
|
File without changes
|
package/components/Player.js
CHANGED
|
File without changes
|
|
File without changes
|
package/components/Playlist.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/components/SDOutline.js
CHANGED
|
File without changes
|
package/components/Shortcut.js
CHANGED
|
File without changes
|
package/components/Slider.js
CHANGED
|
File without changes
|
package/components/TagsBar.js
CHANGED
|
File without changes
|
package/components/Video.js
CHANGED
|
@@ -471,6 +471,9 @@ var Video = function (_Component) {
|
|
|
471
471
|
if (newProps.markers.length && markers.length && newProps.markers[0].values.length !== markers[0].values.length) {
|
|
472
472
|
this.displaySubtitle(newProps.markers);
|
|
473
473
|
}
|
|
474
|
+
if (newProps.subtitleReadOnly && newProps.subtitleDataList) {
|
|
475
|
+
this.displaySubtitle(newProps.subtitleDataList);
|
|
476
|
+
}
|
|
474
477
|
}
|
|
475
478
|
|
|
476
479
|
// play the video
|
|
@@ -743,7 +746,9 @@ var Video = function (_Component) {
|
|
|
743
746
|
value: function displaySubtitle(marker) {
|
|
744
747
|
var _props14 = this.props,
|
|
745
748
|
markers = _props14.markers,
|
|
746
|
-
resetSubtitleData = _props14.resetSubtitleData
|
|
749
|
+
resetSubtitleData = _props14.resetSubtitleData,
|
|
750
|
+
subtitleReadOnly = _props14.subtitleReadOnly,
|
|
751
|
+
subtitleDataList = _props14.subtitleDataList;
|
|
747
752
|
var currentSubtitleObj = this.state.currentSubtitleObj;
|
|
748
753
|
|
|
749
754
|
if (resetSubtitleData) {
|
|
@@ -751,13 +756,18 @@ var Video = function (_Component) {
|
|
|
751
756
|
}
|
|
752
757
|
var currentTime = this.video.currentTime;
|
|
753
758
|
var currentMarker = marker || markers;
|
|
759
|
+
if (subtitleReadOnly) {
|
|
760
|
+
currentMarker = marker || subtitleDataList;
|
|
761
|
+
}
|
|
754
762
|
if (currentMarker && currentMarker[0] && currentMarker[0].name === "Subtitle") {
|
|
755
763
|
var values = currentMarker[0].values;
|
|
756
764
|
var currentValue = values.filter(function (ele) {
|
|
757
765
|
return ele.start_time <= currentTime && ele.end_time >= currentTime;
|
|
758
766
|
});
|
|
759
767
|
var style = this.getSubtitleStyle(currentValue[0]);
|
|
760
|
-
|
|
768
|
+
var currentLine1 = currentSubtitleObj && currentSubtitleObj.line1 || '';
|
|
769
|
+
var propsLine1 = currentValue[0] && currentValue[0].line1 || '';
|
|
770
|
+
if (currentValue && currentValue.length && (currentSubtitleObj.start_time === currentValue[0].start_time || currentSubtitleObj.end_time === currentValue[0].end_time) && currentLine1 === propsLine1 || Object.keys(currentSubtitleObj).length && currentValue.length && currentValue.length === currentSubtitleObj.start_time.length && currentValue.length === currentSubtitleObj.end_time.length && currentLine1 === propsLine1) {
|
|
761
771
|
return;
|
|
762
772
|
} else {
|
|
763
773
|
this.setState({
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -191,6 +191,9 @@ var ControlBar = function (_Component) {
|
|
|
191
191
|
}, this.props, {
|
|
192
192
|
key: 'volume-menu-button',
|
|
193
193
|
order: 8
|
|
194
|
+
})), _react2.default.createElement(_SubtitleLanguagesMenuButton2.default, _extends({}, this.props, {
|
|
195
|
+
key: 'subtitle-menu-button',
|
|
196
|
+
order: 8
|
|
194
197
|
})), _react2.default.createElement(_CameraButton2.default, {
|
|
195
198
|
order: 9,
|
|
196
199
|
playerType: playerType
|
|
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
|
|
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
|
|
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
|
|
File without changes
|
|
File without changes
|
|
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
|