많은 사용자가 우리 커뮤니티에서 rumble.com의 영상을 공유합니다.
그러나 onebox는 이 빠르게 성장하고 있는 영상 플랫폼에 대해 적절한 영상 임베드를 생성하지 않습니다:
하지만 해당 웹사이트는 (많은 다른 영상 웹사이트처럼) Json 비디오 객체 스키마를 통해 임베드에 필요한 데이터를 제공합니다:
[
{
"@context": "http://schema.org",
"@type": "VideoObject",
"name": "Puppy Hilariously Thinks He's An Actual \"Mountain Bike\"",
"playerType": "HTML5",
"description": "Gus the Cockapoo loves all outdoor activities. Here he is blasting down the steep forest trail. At one point he literally gets airborne! @guscockapoo",
"thumbnailUrl": "https://i.rmbl.ws/s8/1/9/S/v/X/9SvXb.qR4e-small-This-dog-thinks-he-is-a-mou.jpg",
"uploadDate": "2021-05-27T12:24:02+00:00",
"duration": "PT00H00M17S",
"embedUrl": "https://rumble.com/embed/vf2n4l/",
"url": "https://rumble.com/vhota5-this-dog-thinks-he-is-a-mountain-bike.html",
"interactionStatistic": {
"@type": "InteractionCounter",
"interactionType": {
"@type": "http://schema.org/WatchAction"
},
"userInteractionCount": 12734
},
"width": 2400,
"height": 1080,
"videoQuality": "Full HD"
},
{
"@context": "http://schema.org",
"@type": "WebSite",
"url": "https://rumble.com/",
"potentialAction": {
"@type": "SearchAction",
"target": "https://rumble.com/search/video?q={search}",
"query-input": "required name=search"
}
},
{
"@context": "http://schema.org",
"@type": "Organization",
"name": "Rumble",
"url": "https://rumble.com/",
"logo": "https://rumble.com/i/rumble_logo_back.png",
"sameAs": [
"https://www.facebook.com/rumblevideo/",
"https://twitter.com/rumblevideo"
]
}
]
oembed 외에, 향후 onebox가 널리 사용되는 비디오 스키마 JSON LD도 고려하고 파싱할 수 있는 방법이 있을까요?