aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/models
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2019-12-05 17:06:18 +0100
committerChocobozzz <me@florianbigard.com>2019-12-05 17:06:18 +0100
commit3d9a63d3d824e753e95292b5e1343e1ebf9eaf71 (patch)
treef52c6da3c014c83e8687fb09ec8645ea845bbcdf /shared/models
parent0d3a9be9f13c2642cb6cf26fdebc5edf5217bbbc (diff)
downloadPeerTube-3d9a63d3d824e753e95292b5e1343e1ebf9eaf71.tar.gz
PeerTube-3d9a63d3d824e753e95292b5e1343e1ebf9eaf71.tar.zst
PeerTube-3d9a63d3d824e753e95292b5e1343e1ebf9eaf71.zip
Add hook to alter player build options
Diffstat (limited to 'shared/models')
-rw-r--r--shared/models/plugins/client-hook.model.ts6
1 files changed, 5 insertions, 1 deletions
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 @@
1// Data from API hooks: {hookType}:api.{location}.{elementType}.{actionType}.{target} 1// Data from API hooks: {hookType}:api.{location}.{elementType}.{actionType}.{target}
2// Data in internal functions: {hookType}:{location}.{elementType}.{actionType}.{target}
2 3
3export const clientFilterHookObject = { 4export const clientFilterHookObject = {
4 // Filter params/result of the function that fetch videos of the trending page 5 // Filter params/result of the function that fetch videos of the trending page
@@ -41,7 +42,10 @@ export const clientFilterHookObject = {
41 'filter:api.search.video-channels.list.result': true, 42 'filter:api.search.video-channels.list.result': true,
42 43
43 // Filter form 44 // Filter form
44 'filter:api.signup.registration.create.params': true 45 'filter:api.signup.registration.create.params': true,
46
47 // Filter the options to create our player
48 'filter:internal.video-watch.player.build-options.result': true
45} 49}
46 50
47export type ClientFilterHookName = keyof typeof clientFilterHookObject 51export type ClientFilterHookName = keyof typeof clientFilterHookObject