From af4ae64f6faf38f8179f2e07d3cd4ad60006be92 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 2 Nov 2020 15:43:44 +0100 Subject: Begin live tests --- shared/models/activitypub/objects/video-torrent-object.ts | 2 ++ shared/models/users/user-right.enum.ts | 1 + shared/models/videos/video-create.model.ts | 4 ++-- 3 files changed, 5 insertions(+), 2 deletions(-) (limited to 'shared/models') diff --git a/shared/models/activitypub/objects/video-torrent-object.ts b/shared/models/activitypub/objects/video-torrent-object.ts index 5b035a371..d99d273c3 100644 --- a/shared/models/activitypub/objects/video-torrent-object.ts +++ b/shared/models/activitypub/objects/video-torrent-object.ts @@ -21,7 +21,9 @@ export interface VideoObject { views: number sensitive: boolean + isLiveBroadcast: boolean + liveSaveReplay: boolean commentsEnabled: boolean downloadEnabled: boolean diff --git a/shared/models/users/user-right.enum.ts b/shared/models/users/user-right.enum.ts index 4c3d9e7c8..e815fa893 100644 --- a/shared/models/users/user-right.enum.ts +++ b/shared/models/users/user-right.enum.ts @@ -30,6 +30,7 @@ export const enum UserRight { UPDATE_ANY_VIDEO, UPDATE_ANY_VIDEO_PLAYLIST, + GET_ANY_LIVE, SEE_ALL_VIDEOS, CHANGE_VIDEO_OWNERSHIP, diff --git a/shared/models/videos/video-create.model.ts b/shared/models/videos/video-create.model.ts index 175327afa..9e980529d 100644 --- a/shared/models/videos/video-create.model.ts +++ b/shared/models/videos/video-create.model.ts @@ -18,6 +18,6 @@ export interface VideoCreate { scheduleUpdate?: VideoScheduleUpdate originallyPublishedAt?: Date | string - thumbnailfile?: Blob - previewfile?: Blob + thumbnailfile?: Blob | string + previewfile?: Blob | string } -- cgit v1.2.3