Title: Video & Thumbnail Upload
Client -> 3Speak File Server: Video & Thumbnail Upload
note:
- https://uploads.3speak.tv/files
- Use above URL to initiate tus connection.
- https://tus.io/
- https://github.com/tus/tus-js-client
- Once user selects the video, upload the file using TUS
- Client can show the video-upload-progress using the progress provided by TUS library
3Speak File Server -> Client: Video & Thumbnail Upload
note:
- Upon hitting the `onComplete` method of TUS, Client gets a url
```
onSuccess: function() {
console.log("Download %s from %s", upload.file.name, upload.url)
}
```
- Grab the Upload URL
- name = upload.url.replace('https://uploads.3speak.tv/files, '')
- Or you can grab the file.name too
- Client can use any library to take first frame of the video as thumbnail.
- Client can also allow user to set the custom thumbnail
- Client can use the same process to upload video-thumbnail
- After uploads are complete for video & thumbnail, keep those names in variables
- Those names will be used in the APIs of 3Speak - shared in a different file.