@desynova-digital/player 3.13.26 → 3.13.27

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 (2) hide show
  1. package/package.json +1 -1
  2. package/utils/index.js +1 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@desynova-digital/player",
3
- "version": "3.13.26",
3
+ "version": "3.13.27",
4
4
  "description": "Video Player Package for Contido Application",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/utils/index.js CHANGED
@@ -87,6 +87,7 @@ function secondsToTime() {
87
87
  function timeToSeconds() {
88
88
  var time = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '00:00:00:00';
89
89
  var frameRate = arguments.length > 1 ? arguments[1] : undefined;
90
+ if (!time) return 0;
90
91
  var timeObj = time.split(':'); // split it at the colons
91
92
 
92
93
  // minutes are worth 60 seconds. Hours are worth 60 minutes.