@desynova-digital/player 4.0.47 → 4.0.48

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.
@@ -121,7 +121,8 @@ var Timeline = exports["default"] = /*#__PURE__*/function (_Component) {
121
121
  }
122
122
  }, timeArray.map(function (time, index) {
123
123
  var formattedTime = (0, _utils.secondsToTime)(time, frameRate, initialTime);
124
- var leftPercents = time / player.duration * 100;
124
+ var rawPercent = time / player.duration * 100;
125
+ var leftPercents = Math.min(rawPercent, 100);
125
126
  var isFirst = index === 0;
126
127
  var isLast = index === timeArray.length - 1;
127
128
  return /*#__PURE__*/_react["default"].createElement("div", {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@desynova-digital/player",
3
- "version": "4.0.47",
3
+ "version": "4.0.48",
4
4
  "description": "Video Player Package for Contido Application",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/utils/index.js CHANGED
@@ -43,10 +43,10 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
43
43
  function secondsToTime() {
44
44
  var seconds = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
45
45
  var frameRate = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 25;
46
- var initialTimecodeInSeconds = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
46
+ var initialTime = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
47
47
  if (seconds > -1) {
48
48
  // Calculate total frames
49
- var totalFrames = Math.round((seconds + initialTimecodeInSeconds) * frameRate);
49
+ var totalFrames = Math.round((seconds + initialTime) * frameRate);
50
50
 
51
51
  // Calculate new timecode
52
52
  var newSeconds = Math.floor(totalFrames / frameRate);