Add playback performance metrics. Closes #1930

This commit is contained in:
Gabe Kangas
2022-06-02 14:23:51 -07:00
parent 04597908a5
commit 221b9c8f0f
5 changed files with 68 additions and 39 deletions

View File

@@ -5,11 +5,13 @@ export interface ServerStatus {
lastDisconnectTime?: Date;
versionNumber?: string;
streamTitle?: string;
serverTime: Date;
}
export function makeEmptyServerStatus(): ServerStatus {
return {
online: false,
viewerCount: 0,
serverTime: new Date(),
};
}