1
0
Fork 0
peertube/shared/models/videos/playlist/video-playlist-element.model.ts
2020-08-07 08:28:14 +02:00

19 lines
379 B
TypeScript

import { Video } from '../video.model'
export const enum VideoPlaylistElementType {
REGULAR = 0,
DELETED = 1,
PRIVATE = 2,
UNAVAILABLE = 3 // Blacklisted, blocked by the user/instance, NSFW...
}
export interface VideoPlaylistElement {
id: number
position: number
startTimestamp: number
stopTimestamp: number
type: VideoPlaylistElementType
video?: Video
}