diff options
Diffstat (limited to 'shared/models/videos')
-rw-r--r-- | shared/models/videos/index.ts | 3 | ||||
-rw-r--r-- | shared/models/videos/live/index.ts | 3 | ||||
-rw-r--r-- | shared/models/videos/live/live-video-event-payload.model.ts | 5 | ||||
-rw-r--r-- | shared/models/videos/live/live-video-event.type.ts | 1 | ||||
-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 @@ | |||
1 | export * from './blacklist' | 1 | export * from './blacklist' |
2 | export * from './caption' | 2 | export * from './caption' |
3 | export * from './channel' | 3 | export * from './channel' |
4 | export * from './live' | ||
4 | export * from './import' | 5 | export * from './import' |
5 | export * from './playlist' | 6 | export * from './playlist' |
6 | export * from './rate' | 7 | export * from './rate' |
@@ -19,7 +20,7 @@ export * from './video-create.model' | |||
19 | export * from './video-file-metadata' | 20 | export * from './video-file-metadata' |
20 | export * from './video-file.model' | 21 | export * from './video-file.model' |
21 | 22 | ||
22 | export * from './video-live.model' | 23 | export * from './live/live-video.model' |
23 | 24 | ||
24 | export * from './video-privacy.enum' | 25 | export * from './video-privacy.enum' |
25 | export * from './video-query.type' | 26 | export * 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 @@ | |||
1 | export * from './live-video-event-payload.model' | ||
2 | export * from './live-video-event.type' | ||
3 | export * 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 @@ | |||
1 | import { VideoState } from '../video-state.enum' | ||
2 | |||
3 | export 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 @@ | |||
1 | export interface VideoLive { | 1 | export interface LiveVideo { |
2 | rtmpUrl: string | 2 | rtmpUrl: string |
3 | streamKey: string | 3 | streamKey: string |
4 | } | 4 | } |