2021-04-14 06:06:11 +02:00
|
|
|
// @flow
|
|
|
|
|
|
|
|
declare type LivestreamReplayItem = {
|
|
|
|
data: {
|
|
|
|
claimId: string,
|
|
|
|
deleted: boolean,
|
|
|
|
deletedAt: ?string,
|
|
|
|
ffprobe: any,
|
|
|
|
fileDuration: number, // decimal? float? string?
|
|
|
|
fileType: string,
|
|
|
|
fileLocation: string,
|
|
|
|
fileSize: number,
|
|
|
|
key: string,
|
|
|
|
published: boolean,
|
|
|
|
publishedAt: ?string,
|
|
|
|
service: string,
|
|
|
|
thumbnails: Array<string>,
|
|
|
|
uploadedAt: string, // Date?
|
|
|
|
},
|
|
|
|
id: string,
|
|
|
|
}
|
|
|
|
declare type LivestreamReplayData = Array<LivestreamReplayItem>;
|
2021-04-23 05:04:11 +02:00
|
|
|
|
|
|
|
declare type LivestreamState = {
|
2021-04-23 19:11:53 +02:00
|
|
|
fetchingById: {},
|
2021-06-17 20:55:23 +02:00
|
|
|
viewersById: {},
|
2021-09-16 10:02:41 +02:00
|
|
|
fetchingActiveLivestreams: boolean,
|
|
|
|
activeLivestreams: ?LivestreamInfo,
|
2021-09-20 04:30:23 +02:00
|
|
|
lastFetchedActiveLivestreams: number,
|
2021-09-16 10:02:41 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
declare type LivestreamInfo = {
|
|
|
|
[/* creatorId */ string]: {
|
|
|
|
live: boolean,
|
|
|
|
viewCount: number,
|
|
|
|
creatorId: string,
|
|
|
|
latestClaimId: string,
|
|
|
|
latestClaimUri: string,
|
|
|
|
}
|
2021-04-23 05:04:11 +02:00
|
|
|
}
|