Videos¶
List of Endpoints¶
/upload/video
: Handled byvideo_upload()
./upload/video/overlay
: Handled byvideo_upload_with_overlay()
.
API Reference¶
-
videos.
delete_video
()[source]¶ Deletes a video from Cloud Storage. Requires “post_id” url parameter.
Returns: - 204 - Video successfully deleted.
- 400 - Missing post_id url parameter or no such image found.
-
videos.
setup_routing
(app: flask.app.Flask)[source]¶ Basic routing function for flask.
Parameters: app (flask.Flask) – Your flask application object.
-
videos.
video_upload
()[source]¶ This requires “post_id”, “ext” and “content-type” as form data keys along with “video” file key (also form data technically).
Returns: - 204 - No content.
- 400 - Missing data field.
- 5XX - Request too large.
-
videos.
video_upload_with_overlay
()[source]¶ Video upload with an overlay image. This endpoint will schedule transcoding of the video (e.g. it won’t happen in this request call).
Requires an extra “overlay” form data field that must be a PNG.
Returns: - 204 - No content.
- 400 - Missing data field.
- 5XX - Request too large.