@gradio/video 0.14.13 → 0.14.14

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,19 @@
1
1
  # @gradio/video
2
2
 
3
+ ## 0.14.14
4
+
5
+ ### Fixes
6
+
7
+ - [#11117](https://github.com/gradio-app/gradio/pull/11117) [`9b976b7`](https://github.com/gradio-app/gradio/commit/9b976b750a61368f369bcefaacda6d4fb0975c5f) - Raise UI error if video not playable in the browser. Thanks @freddyaboulton!
8
+
9
+ ### Dependency updates
10
+
11
+ - @gradio/statustracker@0.10.11
12
+ - @gradio/atoms@0.16.1
13
+ - @gradio/client@1.15.0
14
+ - @gradio/upload@0.16.5
15
+ - @gradio/image@0.22.6
16
+
3
17
  ## 0.14.13
4
18
 
5
19
  ### Dependency updates
@@ -87,7 +87,7 @@ $:
87
87
  />
88
88
  {/if}
89
89
  </div>
90
- {:else if playable()}
90
+ {:else if value?.url}
91
91
  {#key value?.url}
92
92
  <Player
93
93
  {upload}
@@ -101,6 +101,7 @@ $:
101
101
  on:pause
102
102
  on:stop
103
103
  on:end
104
+ on:error
104
105
  mirror={webcam_options.mirror && active_source === "webcam"}
105
106
  {label}
106
107
  {handle_change}
@@ -86,6 +86,7 @@ $:
86
86
  on:click={play_pause}
87
87
  on:play
88
88
  on:pause
89
+ on:error
89
90
  on:ended={handle_end}
90
91
  bind:currentTime={time}
91
92
  bind:duration
@@ -24,6 +24,7 @@ declare const __propDef: {
24
24
  events: {
25
25
  play: CustomEvent<any>;
26
26
  pause: CustomEvent<any>;
27
+ error: CustomEvent<any>;
27
28
  loadstart: Event;
28
29
  loadeddata: Event;
29
30
  loadedmetadata: Event;
@@ -107,6 +107,7 @@ Then, even when `controls` is false, the compiled DOM would be `<video controls=
107
107
  on:mouseout={dispatch.bind(null, "mouseout")}
108
108
  on:focus={dispatch.bind(null, "focus")}
109
109
  on:blur={dispatch.bind(null, "blur")}
110
+ on:error={dispatch.bind(null, "error", "Video not playable")}
110
111
  on:loadstart
111
112
  on:loadeddata
112
113
  on:loadedmetadata
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gradio/video",
3
- "version": "0.14.13",
3
+ "version": "0.14.14",
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.16.0",
14
+ "@gradio/atoms": "^0.16.1",
15
+ "@gradio/client": "^1.15.0",
15
16
  "@gradio/icons": "^0.12.0",
16
- "@gradio/statustracker": "^0.10.10",
17
- "@gradio/client": "^1.14.2",
18
- "@gradio/upload": "^0.16.4",
19
- "@gradio/image": "^0.22.5",
17
+ "@gradio/image": "^0.22.6",
18
+ "@gradio/upload": "^0.16.5",
19
+ "@gradio/utils": "^0.10.2",
20
20
  "@gradio/wasm": "^0.18.1",
21
- "@gradio/utils": "^0.10.2"
21
+ "@gradio/statustracker": "^0.10.11"
22
22
  },
23
23
  "devDependencies": {
24
24
  "@gradio/preview": "^0.13.0"
@@ -112,7 +112,7 @@
112
112
  />
113
113
  {/if}
114
114
  </div>
115
- {:else if playable()}
115
+ {:else if value?.url}
116
116
  {#key value?.url}
117
117
  <Player
118
118
  {upload}
@@ -126,6 +126,7 @@
126
126
  on:pause
127
127
  on:stop
128
128
  on:end
129
+ on:error
129
130
  mirror={webcam_options.mirror && active_source === "webcam"}
130
131
  {label}
131
132
  {handle_change}
@@ -113,6 +113,7 @@
113
113
  on:click={play_pause}
114
114
  on:play
115
115
  on:pause
116
+ on:error
116
117
  on:ended={handle_end}
117
118
  bind:currentTime={time}
118
119
  bind:duration
@@ -128,6 +128,7 @@ Then, even when `controls` is false, the compiled DOM would be `<video controls=
128
128
  on:mouseout={dispatch.bind(null, "mouseout")}
129
129
  on:focus={dispatch.bind(null, "focus")}
130
130
  on:blur={dispatch.bind(null, "blur")}
131
+ on:error={dispatch.bind(null, "error", "Video not playable")}
131
132
  on:loadstart
132
133
  on:loadeddata
133
134
  on:loadedmetadata