@gradio/video 0.11.8 → 0.12.0

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,25 @@
1
1
  # @gradio/video
2
2
 
3
+ ## 0.12.0
4
+
5
+ ### Features
6
+
7
+ - [#10032](https://github.com/gradio-app/gradio/pull/10032) [`e450674`](https://github.com/gradio-app/gradio/commit/e450674ce41ca28f1f37a27fb149c728593a6ddf) - add `webcam_height` and `webcam_width` to specify the resolution of the Webcam. Thanks @yinsumirage!
8
+
9
+ ### Dependency updates
10
+
11
+ - @gradio/image@0.18.0
12
+
13
+ ## 0.11.9
14
+
15
+ ### Dependency updates
16
+
17
+ - @gradio/atoms@0.11.2
18
+ - @gradio/utils@0.9.0
19
+ - @gradio/statustracker@0.9.6
20
+ - @gradio/upload@0.14.2
21
+ - @gradio/image@0.17.0
22
+
3
23
  ## 0.11.8
4
24
 
5
25
  ### Dependency updates
package/Index.svelte CHANGED
@@ -28,6 +28,7 @@
28
28
  export let loading_status: LoadingStatus;
29
29
  export let height: number | undefined;
30
30
  export let width: number | undefined;
31
+ export let webcam_constraints: { [key: string]: any } | null = null;
31
32
 
32
33
  export let container = false;
33
34
  export let scale: number | null = null;
@@ -203,6 +204,7 @@
203
204
  {autoplay}
204
205
  {root}
205
206
  {loop}
207
+ {webcam_constraints}
206
208
  {handle_reset_value}
207
209
  on:clear={() => gradio.dispatch("clear")}
208
210
  on:play={() => gradio.dispatch("play")}
package/dist/Index.svelte CHANGED
@@ -16,6 +16,7 @@ export let show_label;
16
16
  export let loading_status;
17
17
  export let height;
18
18
  export let width;
19
+ export let webcam_constraints = null;
19
20
  export let container = false;
20
21
  export let scale = null;
21
22
  export let min_width = void 0;
@@ -161,6 +162,7 @@ function handle_error({ detail }) {
161
162
  {autoplay}
162
163
  {root}
163
164
  {loop}
165
+ {webcam_constraints}
164
166
  {handle_reset_value}
165
167
  on:clear={() => gradio.dispatch("clear")}
166
168
  on:play={() => gradio.dispatch("play")}
@@ -18,6 +18,9 @@ declare const __propDef: {
18
18
  loading_status: LoadingStatus;
19
19
  height: number | undefined;
20
20
  width: number | undefined;
21
+ webcam_constraints?: ({
22
+ [key: string]: any;
23
+ } | null) | undefined;
21
24
  container?: boolean | undefined;
22
25
  scale?: (number | null) | undefined;
23
26
  min_width?: number | undefined;
@@ -93,6 +96,13 @@ export default class Index extends SvelteComponent<IndexProps, IndexEvents, Inde
93
96
  get width(): number | undefined;
94
97
  /**accessor*/
95
98
  set width(_: number | undefined);
99
+ get webcam_constraints(): {
100
+ [key: string]: any;
101
+ } | null | undefined;
102
+ /**accessor*/
103
+ set webcam_constraints(_: {
104
+ [key: string]: any;
105
+ } | null | undefined);
96
106
  get container(): boolean | undefined;
97
107
  /**accessor*/
98
108
  set container(_: boolean | undefined);
@@ -25,6 +25,7 @@ export let upload;
25
25
  export let stream_handler;
26
26
  export let loop;
27
27
  export let uploading = false;
28
+ export let webcam_constraints = null;
28
29
  let has_change_history = false;
29
30
  const dispatch = createEventDispatcher();
30
31
  function handle_load({ detail }) {
@@ -74,6 +75,7 @@ $:
74
75
  {root}
75
76
  {mirror_webcam}
76
77
  {include_audio}
78
+ {webcam_constraints}
77
79
  mode="video"
78
80
  on:error
79
81
  on:capture={handle_capture}
@@ -21,6 +21,9 @@ declare const __propDef: {
21
21
  stream_handler: Client["stream"];
22
22
  loop: boolean;
23
23
  uploading?: boolean | undefined;
24
+ webcam_constraints?: ({
25
+ [key: string]: any;
26
+ } | null) | undefined;
24
27
  };
25
28
  events: {
26
29
  error: CustomEvent<any>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gradio/video",
3
- "version": "0.11.8",
3
+ "version": "0.12.0",
4
4
  "description": "Gradio UI packages",
5
5
  "type": "module",
6
6
  "author": "",
@@ -11,14 +11,14 @@
11
11
  "@ffmpeg/util": "^0.12.1",
12
12
  "hls.js": "^1.5.13",
13
13
  "mrmime": "^2.0.0",
14
- "@gradio/atoms": "^0.11.1",
14
+ "@gradio/atoms": "^0.11.2",
15
15
  "@gradio/client": "^1.8.0",
16
+ "@gradio/image": "^0.18.0",
16
17
  "@gradio/icons": "^0.8.1",
17
- "@gradio/statustracker": "^0.9.5",
18
- "@gradio/image": "^0.16.8",
19
- "@gradio/wasm": "^0.15.0",
20
- "@gradio/utils": "^0.8.0",
21
- "@gradio/upload": "^0.14.1"
18
+ "@gradio/statustracker": "^0.9.6",
19
+ "@gradio/upload": "^0.14.2",
20
+ "@gradio/utils": "^0.9.0",
21
+ "@gradio/wasm": "^0.15.0"
22
22
  },
23
23
  "devDependencies": {
24
24
  "@gradio/preview": "^0.13.0"
@@ -33,6 +33,7 @@
33
33
  export let stream_handler: Client["stream"];
34
34
  export let loop: boolean;
35
35
  export let uploading = false;
36
+ export let webcam_constraints: { [key: string]: any } | null = null;
36
37
 
37
38
  let has_change_history = false;
38
39
 
@@ -99,6 +100,7 @@
99
100
  {root}
100
101
  {mirror_webcam}
101
102
  {include_audio}
103
+ {webcam_constraints}
102
104
  mode="video"
103
105
  on:error
104
106
  on:capture={handle_capture}