PeerTube/shared/models/activitypub/objects/video-object.ts

75 lines
1.4 KiB
TypeScript
Raw Normal View History

2017-11-09 10:51:58 -06:00
import {
ActivityIconObject,
2018-09-11 09:27:07 -05:00
ActivityIdentifierObject,
ActivityPubAttributedTo,
2017-11-09 10:51:58 -06:00
ActivityTagObject,
ActivityUrlObject
} from './common-objects'
2022-03-04 06:40:02 -06:00
import { LiveVideoLatencyMode, VideoState } from '../../videos'
2017-11-09 10:51:58 -06:00
2020-09-17 06:59:02 -05:00
export interface VideoObject {
2017-11-09 10:51:58 -06:00
type: 'Video'
2017-11-10 07:34:45 -06:00
id: string
2017-11-09 10:51:58 -06:00
name: string
duration: string
uuid: string
tag: ActivityTagObject[]
category: ActivityIdentifierObject
licence: ActivityIdentifierObject
language: ActivityIdentifierObject
2018-07-12 12:02:00 -05:00
subtitleLanguage: ActivityIdentifierObject[]
2017-11-09 10:51:58 -06:00
views: number
2020-09-17 06:59:02 -05:00
sensitive: boolean
2020-11-02 08:43:44 -06:00
2020-09-17 06:59:02 -05:00
isLiveBroadcast: boolean
2020-11-02 08:43:44 -06:00
liveSaveReplay: boolean
2020-12-03 07:10:54 -06:00
permanentLive: boolean
2022-03-04 06:40:02 -06:00
latencyMode: LiveVideoLatencyMode
2020-09-17 06:59:02 -05:00
2020-01-31 09:56:52 -06:00
commentsEnabled: boolean
downloadEnabled: boolean
waitTranscoding: boolean
state: VideoState
2023-07-19 09:02:49 -05:00
published: string
2019-01-12 07:41:45 -06:00
originallyPublishedAt: string
updated: string
2023-07-19 09:02:49 -05:00
uploadDate: string
2017-11-09 10:51:58 -06:00
mediaType: 'text/markdown'
content: string
support: string
icon: ActivityIconObject[]
2017-11-09 10:51:58 -06:00
url: ActivityUrlObject[]
2021-02-18 03:15:11 -06:00
likes: string
dislikes: string
shares: string
comments: string
2021-02-18 03:15:11 -06:00
2017-12-14 10:38:41 -06:00
attributedTo: ActivityPubAttributedTo[]
2021-02-18 03:15:11 -06:00
2023-06-01 07:51:16 -05:00
preview?: ActivityPubStoryboard[]
2018-01-10 10:18:12 -06:00
to?: string[]
cc?: string[]
2017-11-09 10:51:58 -06:00
}
2023-06-01 07:51:16 -05:00
export interface ActivityPubStoryboard {
type: 'Image'
rel: [ 'storyboard' ]
url: {
href: string
mediaType: string
width: number
height: number
tileWidth: number
tileHeight: number
tileDuration: string
}[]
}