mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-05 19:42:24 +02:00
Handle live federation
This commit is contained in:
parent
1ef65f4c03
commit
de6310b2fc
10 changed files with 30 additions and 26 deletions
|
@ -1,6 +1,6 @@
|
|||
import { ActivityPubActor } from './activitypub-actor'
|
||||
import { ActivityPubSignature } from './activitypub-signature'
|
||||
import { ActivityFlagReasonObject, CacheFileObject, VideoTorrentObject } from './objects'
|
||||
import { ActivityFlagReasonObject, CacheFileObject, VideoObject } from './objects'
|
||||
import { AbuseObject } from './objects/abuse-object'
|
||||
import { DislikeObject } from './objects/dislike-object'
|
||||
import { APObject } from './objects/object.model'
|
||||
|
@ -53,12 +53,12 @@ export interface BaseActivity {
|
|||
|
||||
export interface ActivityCreate extends BaseActivity {
|
||||
type: 'Create'
|
||||
object: VideoTorrentObject | AbuseObject | ViewObject | DislikeObject | VideoCommentObject | CacheFileObject | PlaylistObject
|
||||
object: VideoObject | AbuseObject | ViewObject | DislikeObject | VideoCommentObject | CacheFileObject | PlaylistObject
|
||||
}
|
||||
|
||||
export interface ActivityUpdate extends BaseActivity {
|
||||
type: 'Update'
|
||||
object: VideoTorrentObject | ActivityPubActor | CacheFileObject | PlaylistObject
|
||||
object: VideoObject | ActivityPubActor | CacheFileObject | PlaylistObject
|
||||
}
|
||||
|
||||
export interface ActivityDelete extends BaseActivity {
|
||||
|
|
|
@ -7,7 +7,7 @@ import {
|
|||
} from './common-objects'
|
||||
import { VideoState } from '../../videos'
|
||||
|
||||
export interface VideoTorrentObject {
|
||||
export interface VideoObject {
|
||||
type: 'Video'
|
||||
id: string
|
||||
name: string
|
||||
|
@ -19,7 +19,10 @@ export interface VideoTorrentObject {
|
|||
language: ActivityIdentifierObject
|
||||
subtitleLanguage: ActivityIdentifierObject[]
|
||||
views: number
|
||||
|
||||
sensitive: boolean
|
||||
isLiveBroadcast: boolean
|
||||
|
||||
commentsEnabled: boolean
|
||||
downloadEnabled: boolean
|
||||
waitTranscoding: boolean
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue