'action:api.video-channel.deleted',
'action:api.live-video.created',
+ 'action:live.video.state.updated',
'action:api.video-thread.created',
'action:api.video-comment-reply.created',
}
})
+ // ---------------------------------------------------------------------------
+
registerHook({
target: 'filter:html.embed.video.allowed.result',
handler: (result, params) => {
}
})
+ // ---------------------------------------------------------------------------
+
+ registerHook({
+ target: 'filter:html.client.json-ld.result',
+ handler: (jsonld, context) => {
+ if (!context || !context.video) return jsonld
+
+ return Object.assign(jsonld, { recordedAt: 'http://example.com/recordedAt' })
+ }
+ })
+
+ // ---------------------------------------------------------------------------
+
registerHook({
target: 'filter:api.server.stats.get.result',
handler: (result) => {