Add missing hooks to hello world plugin
This commit is contained in:
		| @ -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 { | ||||
|  | ||||
		Reference in New Issue
	
	Block a user