- const attributes3 = immutableAssign(attributes1, { name: attributes1.name + ' - 3', language: 'en' })
- await uploadVideo(server.url, server.accessToken, attributes3)
+ {
+ 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,
+ language: 'en',
+ videoId,
+ fixture: 'subtitle-good2.vtt',
+ mimeType: 'application/octet-stream'
+ })
+
+ await createVideoCaption({
+ url: server.url,
+ accessToken: server.accessToken,
+ language: 'aa',
+ videoId,
+ fixture: 'subtitle-good2.vtt',
+ mimeType: 'application/octet-stream'
+ })
+ }