@micromag/element-video 0.4.70 → 0.4.71

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/es/index.js +2 -1
  2. package/package.json +4 -4
package/es/index.js CHANGED
@@ -274,13 +274,14 @@ function Video(_ref) {
274
274
  var isPaused = element.paused;
275
275
  if (paused && !isPaused) {
276
276
  element.pause();
277
- } else if (!paused && isPaused) {
277
+ } else if (!paused && isPaused && element.dataset.forcePlaying !== 'true') {
278
278
  element.play()["catch"](function (e) {
279
279
  if (onPlayError !== null) {
280
280
  onPlayError(e);
281
281
  }
282
282
  });
283
283
  }
284
+ element.dataset.forcePlaying = 'false';
284
285
  }, [paused, media, mediaUrl, onPlayError]);
285
286
  useProgressSteps({
286
287
  currentTime: currentTime,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@micromag/element-video",
3
- "version": "0.4.70",
3
+ "version": "0.4.71",
4
4
  "private": false,
5
5
  "description": "",
6
6
  "keywords": [
@@ -60,8 +60,8 @@
60
60
  },
61
61
  "dependencies": {
62
62
  "@babel/runtime": "^7.28.6",
63
- "@micromag/core": "^0.4.69",
64
- "@micromag/element-closed-captions": "^0.4.69",
63
+ "@micromag/core": "^0.4.71",
64
+ "@micromag/element-closed-captions": "^0.4.71",
65
65
  "classnames": "^2.2.6",
66
66
  "hls.js": "^1.5.15",
67
67
  "lodash": "^4.17.23",
@@ -72,6 +72,6 @@
72
72
  "access": "public",
73
73
  "registry": "https://registry.npmjs.org/"
74
74
  },
75
- "gitHead": "4f76a8f1ad594be2aadb4a593da5455da8afc8b6",
75
+ "gitHead": "9101554bc5761e32b4a002a10d26800608c69773",
76
76
  "types": "es/index.d.ts"
77
77
  }