api

Video ophalen

GET https://api.mave.io/v1/videos/{id}

Hiermee haal je een video-embed op. Hiervoor is het API-token vereist.

Het wijzigen van de zichtbaarheid gebeurt op de achtergrond. Een lopende wijziging geeft 202 Accepted terug met de laatst bevestigde visibility. Herhaal GET /v1/videos/{id} totdat je 200 OK met de gevraagde waarde (public of private) krijgt. Zolang de wijziging loopt, geeft GET ook 202 terug.

Response

{
  "created": 1643723823,
  "duration": 0.108333, // duration of the video
  "width": 1920, // width of the video in pixels
  "height": 1080, // height of the video in pixels
  "id": "IIzFKHuukg", // this can be used to put into the component
  "last_upload": 1643746229,
  "name": "test.mp4", // name of the file or chosen name
  "visibility": "public",
  "object": "video",
  "poster_image": "https://image.mave.io/IIzFKHuukg.jpg?time=0", // defaults to first frame of the video
  "size": 358923, // size of the video in bytes
  "renditions": ["sd", "hd"], // size of the video
  "subtitles": ["en", "nl"] // available subtitles
}