diff options
Diffstat (limited to 'client/src/app/shared/shared-main/video/video.model.ts')
-rw-r--r-- | client/src/app/shared/shared-main/video/video.model.ts | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/client/src/app/shared/shared-main/video/video.model.ts b/client/src/app/shared/shared-main/video/video.model.ts index 699eac7f1..b11316471 100644 --- a/client/src/app/shared/shared-main/video/video.model.ts +++ b/client/src/app/shared/shared-main/video/video.model.ts | |||
@@ -10,9 +10,11 @@ import { | |||
10 | UserRight, | 10 | UserRight, |
11 | Video as VideoServerModel, | 11 | Video as VideoServerModel, |
12 | VideoConstant, | 12 | VideoConstant, |
13 | VideoFile, | ||
13 | VideoPrivacy, | 14 | VideoPrivacy, |
14 | VideoScheduleUpdate, | 15 | VideoScheduleUpdate, |
15 | VideoState | 16 | VideoState, |
17 | VideoStreamingPlaylist | ||
16 | } from '@shared/models' | 18 | } from '@shared/models' |
17 | 19 | ||
18 | export class Video implements VideoServerModel { | 20 | export class Video implements VideoServerModel { |
@@ -96,6 +98,9 @@ export class Video implements VideoServerModel { | |||
96 | 98 | ||
97 | pluginData?: any | 99 | pluginData?: any |
98 | 100 | ||
101 | streamingPlaylists?: VideoStreamingPlaylist[] | ||
102 | files?: VideoFile[] | ||
103 | |||
99 | static buildWatchUrl (video: Partial<Pick<Video, 'uuid' | 'shortUUID'>>) { | 104 | static buildWatchUrl (video: Partial<Pick<Video, 'uuid' | 'shortUUID'>>) { |
100 | return buildVideoWatchPath({ shortUUID: video.shortUUID || video.uuid }) | 105 | return buildVideoWatchPath({ shortUUID: video.shortUUID || video.uuid }) |
101 | } | 106 | } |
@@ -172,6 +177,9 @@ export class Video implements VideoServerModel { | |||
172 | this.blockedOwner = hash.blockedOwner | 177 | this.blockedOwner = hash.blockedOwner |
173 | this.blockedServer = hash.blockedServer | 178 | this.blockedServer = hash.blockedServer |
174 | 179 | ||
180 | this.streamingPlaylists = hash.streamingPlaylists | ||
181 | this.files = hash.files | ||
182 | |||
175 | this.userHistory = hash.userHistory | 183 | this.userHistory = hash.userHistory |
176 | 184 | ||
177 | this.originInstanceHost = this.account.host | 185 | this.originInstanceHost = this.account.host |