@gradio/video 0.2.4 → 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 +13 -0
- package/package.json +7 -6
- package/shared/InteractiveVideo.svelte +8 -1
- package/shared/Video.svelte +3 -3
- package/shared/index.ts +1 -0
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,18 @@
|
|
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
|
+
|
9
|
+
## 0.3.0
|
10
|
+
|
11
|
+
### Features
|
12
|
+
|
13
|
+
- [#6133](https://github.com/gradio-app/gradio/pull/6133) [`f742d0e`](https://github.com/gradio-app/gradio/commit/f742d0e861c8e25c5d77d9102c9d50f94b0d3383) - Lite: Support AnnotatedImage on Wasm. Thanks [@whitphx](https://github.com/whitphx)!
|
14
|
+
- [#6897](https://github.com/gradio-app/gradio/pull/6897) [`fb9c6ca`](https://github.com/gradio-app/gradio/commit/fb9c6cacd7ca4598c000f1f97d7d39a8c4463519) - Lite: Chatbot. Thanks [@whitphx](https://github.com/whitphx)!
|
15
|
+
|
3
16
|
## 0.2.4
|
4
17
|
|
5
18
|
### Features
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@gradio/video",
|
3
|
-
"version": "0.
|
3
|
+
"version": "0.3.1",
|
4
4
|
"description": "Gradio UI packages",
|
5
5
|
"type": "module",
|
6
6
|
"author": "",
|
@@ -10,13 +10,13 @@
|
|
10
10
|
"@ffmpeg/ffmpeg": "^0.12.7",
|
11
11
|
"@ffmpeg/util": "^0.12.1",
|
12
12
|
"@gradio/atoms": "^0.4.1",
|
13
|
+
"@gradio/client": "^0.10.0",
|
13
14
|
"@gradio/icons": "^0.3.2",
|
14
|
-
"@gradio/
|
15
|
-
"@gradio/
|
16
|
-
"@gradio/upload": "^0.
|
15
|
+
"@gradio/statustracker": "^0.4.3",
|
16
|
+
"@gradio/image": "^0.6.1",
|
17
|
+
"@gradio/upload": "^0.6.0",
|
17
18
|
"@gradio/utils": "^0.2.0",
|
18
|
-
"@gradio/wasm": "^0.
|
19
|
-
"@gradio/statustracker": "^0.4.3"
|
19
|
+
"@gradio/wasm": "^0.5.0"
|
20
20
|
},
|
21
21
|
"devDependencies": {
|
22
22
|
"mrmime": "^2.0.0"
|
@@ -24,6 +24,7 @@
|
|
24
24
|
"exports": {
|
25
25
|
".": "./index.ts",
|
26
26
|
"./example": "./Example.svelte",
|
27
|
+
"./shared": "./shared/index.ts",
|
27
28
|
"./package.json": "./package.json"
|
28
29
|
},
|
29
30
|
"main": "index.ts",
|
@@ -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={
|
91
|
+
on:capture={handle_capture}
|
85
92
|
on:start_recording
|
86
93
|
on:stop_recording
|
87
94
|
{i18n}
|
package/shared/Video.svelte
CHANGED
@@ -21,8 +21,6 @@
|
|
21
21
|
|
22
22
|
export let processingVideo = false;
|
23
23
|
|
24
|
-
const dispatch = createEventDispatcher();
|
25
|
-
|
26
24
|
let resolved_src: typeof src;
|
27
25
|
|
28
26
|
// The `src` prop can be updated before the Promise from `resolve_wasm_src` is resolved.
|
@@ -32,7 +30,7 @@
|
|
32
30
|
$: {
|
33
31
|
// In normal (non-Wasm) Gradio, the `<img>` element should be rendered with the passed `src` props immediately
|
34
32
|
// without waiting for `resolve_wasm_src()` to resolve.
|
35
|
-
// If it waits, a
|
33
|
+
// If it waits, a blank element is displayed until the async task finishes
|
36
34
|
// and it leads to undesirable flickering.
|
37
35
|
// So set `src` to `resolved_src` here.
|
38
36
|
resolved_src = src;
|
@@ -45,6 +43,8 @@
|
|
45
43
|
}
|
46
44
|
});
|
47
45
|
}
|
46
|
+
|
47
|
+
const dispatch = createEventDispatcher();
|
48
48
|
</script>
|
49
49
|
|
50
50
|
<!--
|
package/shared/index.ts
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
export { default as Video } from "./Video.svelte";
|