aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2020-10-26 16:44:23 +0100
committerChocobozzz <chocobozzz@cpy.re>2020-11-09 15:33:04 +0100
commitb5b687550d8ef8beafdf706e45d6556fb5f4c876 (patch)
tree232412d463c78af1f7ab5797db5aecf1096d08da /shared
parentef680f68351ec10ab73a1131570a6d14ce14c195 (diff)
downloadPeerTube-b5b687550d8ef8beafdf706e45d6556fb5f4c876.tar.gz
PeerTube-b5b687550d8ef8beafdf706e45d6556fb5f4c876.tar.zst
PeerTube-b5b687550d8ef8beafdf706e45d6556fb5f4c876.zip
Add ability to save live replay
Diffstat (limited to 'shared')
-rw-r--r--shared/models/videos/live/index.ts2
-rw-r--r--shared/models/videos/live/live-video-create.model.ts5
-rw-r--r--shared/models/videos/live/live-video-update.model.ts3
-rw-r--r--shared/models/videos/live/live-video.model.ts1
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 @@
1export * from './live-video-create.model'
1export * from './live-video-event-payload.model' 2export * from './live-video-event-payload.model'
2export * from './live-video-event.type' 3export * from './live-video-event.type'
4export * from './live-video-update.model'
3export * from './live-video.model' 5export * 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 @@
1import { VideoCreate } from '../video-create.model'
2
3export 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 @@
1export 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 @@
1export interface LiveVideo { 1export interface LiveVideo {
2 rtmpUrl: string 2 rtmpUrl: string
3 streamKey: string 3 streamKey: string
4 saveReplay: boolean
4} 5}