diff options
Diffstat (limited to 'shared/models/videos')
5 files changed, 15 insertions, 0 deletions
diff --git a/shared/models/videos/live/index.ts b/shared/models/videos/live/index.ts index a36f42a7d..68f32092a 100644 --- a/shared/models/videos/live/index.ts +++ b/shared/models/videos/live/index.ts | |||
@@ -1,5 +1,6 @@ | |||
1 | export * from './live-video-create.model' | 1 | export * from './live-video-create.model' |
2 | export * from './live-video-event-payload.model' | 2 | export * from './live-video-event-payload.model' |
3 | export * from './live-video-event.type' | 3 | export * from './live-video-event.type' |
4 | export * from './live-video-latency-mode.enum' | ||
4 | export * from './live-video-update.model' | 5 | export * from './live-video-update.model' |
5 | export * from './live-video.model' | 6 | 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 index caa7acc17..49ccaf45b 100644 --- a/shared/models/videos/live/live-video-create.model.ts +++ b/shared/models/videos/live/live-video-create.model.ts | |||
@@ -1,6 +1,8 @@ | |||
1 | import { LiveVideoLatencyMode } from '.' | ||
1 | import { VideoCreate } from '../video-create.model' | 2 | import { VideoCreate } from '../video-create.model' |
2 | 3 | ||
3 | export interface LiveVideoCreate extends VideoCreate { | 4 | export interface LiveVideoCreate extends VideoCreate { |
4 | saveReplay?: boolean | 5 | saveReplay?: boolean |
5 | permanentLive?: boolean | 6 | permanentLive?: boolean |
7 | latencyMode?: LiveVideoLatencyMode | ||
6 | } | 8 | } |
diff --git a/shared/models/videos/live/live-video-latency-mode.enum.ts b/shared/models/videos/live/live-video-latency-mode.enum.ts new file mode 100644 index 000000000..4285e1d41 --- /dev/null +++ b/shared/models/videos/live/live-video-latency-mode.enum.ts | |||
@@ -0,0 +1,5 @@ | |||
1 | export const enum LiveVideoLatencyMode { | ||
2 | DEFAULT = 1, | ||
3 | HIGH_LATENCY = 2, | ||
4 | SMALL_LATENCY = 3 | ||
5 | } | ||
diff --git a/shared/models/videos/live/live-video-update.model.ts b/shared/models/videos/live/live-video-update.model.ts index a39c44797..93bb4d30d 100644 --- a/shared/models/videos/live/live-video-update.model.ts +++ b/shared/models/videos/live/live-video-update.model.ts | |||
@@ -1,4 +1,7 @@ | |||
1 | import { LiveVideoLatencyMode } from './live-video-latency-mode.enum' | ||
2 | |||
1 | export interface LiveVideoUpdate { | 3 | export interface LiveVideoUpdate { |
2 | permanentLive?: boolean | 4 | permanentLive?: boolean |
3 | saveReplay?: boolean | 5 | saveReplay?: boolean |
6 | latencyMode?: LiveVideoLatencyMode | ||
4 | } | 7 | } |
diff --git a/shared/models/videos/live/live-video.model.ts b/shared/models/videos/live/live-video.model.ts index 815a93804..2d3169941 100644 --- a/shared/models/videos/live/live-video.model.ts +++ b/shared/models/videos/live/live-video.model.ts | |||
@@ -1,8 +1,12 @@ | |||
1 | import { LiveVideoLatencyMode } from './live-video-latency-mode.enum' | ||
2 | |||
1 | export interface LiveVideo { | 3 | export interface LiveVideo { |
2 | rtmpUrl: string | 4 | rtmpUrl: string |
3 | rtmpsUrl: string | 5 | rtmpsUrl: string |
4 | 6 | ||
5 | streamKey: string | 7 | streamKey: string |
8 | |||
6 | saveReplay: boolean | 9 | saveReplay: boolean |
7 | permanentLive: boolean | 10 | permanentLive: boolean |
11 | latencyMode: LiveVideoLatencyMode | ||
8 | } | 12 | } |