iframely
Version:
oEmbed/2 gateway endpoint. Get embed data for various http links through one self-hosted API
16 lines (13 loc) • 585 B
JavaScript
export default {
lowestPriority: true,
getMeta: function(schemaVideoObject) {
return {
duration: schemaVideoObject.duration,
date: schemaVideoObject.uploadDate || schemaVideoObject.datePublished || schemaVideoObject.dateCreated || schemaVideoObject.uploaddate,
// title and description are useful e.g. for Yahoo! Screen
title: schemaVideoObject.name,
description: schemaVideoObject.description,
views: schemaVideoObject.interactionCount || schemaVideoObject.interactioncount
};
}
};