diff options
author | Chocobozzz <me@florianbigard.com> | 2020-12-09 15:00:02 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2020-12-09 16:31:42 +0100 |
commit | a800dbf345e856ab790e7b3ab9a97e8c5dfa0a32 (patch) | |
tree | b7f814ee0dae543a6f2937b9ab5154cfeff3e986 /shared/models/videos/live | |
parent | 5cac83a78d6ba5212755fafce2ed25f7c74b04e5 (diff) | |
download | PeerTube-a800dbf345e856ab790e7b3ab9a97e8c5dfa0a32.tar.gz PeerTube-a800dbf345e856ab790e7b3ab9a97e8c5dfa0a32.tar.zst PeerTube-a800dbf345e856ab790e7b3ab9a97e8c5dfa0a32.zip |
Live views update
Diffstat (limited to 'shared/models/videos/live')
-rw-r--r-- | shared/models/videos/live/live-video-event-payload.model.ts | 3 | ||||
-rw-r--r-- | shared/models/videos/live/live-video-event.type.ts | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/shared/models/videos/live/live-video-event-payload.model.ts b/shared/models/videos/live/live-video-event-payload.model.ts index f9038f4de..6cd7540e8 100644 --- a/shared/models/videos/live/live-video-event-payload.model.ts +++ b/shared/models/videos/live/live-video-event-payload.model.ts | |||
@@ -1,5 +1,6 @@ | |||
1 | import { VideoState } from '../video-state.enum' | 1 | import { VideoState } from '../video-state.enum' |
2 | 2 | ||
3 | export interface LiveVideoEventPayload { | 3 | export interface LiveVideoEventPayload { |
4 | state: VideoState | 4 | state?: VideoState |
5 | views?: number | ||
5 | } | 6 | } |
diff --git a/shared/models/videos/live/live-video-event.type.ts b/shared/models/videos/live/live-video-event.type.ts index 4d15899da..50f794561 100644 --- a/shared/models/videos/live/live-video-event.type.ts +++ b/shared/models/videos/live/live-video-event.type.ts | |||
@@ -1 +1 @@ | |||
export type LiveVideoEventType = 'state-change' | export type LiveVideoEventType = 'state-change' | 'views-change' | ||