aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2020-12-09 15:00:02 +0100
committerChocobozzz <me@florianbigard.com>2020-12-09 16:31:42 +0100
commita800dbf345e856ab790e7b3ab9a97e8c5dfa0a32 (patch)
treeb7f814ee0dae543a6f2937b9ab5154cfeff3e986 /shared
parent5cac83a78d6ba5212755fafce2ed25f7c74b04e5 (diff)
downloadPeerTube-a800dbf345e856ab790e7b3ab9a97e8c5dfa0a32.tar.gz
PeerTube-a800dbf345e856ab790e7b3ab9a97e8c5dfa0a32.tar.zst
PeerTube-a800dbf345e856ab790e7b3ab9a97e8c5dfa0a32.zip
Live views update
Diffstat (limited to 'shared')
-rw-r--r--shared/models/videos/live/live-video-event-payload.model.ts3
-rw-r--r--shared/models/videos/live/live-video-event.type.ts2
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 @@
1import { VideoState } from '../video-state.enum' 1import { VideoState } from '../video-state.enum'
2 2
3export interface LiveVideoEventPayload { 3export 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'