account: video.VideoChannel.Account.toFormattedSummaryJSON(),
channel: video.VideoChannel.toFormattedSummaryJSON(),
- userHistory: userHistory ? {
- currentTime: userHistory.currentTime
- } : undefined,
+ userHistory: userHistory
+ ? { currentTime: userHistory.currentTime }
+ : undefined,
// Can be added by external plugins
pluginData: (video as any).pluginData
? video.VideoLive.saveReplay
: null,
+ permanentLive: video.isLive
+ ? video.VideoLive.permanentLive
+ : null,
+
state: video.state,
commentsEnabled: video.commentsEnabled,
downloadEnabled: video.downloadEnabled,