@folklore/hooks 0.0.66 → 0.0.68

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/dist/cjs.js CHANGED
@@ -1019,6 +1019,12 @@ function useNativeVideoPlayer(url) {
1019
1019
  }
1020
1020
  const onCanPlay = () => {
1021
1021
  setLoaded(true);
1022
+ const newMetadata = {
1023
+ duration: player.duration,
1024
+ width: player.videoWidth,
1025
+ height: player.videoHeight
1026
+ };
1027
+ setMetadata(newMetadata);
1022
1028
  debug('onCanPlay [URL: %s]', url);
1023
1029
  };
1024
1030
  const onMetadataLoaded = () => {
package/dist/es.js CHANGED
@@ -1017,6 +1017,12 @@ function useNativeVideoPlayer(url) {
1017
1017
  }
1018
1018
  const onCanPlay = () => {
1019
1019
  setLoaded(true);
1020
+ const newMetadata = {
1021
+ duration: player.duration,
1022
+ width: player.videoWidth,
1023
+ height: player.videoHeight
1024
+ };
1025
+ setMetadata(newMetadata);
1020
1026
  debug('onCanPlay [URL: %s]', url);
1021
1027
  };
1022
1028
  const onMetadataLoaded = () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@folklore/hooks",
3
- "version": "0.0.66",
3
+ "version": "0.0.68",
4
4
  "description": "React hooks",
5
5
  "keywords": [
6
6
  "javascript",
@@ -49,10 +49,10 @@
49
49
  "publishConfig": {
50
50
  "access": "public"
51
51
  },
52
- "gitHead": "c13ef70b8126b3182b3e3365f34f9231fa9b1535",
52
+ "gitHead": "31902f297e4769f95799a311a3da25bda2e72632",
53
53
  "dependencies": {
54
54
  "@folklore/events": "^0.0.6",
55
- "@folklore/services": "^0.1.42",
55
+ "@folklore/services": "^0.1.43",
56
56
  "cancelable-promise": "^4.3.1",
57
57
  "debug": "^4.3.4",
58
58
  "lodash": "^4.17.21",