@gradio/video 0.14.14 → 0.14.16
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 +20 -0
- package/dist/shared/Video.svelte +3 -3
- package/package.json +7 -7
- package/shared/Video.svelte +5 -3
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,25 @@
|
|
1
1
|
# @gradio/video
|
2
2
|
|
3
|
+
## 0.14.16
|
4
|
+
|
5
|
+
### Dependency updates
|
6
|
+
|
7
|
+
- @gradio/statustracker@0.10.12
|
8
|
+
- @gradio/image@0.22.8
|
9
|
+
|
10
|
+
## 0.14.15
|
11
|
+
|
12
|
+
### Fixes
|
13
|
+
|
14
|
+
- [#11272](https://github.com/gradio-app/gradio/pull/11272) [`8177b01`](https://github.com/gradio-app/gradio/commit/8177b014e5539aa1011a74856d065dbb17fa0326) - Fix bug where streaming one chunk of audio or video would not play. Thanks @freddyaboulton!
|
15
|
+
|
16
|
+
### Dependency updates
|
17
|
+
|
18
|
+
- @gradio/statustracker@0.10.12
|
19
|
+
- @gradio/client@1.15.1
|
20
|
+
- @gradio/upload@0.16.6
|
21
|
+
- @gradio/image@0.22.7
|
22
|
+
|
3
23
|
## 0.14.14
|
4
24
|
|
5
25
|
### Fixes
|
package/dist/shared/Video.svelte
CHANGED
@@ -32,8 +32,6 @@ const dispatch = createEventDispatcher();
|
|
32
32
|
function load_stream(src2, is_stream2, node2) {
|
33
33
|
if (!src2 || !is_stream2)
|
34
34
|
return;
|
35
|
-
if (!node2)
|
36
|
-
return;
|
37
35
|
if (Hls.isSupported() && !stream_active) {
|
38
36
|
const hls = new Hls({
|
39
37
|
maxBufferLength: 1,
|
@@ -75,7 +73,9 @@ function load_stream(src2, is_stream2, node2) {
|
|
75
73
|
$:
|
76
74
|
src, stream_active = false;
|
77
75
|
$:
|
78
|
-
|
76
|
+
if (node && src && is_stream) {
|
77
|
+
load_stream(src, is_stream, node);
|
78
|
+
}
|
79
79
|
</script>
|
80
80
|
|
81
81
|
<!--
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@gradio/video",
|
3
|
-
"version": "0.14.
|
3
|
+
"version": "0.14.16",
|
4
4
|
"description": "Gradio UI packages",
|
5
5
|
"type": "module",
|
6
6
|
"author": "",
|
@@ -12,16 +12,16 @@
|
|
12
12
|
"hls.js": "^1.5.13",
|
13
13
|
"mrmime": "^2.0.0",
|
14
14
|
"@gradio/atoms": "^0.16.1",
|
15
|
-
"@gradio/client": "^1.15.
|
15
|
+
"@gradio/client": "^1.15.1",
|
16
16
|
"@gradio/icons": "^0.12.0",
|
17
|
-
"@gradio/image": "^0.22.
|
18
|
-
"@gradio/upload": "^0.16.
|
19
|
-
"@gradio/utils": "^0.10.2",
|
17
|
+
"@gradio/image": "^0.22.8",
|
18
|
+
"@gradio/upload": "^0.16.6",
|
20
19
|
"@gradio/wasm": "^0.18.1",
|
21
|
-
"@gradio/statustracker": "^0.10.
|
20
|
+
"@gradio/statustracker": "^0.10.12",
|
21
|
+
"@gradio/utils": "^0.10.2"
|
22
22
|
},
|
23
23
|
"devDependencies": {
|
24
|
-
"@gradio/preview": "^0.13.
|
24
|
+
"@gradio/preview": "^0.13.1"
|
25
25
|
},
|
26
26
|
"exports": {
|
27
27
|
"./package.json": "./package.json",
|
package/shared/Video.svelte
CHANGED
@@ -54,10 +54,10 @@
|
|
54
54
|
function load_stream(
|
55
55
|
src: string | null | undefined,
|
56
56
|
is_stream: boolean,
|
57
|
-
node: HTMLVideoElement
|
57
|
+
node: HTMLVideoElement
|
58
58
|
): void {
|
59
59
|
if (!src || !is_stream) return;
|
60
|
-
|
60
|
+
|
61
61
|
if (Hls.isSupported() && !stream_active) {
|
62
62
|
const hls = new Hls({
|
63
63
|
maxBufferLength: 1, // 0.5 seconds (500 ms)
|
@@ -96,7 +96,9 @@
|
|
96
96
|
|
97
97
|
$: src, (stream_active = false);
|
98
98
|
|
99
|
-
$:
|
99
|
+
$: if (node && src && is_stream) {
|
100
|
+
load_stream(src, is_stream, node);
|
101
|
+
}
|
100
102
|
</script>
|
101
103
|
|
102
104
|
<!--
|