- const attributes3 = immutableAssign(attributes1, { name: attributes1.name + ' - 3', language: undefined })
- const res = await uploadVideo(server.url, server.accessToken, attributes3)
- const videoId = res.body.video.id
- videoUUID = res.body.video.uuid
-
- await createVideoCaption({
- url: server.url,
- accessToken: server.accessToken,
+ const attributes3 = { ...attributes1, name: attributes1.name + ' - 3', language: undefined }
+ const { id, uuid } = await server.videos.upload({ attributes: attributes3 })
+ videoUUID = uuid
+
+ await server.captions.add({