@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.
Files changed (68) hide show
  1. package/Manager.js +0 -0
  2. package/actions/player.js +0 -0
  3. package/actions/video.js +0 -0
  4. package/colors.js +0 -0
  5. package/components/AudioMeter.js +0 -0
  6. package/components/BigPlayButton.js +0 -0
  7. package/components/ImageViewer.js +0 -0
  8. package/components/MarkerBar.js +0 -0
  9. package/components/Menu.js +0 -0
  10. package/components/Player.js +0 -0
  11. package/components/PlayerHeader.js +0 -0
  12. package/components/Playlist.js +0 -0
  13. package/components/PointersBar.js +0 -0
  14. package/components/PosterImage.js +0 -0
  15. package/components/SDOutline.js +0 -0
  16. package/components/Shortcut.js +0 -0
  17. package/components/Slider.js +0 -0
  18. package/components/TagsBar.js +0 -0
  19. package/components/Video.js +12 -2
  20. package/components/control-bar/AudioTracksMenuButton.js +0 -0
  21. package/components/control-bar/CameraButton.js +0 -0
  22. package/components/control-bar/CommentsButton.js +0 -0
  23. package/components/control-bar/ControlBar.js +3 -0
  24. package/components/control-bar/EditorControlMenuButton.js +0 -0
  25. package/components/control-bar/ForwardControl.js +0 -0
  26. package/components/control-bar/ForwardReplayControl.js +0 -0
  27. package/components/control-bar/FullscreenToggle.js +0 -0
  28. package/components/control-bar/PlayToggle.js +0 -0
  29. package/components/control-bar/ReplayControl.js +0 -0
  30. package/components/control-bar/SettingsMenuButton.js +0 -0
  31. package/components/control-bar/SubtitleLanguagesMenuButton.js +0 -0
  32. package/components/control-bar/VolumeMenuButton.js +0 -0
  33. package/components/control-bar/ZoomMenuButton.js +0 -0
  34. package/components/marking-controls/MarkInControl.js +0 -0
  35. package/components/marking-controls/MarkOutControl.js +0 -0
  36. package/components/marking-controls/MarkingAddButton.js +0 -0
  37. package/components/marking-controls/MarkingControl.js +0 -0
  38. package/components/marking-controls/MarkingDeleteButton.js +0 -0
  39. package/components/marking-controls/MarkingDuration.js +0 -0
  40. package/components/marking-controls/MarkingPreview.js +0 -0
  41. package/components/progress-bar/AudioWaveform.js +0 -0
  42. package/components/progress-bar/LoadProgressBar.js +0 -0
  43. package/components/progress-bar/MouseTimeDisplay.js +0 -0
  44. package/components/progress-bar/PlayProgressBar.js +0 -0
  45. package/components/progress-bar/ProgressControl.js +0 -0
  46. package/components/progress-bar/SeekBar.js +0 -0
  47. package/components/progress-bar/Timeline.js +0 -0
  48. package/components/settings-menu-control/PlaybackRateControl.js +0 -0
  49. package/components/settings-menu-control/SafeAreaControl.js +0 -0
  50. package/components/settings-menu-control/SettingsMenu.js +0 -0
  51. package/components/settings-menu-control/SubtitleControl.js +0 -0
  52. package/components/time-controls/CurrentTimeDisplay.js +0 -0
  53. package/components/time-controls/DurationDisplay.js +0 -0
  54. package/components/time-controls/TimeDivider.js +0 -0
  55. package/components/volume-control/VolumeBar.js +0 -0
  56. package/components/volume-control/VolumeControl.js +0 -0
  57. package/components/volume-control/VolumeLevel.js +0 -0
  58. package/components/zoom-control/ZoomBar.js +0 -0
  59. package/components/zoom-control/ZoomLevel.js +0 -0
  60. package/index.js +0 -0
  61. package/package.json +1 -1
  62. package/reducers/index.js +0 -0
  63. package/reducers/operation.js +0 -0
  64. package/reducers/player.js +0 -0
  65. package/utils/browser.js +0 -0
  66. package/utils/dom.js +0 -0
  67. package/utils/fullscreen.js +0 -0
  68. 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
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
@@ -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
- if (currentValue && currentValue.length && (currentSubtitleObj.start_time === currentValue[0].start_time || currentSubtitleObj.end_time === currentValue[0].end_time) || Object.keys(currentSubtitleObj).length && currentValue.length === currentSubtitleObj.start_time.length && currentValue.length === currentSubtitleObj.end_time.length) {
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
package/index.js CHANGED
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@desynova-digital/player",
3
- "version": "3.7.4",
3
+ "version": "3.7.6",
4
4
  "description": "Video Player Package for Contido Application",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/reducers/index.js CHANGED
File without changes
File without changes
File without changes
package/utils/browser.js CHANGED
File without changes
package/utils/dom.js CHANGED
File without changes
File without changes
package/utils/index.js CHANGED
File without changes