You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -231,6 +233,11 @@ An onProgress event contains the following attributes:
231
233
- currentChunk (number): index of the chunk being uploaded
232
234
- currentChunkUploadedBytes (number): number of bytes uploaded for the current chunk
233
235
236
+
### `cancel()`
237
+
238
+
The cancel() method cancels the upload. It takes no parameter.
239
+
240
+
234
241
**Example**
235
242
236
243
```javascript
@@ -358,6 +365,7 @@ The onProgress() method let you defined an upload progress listener. It takes a
358
365
An onProgress event contains the following attributes:
359
366
- uploadedBytes (number): total number of bytes uploaded for this upload
360
367
- totalBytes (number): total size of the file
368
+
- part (number): index of the part being uploaded
361
369
362
370
**Example**
363
371
@@ -367,9 +375,14 @@ An onProgress event contains the following attributes:
367
375
uploader.onProgress((event) => {
368
376
console.log(`total number of bytes uploaded for this upload: ${event.uploadedBytes}.`);
369
377
console.log(`total size of the file: ${event.totalBytes}.`);
378
+
console.log(`current part: ${event.part}.`);
370
379
});
371
380
```
372
381
382
+
### `cancel()`
383
+
384
+
The cancel() method cancels the upload. It takes no parameter.
385
+
373
386
### `onPlayable()`
374
387
375
388
The onPlayable() method let you defined a listener that will be called when the video is playable. It takes a callback function with one parameter: the `video` object returned by the API.
0 commit comments