From b5b687550d8ef8beafdf706e45d6556fb5f4c876 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 26 Oct 2020 16:44:23 +0100 Subject: Add ability to save live replay --- shared/models/videos/live/index.ts | 2 ++ shared/models/videos/live/live-video-create.model.ts | 5 +++++ shared/models/videos/live/live-video-update.model.ts | 3 +++ shared/models/videos/live/live-video.model.ts | 1 + 4 files changed, 11 insertions(+) create mode 100644 shared/models/videos/live/live-video-create.model.ts create mode 100644 shared/models/videos/live/live-video-update.model.ts (limited to 'shared') diff --git a/shared/models/videos/live/index.ts b/shared/models/videos/live/index.ts index 4f331738b..a36f42a7d 100644 --- a/shared/models/videos/live/index.ts +++ b/shared/models/videos/live/index.ts @@ -1,3 +1,5 @@ +export * from './live-video-create.model' export * from './live-video-event-payload.model' export * from './live-video-event.type' +export * from './live-video-update.model' export * from './live-video.model' diff --git a/shared/models/videos/live/live-video-create.model.ts b/shared/models/videos/live/live-video-create.model.ts new file mode 100644 index 000000000..1ef4b70dd --- /dev/null +++ b/shared/models/videos/live/live-video-create.model.ts @@ -0,0 +1,5 @@ +import { VideoCreate } from '../video-create.model' + +export interface LiveVideoCreate extends VideoCreate { + saveReplay?: boolean +} diff --git a/shared/models/videos/live/live-video-update.model.ts b/shared/models/videos/live/live-video-update.model.ts new file mode 100644 index 000000000..0f0f67d06 --- /dev/null +++ b/shared/models/videos/live/live-video-update.model.ts @@ -0,0 +1,3 @@ +export interface LiveVideoUpdate { + saveReplay?: boolean +} diff --git a/shared/models/videos/live/live-video.model.ts b/shared/models/videos/live/live-video.model.ts index 74abee96e..a3f8275e3 100644 --- a/shared/models/videos/live/live-video.model.ts +++ b/shared/models/videos/live/live-video.model.ts @@ -1,4 +1,5 @@ export interface LiveVideo { rtmpUrl: string streamKey: string + saveReplay: boolean } -- cgit v1.2.3