From 3d9a63d3d824e753e95292b5e1343e1ebf9eaf71 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 5 Dec 2019 17:06:18 +0100 Subject: Add hook to alter player build options --- shared/models/plugins/client-hook.model.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'shared/models/plugins/client-hook.model.ts') diff --git a/shared/models/plugins/client-hook.model.ts b/shared/models/plugins/client-hook.model.ts index 91167ff8c..f0cdb8b19 100644 --- a/shared/models/plugins/client-hook.model.ts +++ b/shared/models/plugins/client-hook.model.ts @@ -1,4 +1,5 @@ // Data from API hooks: {hookType}:api.{location}.{elementType}.{actionType}.{target} +// Data in internal functions: {hookType}:{location}.{elementType}.{actionType}.{target} export const clientFilterHookObject = { // Filter params/result of the function that fetch videos of the trending page @@ -41,7 +42,10 @@ export const clientFilterHookObject = { 'filter:api.search.video-channels.list.result': true, // Filter form - 'filter:api.signup.registration.create.params': true + 'filter:api.signup.registration.create.params': true, + + // Filter the options to create our player + 'filter:internal.video-watch.player.build-options.result': true } export type ClientFilterHookName = keyof typeof clientFilterHookObject -- cgit v1.2.3