1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-04 18:29:27 +02:00

Add hook to alter player build options

This commit is contained in:
Chocobozzz 2019-12-05 17:06:18 +01:00
parent 0d3a9be9f1
commit 3d9a63d3d8
No known key found for this signature in database
GPG key ID: 583A612D890159BE
4 changed files with 113 additions and 86 deletions

View file

@ -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