The Video interface represents a video asset. It includes details about the video duration, user information, and an array of video_files which specify different qualities (hd, sd, or hls) and formats.
// Example of a Video object structure
const video: Video = {
id: 789,
width: 1920,
height: 1080,
url: 'https://pexels.com/videos/789',
image: 'https://images.pexels.com/videos/789/preview.jpg',
full_res: undefined,
tags: ['nature', 'forest'],
duration: 15,
user: {
id: 101,
name: 'Jane Smith',
url: 'https://pexels.com/users/janesmith'
},
video_files: [
{
id: 1,
quality: 'hd',
file_type: 'string',
width: 1920,
height: 1080,
link: 'https://link-to-video.mp4',
fps: 30
}
],
video_pictures: [
{
id: 1,
picture: 'https://link-to-image.jpg',
nr: 1
}
]
};