diff options
Diffstat (limited to 'shared/models/videos')
-rw-r--r-- | shared/models/videos/index.ts | 2 | ||||
-rw-r--r-- | shared/models/videos/video-create.model.ts | 2 | ||||
-rw-r--r-- | shared/models/videos/video-live.model.ts | 4 | ||||
-rw-r--r-- | shared/models/videos/video-state.enum.ts | 4 | ||||
-rw-r--r-- | shared/models/videos/video-update.model.ts | 1 | ||||
-rw-r--r-- | shared/models/videos/video.model.ts | 2 |
6 files changed, 12 insertions, 3 deletions
diff --git a/shared/models/videos/index.ts b/shared/models/videos/index.ts index 20b9638ab..2a032a456 100644 --- a/shared/models/videos/index.ts +++ b/shared/models/videos/index.ts | |||
@@ -19,6 +19,8 @@ export * from './video-create.model' | |||
19 | export * from './video-file-metadata' | 19 | export * from './video-file-metadata' |
20 | export * from './video-file.model' | 20 | export * from './video-file.model' |
21 | 21 | ||
22 | export * from './video-live.model' | ||
23 | |||
22 | export * from './video-privacy.enum' | 24 | export * from './video-privacy.enum' |
23 | export * from './video-query.type' | 25 | export * from './video-query.type' |
24 | export * from './video-rate.type' | 26 | export * from './video-rate.type' |
diff --git a/shared/models/videos/video-create.model.ts b/shared/models/videos/video-create.model.ts index 53631bf79..59b118567 100644 --- a/shared/models/videos/video-create.model.ts +++ b/shared/models/videos/video-create.model.ts | |||
@@ -16,5 +16,5 @@ export interface VideoCreate { | |||
16 | downloadEnabled?: boolean | 16 | downloadEnabled?: boolean |
17 | privacy: VideoPrivacy | 17 | privacy: VideoPrivacy |
18 | scheduleUpdate?: VideoScheduleUpdate | 18 | scheduleUpdate?: VideoScheduleUpdate |
19 | originallyPublishedAt: Date | string | 19 | originallyPublishedAt?: Date | string |
20 | } | 20 | } |
diff --git a/shared/models/videos/video-live.model.ts b/shared/models/videos/video-live.model.ts new file mode 100644 index 000000000..2a834dc91 --- /dev/null +++ b/shared/models/videos/video-live.model.ts | |||
@@ -0,0 +1,4 @@ | |||
1 | export interface VideoLive { | ||
2 | rtmpUrl: string | ||
3 | streamKey: string | ||
4 | } | ||
diff --git a/shared/models/videos/video-state.enum.ts b/shared/models/videos/video-state.enum.ts index 31c501932..49d997f24 100644 --- a/shared/models/videos/video-state.enum.ts +++ b/shared/models/videos/video-state.enum.ts | |||
@@ -1,5 +1,7 @@ | |||
1 | export const enum VideoState { | 1 | export const enum VideoState { |
2 | PUBLISHED = 1, | 2 | PUBLISHED = 1, |
3 | TO_TRANSCODE = 2, | 3 | TO_TRANSCODE = 2, |
4 | TO_IMPORT = 3 | 4 | TO_IMPORT = 3, |
5 | WAITING_FOR_LIVE = 4, | ||
6 | LIVE_ENDED = 5 | ||
5 | } | 7 | } |
diff --git a/shared/models/videos/video-update.model.ts b/shared/models/videos/video-update.model.ts index 86653b959..e21ccae04 100644 --- a/shared/models/videos/video-update.model.ts +++ b/shared/models/videos/video-update.model.ts | |||
@@ -1,6 +1,5 @@ | |||
1 | import { VideoPrivacy } from './video-privacy.enum' | 1 | import { VideoPrivacy } from './video-privacy.enum' |
2 | import { VideoScheduleUpdate } from './video-schedule-update.model' | 2 | import { VideoScheduleUpdate } from './video-schedule-update.model' |
3 | |||
4 | export interface VideoUpdate { | 3 | export interface VideoUpdate { |
5 | name?: string | 4 | name?: string |
6 | category?: number | 5 | category?: number |
diff --git a/shared/models/videos/video.model.ts b/shared/models/videos/video.model.ts index 158ee8f05..caefeff82 100644 --- a/shared/models/videos/video.model.ts +++ b/shared/models/videos/video.model.ts | |||
@@ -23,6 +23,8 @@ export interface Video { | |||
23 | isLocal: boolean | 23 | isLocal: boolean |
24 | name: string | 24 | name: string |
25 | 25 | ||
26 | isLive: boolean | ||
27 | |||
26 | thumbnailPath: string | 28 | thumbnailPath: string |
27 | thumbnailUrl?: string | 29 | thumbnailUrl?: string |
28 | 30 | ||