mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-05 19:42:24 +02:00
Add live server hooks
This commit is contained in:
parent
c8f3cfeba7
commit
3cabf3532b
9 changed files with 133 additions and 32 deletions
|
@ -9,9 +9,10 @@ export const serverFilterHookObject = {
|
|||
// Used to get detailed video information (video watch page for example)
|
||||
'filter:api.video.get.result': true,
|
||||
|
||||
// Filter the result of the accept upload, import via torrent or url functions
|
||||
// Filter the result of the accept upload/live, import via torrent/url functions
|
||||
// If this function returns false then the upload is aborted with an error
|
||||
'filter:api.video.upload.accept.result': true,
|
||||
'filter:api.live-video.create.accept.result': true,
|
||||
'filter:api.video.pre-import-url.accept.result': true,
|
||||
'filter:api.video.pre-import-torrent.accept.result': true,
|
||||
'filter:api.video.post-import-url.accept.result': true,
|
||||
|
@ -54,6 +55,9 @@ export const serverActionHookObject = {
|
|||
// Fired when a local video is viewed
|
||||
'action:api.video.viewed': true,
|
||||
|
||||
// Fired when a live video is created
|
||||
'action:api.live-video.created': true,
|
||||
|
||||
// Fired when a thread is created
|
||||
'action:api.video-thread.created': true,
|
||||
// Fired when a reply to a thread is created
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue