Video
A video object contains video details ready for consumption.
Properties
- id (integer)
- title (string): Title of the video
- url (string): URL for the video (used for web frontends and mobile app deep-linking), format: /watch/ID-slug
- duration (integer): Duration in seconds
- number (integer): Episode number, if available. Default: 0
- status (string): One of these statuses: waiting, processing, available
- showId (integer): ID of the show this video is in
- showName (string): Name of the show this video is in
- showUrl (string): URL of the show this video is in
- brief (string): Video description in HTML
- thumbnail (string): URL for the video's thumbnail.
- thumbnailPlay (string): URL for the video's thumbnail with a play button added in the center.
- filename (string): Filename of the original source video
- publishDate (yyyy-mm-dd hh:mm:ss): Publish date of the video
- views (string): Deprecated. Used to run the total views for the video.
- publish (1/0): whether this video automatically published after upload (not a useful value)
- format (Video_Format object): list of all the available video formats
Sample API Response
{"id":"14","title":"Demo Video","url":"\/watch\/14\/demo-video","duration":"69","number":null,"status":"available","showId":"5","showName":"The Late Night Show","showUrl":"http:\/\/demo.local\/show\/5\/the-late-night-show","brief":"<p>Demo video description goes here<\/p>","thumbnail":"https:\/\/demo.local\/storage\/videos\/thumb_14_20558331340.jpeg","thumbnailPlay":"https:\/\/demo.local\/storage\/videos\/thumb_14_20558331340_play.jpeg","filename":"\/mnt\/c\/Users\/rudyz\/Sites\/whitebeardcms\/deployments\/demo\/storage\/videos\/Demo-Video_873041.mp4","publishDate":"2021-03-31 12:29:00","views":"0","publish":"0","formats":[{"format":"1080p","filename":"https:\/\/demo.local\/storage\/videos\/14_71433360761_1080p.mp4","cdnPath":"","mime":"video\/mp4"},{"format":"720p","filename":"https:\/\/demo.local\/storage\/videos\/14_71433360761_720p.mp4","cdnPath":"","mime":"video\/mp4"},{"format":"360p","filename":"https:\/\/demo.local\/storage\/videos\/14_71433360761_360p.mp4","cdnPath":"","mime":"video\/mp4"},{"format":"480p","filename":"https:\/\/demo.local\/storage\/videos\/14_71433360761_480p.mp4","cdnPath":"","mime":"video\/mp4"}]}