@gradio/video 0.3.0 → 0.3.1

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @gradio/video
2
2
 
3
+ ## 0.3.1
4
+
5
+ ### Fixes
6
+
7
+ - [#6885](https://github.com/gradio-app/gradio/pull/6885) [`640b7fe`](https://github.com/gradio-app/gradio/commit/640b7fe05276e11720b4341cadf088491395e53d) - Fix issue with Webcam Recording. Thanks [@dawoodkhan82](https://github.com/dawoodkhan82)!
8
+
3
9
  ## 0.3.0
4
10
 
5
11
  ### Features
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gradio/video",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "description": "Gradio UI packages",
5
5
  "type": "module",
6
6
  "author": "",
@@ -12,11 +12,11 @@
12
12
  "@gradio/atoms": "^0.4.1",
13
13
  "@gradio/client": "^0.10.0",
14
14
  "@gradio/icons": "^0.3.2",
15
- "@gradio/image": "^0.6.0",
16
15
  "@gradio/statustracker": "^0.4.3",
17
- "@gradio/upload": "^0.5.8",
16
+ "@gradio/image": "^0.6.1",
17
+ "@gradio/upload": "^0.6.0",
18
18
  "@gradio/utils": "^0.2.0",
19
- "@gradio/wasm": "^0.4.1"
19
+ "@gradio/wasm": "^0.5.0"
20
20
  },
21
21
  "devDependencies": {
22
22
  "mrmime": "^2.0.0"
@@ -57,6 +57,12 @@
57
57
  dispatch("change", video);
58
58
  }
59
59
 
60
+ function handle_capture({
61
+ detail
62
+ }: CustomEvent<FileData | any | null>): void {
63
+ dispatch("change", detail);
64
+ }
65
+
60
66
  let dragging = false;
61
67
  $: dispatch("drag", dragging);
62
68
  </script>
@@ -77,11 +83,12 @@
77
83
  </Upload>
78
84
  {:else if active_source === "webcam"}
79
85
  <Webcam
86
+ {root}
80
87
  {mirror_webcam}
81
88
  {include_audio}
82
89
  mode="video"
83
90
  on:error
84
- on:capture={() => dispatch("change")}
91
+ on:capture={handle_capture}
85
92
  on:start_recording
86
93
  on:stop_recording
87
94
  {i18n}