add_media
Add media to a space for people to review: a video (MP4, WebM, MOV), a sound (MP3, M4A, WAV, OGG, FLAC) or a picture, up to 100 MB, from a URL (a public file, downloaded into the space; a YouTube or Vimeo page plays from there) or base64 (small files only: a call stops at 4 MB). A local file of any size up to the limit uploads instead: curl -F file=@cut.mp4 -F title="Launch video" -H "Authorization: Bearer $KEY" https://tryartifacts.com/api/spaces/<space_id>/media (it returns the new item; then update_media for its words). People play it and comment at a moment of it (or on a spot of a picture); read_media gives you those comments by time. Give chapters and a transcript when you have them (a script you wrote). Read guide topic "media" first; check it with render_media.
Parameters
space_idstringrequiredtitlestringrequiredurlstringbase64stringmimestringnamestringdescriptionstringchaptersobject[]Show child attributes
atnumber | stringrequiredtitlestringrequiredtranscriptobject[]Show child attributes
atnumber | stringrequiredendnumber | stringtextstringrequiredspeakerstringread_media
Media as it is now: its kind, file, length (once measured), description, chapters, and every comment with where it sits (at a time for a video or a sound, at x and y from 0 to 1 for a picture) and its conversation, in order through the media.
Parameters
item_idstringrequiredupdate_media
Change media: title, description, chapters, transcript (each list replaces the one there; [] removes it), or a new file (url, or base64 with mime) — a new cut, its comments stay at their times.
Parameters
item_idstringrequiredtitlestringdescriptionstringchaptersobject[]Show child attributes
atnumber | stringrequiredtitlestringrequiredtranscriptobject[]Show child attributes
atnumber | stringrequiredendnumber | stringtextstringrequiredspeakerstringurlstringbase64stringmimestringnamestringrender_media
See media as people do: a screenshot of the player (for a video, the frame at at), its comments' markers and its chapters and transcript — and it measures the length when not measured yet. Plus checks and errors the page hit.
Parameters
item_idstringrequiredatnumber | string