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:
parent
0d3a9be9f1
commit
3d9a63d3d8
4 changed files with 113 additions and 86 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue