Video url
Setting type : video-url dùng để xuất ra một trường nhập URL.
Setting
{
id: "video_url",
type: "video_url",
label: "video_url",
default: {},
},
Giao diện
Khi truy cập giá trị video-url , dữ liệu được trả về dưới dạng :
{settings.video-url}
Output
Entity
export interface VideoInfoEntity {
title: string;
thumbnail: string;
url: string;
width: number;
height: number;
id: string;
aspectRatio: number;
type: 'vimeo' | 'youtube' | 'Custom';
}
Ví dụ
{
"url": "https://www.youtube.com/watch?v=4qOT_Aw9IgM&list=RD4qOT_Aw9IgM&start_radio=1",
"id": "4qOT_Aw9IgM",
"title": "[MV] 하현우 - '돌덩이' <이태원 클라쓰(Itaewon class)> OST Part.3♪",
"status": "success",
"thumbnail": "https://i.ytimg.com/vi/4qOT_Aw9IgM/hqdefault.jpg",
"height": 113,
"width": 200,
"aspectRatio": 1.7699115044247788,
"type": "youtube"
}