aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/models/videos
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2020-09-25 10:04:21 +0200
committerChocobozzz <chocobozzz@cpy.re>2020-11-09 15:33:04 +0100
commita5cf76afa378aae81af2a9b0ce548e5d2582f832 (patch)
tree58da320232bee7c9656774c5d6811e82bbf6c696 /shared/models/videos
parentde6310b2fcbb8a6b79c546b23dfa1920724faaa7 (diff)
downloadPeerTube-a5cf76afa378aae81af2a9b0ce548e5d2582f832.tar.gz
PeerTube-a5cf76afa378aae81af2a9b0ce548e5d2582f832.tar.zst
PeerTube-a5cf76afa378aae81af2a9b0ce548e5d2582f832.zip
Add watch messages if live has not started
Diffstat (limited to 'shared/models/videos')
-rw-r--r--shared/models/videos/index.ts3
-rw-r--r--shared/models/videos/live/index.ts3
-rw-r--r--shared/models/videos/live/live-video-event-payload.model.ts5
-rw-r--r--shared/models/videos/live/live-video-event.type.ts1
-rw-r--r--shared/models/videos/live/live-video.model.ts (renamed from shared/models/videos/video-live.model.ts)2
5 files changed, 12 insertions, 2 deletions
diff --git a/shared/models/videos/index.ts b/shared/models/videos/index.ts
index 2a032a456..abf144f23 100644
--- a/shared/models/videos/index.ts
+++ b/shared/models/videos/index.ts
@@ -1,6 +1,7 @@
1export * from './blacklist' 1export * from './blacklist'
2export * from './caption' 2export * from './caption'
3export * from './channel' 3export * from './channel'
4export * from './live'
4export * from './import' 5export * from './import'
5export * from './playlist' 6export * from './playlist'
6export * from './rate' 7export * from './rate'
@@ -19,7 +20,7 @@ export * from './video-create.model'
19export * from './video-file-metadata' 20export * from './video-file-metadata'
20export * from './video-file.model' 21export * from './video-file.model'
21 22
22export * from './video-live.model' 23export * from './live/live-video.model'
23 24
24export * from './video-privacy.enum' 25export * from './video-privacy.enum'
25export * from './video-query.type' 26export * from './video-query.type'
diff --git a/shared/models/videos/live/index.ts b/shared/models/videos/live/index.ts
new file mode 100644
index 000000000..4f331738b
--- /dev/null
+++ b/shared/models/videos/live/index.ts
@@ -0,0 +1,3 @@
1export * from './live-video-event-payload.model'
2export * from './live-video-event.type'
3export * from './live-video.model'
diff --git a/shared/models/videos/live/live-video-event-payload.model.ts b/shared/models/videos/live/live-video-event-payload.model.ts
new file mode 100644
index 000000000..f9038f4de
--- /dev/null
+++ b/shared/models/videos/live/live-video-event-payload.model.ts
@@ -0,0 +1,5 @@
1import { VideoState } from '../video-state.enum'
2
3export interface LiveVideoEventPayload {
4 state: VideoState
5}
diff --git a/shared/models/videos/live/live-video-event.type.ts b/shared/models/videos/live/live-video-event.type.ts
new file mode 100644
index 000000000..4d15899da
--- /dev/null
+++ b/shared/models/videos/live/live-video-event.type.ts
@@ -0,0 +1 @@
export type LiveVideoEventType = 'state-change'
diff --git a/shared/models/videos/video-live.model.ts b/shared/models/videos/live/live-video.model.ts
index 2a834dc91..74abee96e 100644
--- a/shared/models/videos/video-live.model.ts
+++ b/shared/models/videos/live/live-video.model.ts
@@ -1,4 +1,4 @@
1export interface VideoLive { 1export interface LiveVideo {
2 rtmpUrl: string 2 rtmpUrl: string
3 streamKey: string 3 streamKey: string
4} 4}