Detalhes da Mídia
Detalhes da mídia do produtor
Required scopes:safevideo_contents_read
GET
https://api.eduzz.com/safevideo/v1/medias/:id
Path params
id
Identificador da mídia
Response params (200)
id
string
Identificador da mídia
key
uuid
Chave da mídia
userId
string
Identificador do usuário
userEmail
string
Email do usuário
title
string
Título da mídia
filename
string
Nome do arquivo da mídia
status
string
Status da mídia
duration
number
Duração da mídia
order
number
Ordem da mídia
tags
array of string
Marcadores da mídia
storage
string
Armazenamento da mídia
deletedAtNullable
datetime
Data de exclusão da mídia
description
string
Descrição da mídia
createdAt
datetime
Data de criação da mídia
updatedAt
datetime
Data de atualização da mídia
source
object
Origem da mídia
source.filename
string
Nome do arquivo
source.size
number
Tamanho do arquivo
source.width
number
Largura da mídia
source.height
number
Altura da mídia
encoded
array of object
Formatos
encoded[n].format
string
Formato
encoded[n].codec
string
Codec
encoded[n].size
number
Tamanho
encoded[n].resolutions
array of object
Resoluções
encoded[n].resolutions[n].width
number
Largura
encoded[n].resolutions[n].height
number
Altura
Status codes
Status | Descrição |
200 | Success |
400 | Bad Request |
401 | Unauthorized |
403 | Forbbiden |
404 | Not Found |
Exemplos
1curl --request GET \
2 --url 'https://api.eduzz.com/safevideo/v1/medias/6695366e04f7a37bfd00a926' \
3 --header 'Accept: application/json' \
4 --header 'Content-Type: application/json' \
5 --header 'authorization: Bearer {{YOUR_ACCESS_TOKEN}}'
Response
1[
2 {
3 "source": {
4 "filename": "698dc19d489c4e4db73e28a713eab07b.mp4",
5 "size": 9019048,
6 "width": 576,
7 "height": 1024
8 },
9 "id": "6695366e04f7a37bfd00a926",
10 "key": "b0b40529-e25d-4496-9ffc-bf54be9dcfd6",
11 "userId": "66954fbd04f7a37bfd00a928",
12 "userEmail": "user@eduzz.com",
13 "title": "Teste.mp4",
14 "filename": "698dc19d489c4e4db73e28a713eab07b.mp4",
15 "status": "encoded",
16 "duration": 123,
17 "order": 1,
18 "tags": [
19 ""
20 ],
21 "storage": "r2",
22 "deletedAt": null,
23 "encoded": [
24 {
25 "format": "hls",
26 "codec": "h264",
27 "size": 123,
28 "resolutions": [
29 {
30 "width": 135,
31 "height": 240
32 },
33 {
34 "width": 202,
35 "height": 360
36 },
37 {
38 "width": 270,
39 "height": 480
40 },
41 {
42 "width": 405,
43 "height": 720
44 }
45 ]
46 }
47 ],
48 "createdAt": "2024-03-15T16:55:17.410Z",
49 "updatedAt": "2024-07-11T01:59:32.802Z",
50 "description": "teste teste"
51 }
52]