diff options
author | Chocobozzz <me@florianbigard.com> | 2020-10-26 16:44:23 +0100 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2020-11-09 15:33:04 +0100 |
commit | b5b687550d8ef8beafdf706e45d6556fb5f4c876 (patch) | |
tree | 232412d463c78af1f7ab5797db5aecf1096d08da /shared/models/videos | |
parent | ef680f68351ec10ab73a1131570a6d14ce14c195 (diff) | |
download | PeerTube-b5b687550d8ef8beafdf706e45d6556fb5f4c876.tar.gz PeerTube-b5b687550d8ef8beafdf706e45d6556fb5f4c876.tar.zst PeerTube-b5b687550d8ef8beafdf706e45d6556fb5f4c876.zip |
Add ability to save live replay
Diffstat (limited to 'shared/models/videos')
-rw-r--r-- | shared/models/videos/live/index.ts | 2 | ||||
-rw-r--r-- | shared/models/videos/live/live-video-create.model.ts | 5 | ||||
-rw-r--r-- | shared/models/videos/live/live-video-update.model.ts | 3 | ||||
-rw-r--r-- | shared/models/videos/live/live-video.model.ts | 1 |
4 files changed, 11 insertions, 0 deletions
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 @@ | |||
1 | export * from './live-video-create.model' | ||
1 | export * from './live-video-event-payload.model' | 2 | export * from './live-video-event-payload.model' |
2 | export * from './live-video-event.type' | 3 | export * from './live-video-event.type' |
4 | export * from './live-video-update.model' | ||
3 | export * from './live-video.model' | 5 | 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 @@ | |||
1 | import { VideoCreate } from '../video-create.model' | ||
2 | |||
3 | export interface LiveVideoCreate extends VideoCreate { | ||
4 | saveReplay?: boolean | ||
5 | } | ||
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 @@ | |||
1 | export interface LiveVideoUpdate { | ||
2 | saveReplay?: boolean | ||
3 | } | ||
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 @@ | |||
1 | export interface LiveVideo { | 1 | export interface LiveVideo { |
2 | rtmpUrl: string | 2 | rtmpUrl: string |
3 | streamKey: string | 3 | streamKey: string |
4 | saveReplay: boolean | ||
4 | } | 5 | } |