Add missing hooks to hello world plugin

This commit is contained in:
Chocobozzz
2019-12-05 17:08:33 +01:00
parent cb8a9c1b0e
commit 115c234a6d
3 changed files with 24 additions and 1 deletions

View File

@ -35,6 +35,16 @@ function register ({ registerHook, peertubeHelpers }) {
return result
}
})
registerHook({
target: 'filter:internal.video-watch.player.build-options.result',
handler: (result, params) => {
console.log('Running player build options hook for video %s.', params.video.name)
result.playerOptions.common.inactivityTimeout = 10000
return result
}
})
}
export {