@gradio/video 0.21.0 → 0.23.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,35 @@
1
1
  # @gradio/video
2
2
 
3
+ ## 0.23.0
4
+
5
+ ### Features
6
+
7
+ - [#13329](https://github.com/gradio-app/gradio/pull/13329) [`7ac583a`](https://github.com/gradio-app/gradio/commit/7ac583a38a4c995d172033ff6e3700390201ff21) - Make builds go zoom zoom. Thanks @pngwn!
8
+
9
+ ### Dependency updates
10
+
11
+ - @gradio/client@2.4.0
12
+ - @gradio/utils@0.14.0
13
+ - @gradio/atoms@0.26.1
14
+ - @gradio/statustracker@0.15.2
15
+ - @gradio/upload@0.18.2
16
+ - @gradio/image@0.28.1
17
+
18
+ ## 0.22.0
19
+
20
+ ### Features
21
+
22
+ - [#13543](https://github.com/gradio-app/gradio/pull/13543) [`0533483`](https://github.com/gradio-app/gradio/commit/0533483bccdee38f334a598f18297e8c02966343) - Migrate Image components to Svelte 5. Thanks @dawoodkhan82!
23
+
24
+ ### Dependency updates
25
+
26
+ - @gradio/statustracker@0.15.1
27
+ - @gradio/icons@0.16.0
28
+ - @gradio/atoms@0.26.0
29
+ - @gradio/image@0.28.0
30
+ - @gradio/client@2.3.1
31
+ - @gradio/upload@0.18.1
32
+
3
33
  ## 0.21.0
4
34
 
5
35
  ### Features
@@ -157,10 +157,10 @@
157
157
  webcam_constraints={webcam_options.constraints}
158
158
  {include_audio}
159
159
  mode="video"
160
- on:error={({ detail }) => onerror?.(detail)}
161
- on:capture={handle_capture}
162
- on:start_recording={() => onstart_recording?.()}
163
- on:stop_recording={() => onstop_recording?.()}
160
+ onerror={(detail) => onerror?.(detail)}
161
+ oncapture={(detail) => handle_capture({ detail } as CustomEvent)}
162
+ onstart_recording={() => onstart_recording?.()}
163
+ onstop_recording={() => onstop_recording?.()}
164
164
  {i18n}
165
165
  {upload}
166
166
  stream_every={1}
@@ -190,9 +190,10 @@
190
190
 
191
191
  $effect(() => {
192
192
  if (
193
- playback_position !== undefined &&
194
193
  playback_position !== time &&
195
- video
194
+ video &&
195
+ typeof playback_position === "number" &&
196
+ Number.isFinite(playback_position)
196
197
  ) {
197
198
  video.currentTime = playback_position;
198
199
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gradio/video",
3
- "version": "0.21.0",
3
+ "version": "0.23.0",
4
4
  "description": "Gradio UI packages",
5
5
  "type": "module",
6
6
  "author": "",
@@ -11,16 +11,16 @@
11
11
  "@ffmpeg/util": "^0.12.2",
12
12
  "hls.js": "^1.6.13",
13
13
  "mrmime": "^2.0.1",
14
- "@gradio/atoms": "^0.25.0",
15
- "@gradio/client": "^2.3.0",
16
- "@gradio/icons": "^0.15.1",
17
- "@gradio/image": "^0.27.0",
18
- "@gradio/statustracker": "^0.15.0",
19
- "@gradio/upload": "^0.18.0",
20
- "@gradio/utils": "^0.13.0"
14
+ "@gradio/atoms": "^0.26.1",
15
+ "@gradio/icons": "^0.16.0",
16
+ "@gradio/image": "^0.28.1",
17
+ "@gradio/client": "^2.4.0",
18
+ "@gradio/statustracker": "^0.15.2",
19
+ "@gradio/upload": "^0.18.2",
20
+ "@gradio/utils": "^0.14.0"
21
21
  },
22
22
  "devDependencies": {
23
- "@gradio/preview": "^0.16.2"
23
+ "@gradio/preview": "^0.17.0"
24
24
  },
25
25
  "exports": {
26
26
  "./package.json": "./package.json",
@@ -157,10 +157,10 @@
157
157
  webcam_constraints={webcam_options.constraints}
158
158
  {include_audio}
159
159
  mode="video"
160
- on:error={({ detail }) => onerror?.(detail)}
161
- on:capture={handle_capture}
162
- on:start_recording={() => onstart_recording?.()}
163
- on:stop_recording={() => onstop_recording?.()}
160
+ onerror={(detail) => onerror?.(detail)}
161
+ oncapture={(detail) => handle_capture({ detail } as CustomEvent)}
162
+ onstart_recording={() => onstart_recording?.()}
163
+ onstop_recording={() => onstop_recording?.()}
164
164
  {i18n}
165
165
  {upload}
166
166
  stream_every={1}
@@ -190,9 +190,10 @@
190
190
 
191
191
  $effect(() => {
192
192
  if (
193
- playback_position !== undefined &&
194
193
  playback_position !== time &&
195
- video
194
+ video &&
195
+ typeof playback_position === "number" &&
196
+ Number.isFinite(playback_position)
196
197
  ) {
197
198
  video.currentTime = playback_position;
198
199
  }