]>
Commit | Line | Data |
---|---|---|
9a18a625 | 1 | <div class="root" [ngClass]="{ 'theater-enabled': theaterEnabled }"> |
897ec54d | 2 | <!-- We need the video container for videojs so we just hide it --> |
e2f01c47 | 3 | <div id="video-wrapper"> |
6d88de72 C |
4 | <div *ngIf="remoteServerDown" class="remote-server-down"> |
5 | Sorry, but this video is not available because the remote instance is not responding. | |
6 | <br /> | |
7 | Please try again later. | |
8 | </div> | |
e2f01c47 | 9 | |
c15d61f5 C |
10 | <div id="videojs-wrapper"> |
11 | <img *ngIf="playerPlaceholderImgSrc" [src]="playerPlaceholderImgSrc" alt="Placeholder image" i18n-alt> | |
12 | </div> | |
e2f01c47 | 13 | |
72675ebe C |
14 | <my-video-watch-playlist |
15 | #videoWatchPlaylist | |
d142c7b9 C |
16 | [playlist]="playlist" class="playlist" |
17 | (videoFound)="onPlaylistVideoFound($event)" | |
72675ebe | 18 | ></my-video-watch-playlist> |
d1992b93 | 19 | </div> |
897ec54d | 20 | |
2b3f1919 C |
21 | <div class="row"> |
22 | <div i18n class="col-md-12 alert alert-warning" *ngIf="isVideoToImport()"> | |
23 | The video is being imported, it will be available when the import is finished. | |
24 | </div> | |
516df59b | 25 | |
2b3f1919 C |
26 | <div i18n class="col-md-12 alert alert-warning" *ngIf="isVideoToTranscode()"> |
27 | The video is being transcoded, it may not work properly. | |
28 | </div> | |
2186386c | 29 | |
2b3f1919 C |
30 | <div i18n class="col-md-12 alert alert-info" *ngIf="hasVideoScheduledPublication()"> |
31 | This video will be published on {{ video.scheduledUpdate.updateAt | date: 'full' }}. | |
32 | </div> | |
191764f3 | 33 | |
a5cf76af C |
34 | <div i18n class="col-md-12 alert alert-info" *ngIf="isWaitingForLive()"> |
35 | This live has not started yet. | |
36 | </div> | |
37 | ||
38 | <div i18n class="col-md-12 alert alert-info" *ngIf="isLiveEnded()"> | |
5c0904fc | 39 | This live has ended. |
a5cf76af C |
40 | </div> |
41 | ||
2b3f1919 | 42 | <div class="col-md-12 alert alert-danger" *ngIf="video?.blacklisted"> |
5baee5fc RK |
43 | <div class="blocked-label" i18n>This video is blocked.</div> |
44 | {{ video.blockedReason }} | |
2b3f1919 | 45 | </div> |
bbe0f064 C |
46 | </div> |
47 | ||
20206dfb | 48 | <!-- Video information --> |
2303a803 | 49 | <div *ngIf="video" class="margin-content video-bottom"> |
9a18a625 C |
50 | <div class="video-info"> |
51 | <div class="video-info-first-row"> | |
52 | <div> | |
7fc441cc | 53 | <div class="d-block d-md-none"> <!-- only shown on medium devices, has its counterpart for larger viewports below --> |
9a18a625 | 54 | <h1 class="video-info-name">{{ video.name }}</h1> |
7fc441cc | 55 | |
5c0904fc C |
56 | <div class="video-info-date-views"> |
57 | <ng-container i18n>Published <my-date-toggle [date]="video.publishedAt"></my-date-toggle></ng-container> | |
5cac83a7 C |
58 | • |
59 | <my-video-views-counter [video]="video"></my-video-views-counter> | |
9a18a625 C |
60 | </div> |
61 | </div> | |
62 | ||
7fc441cc | 63 | <div class="d-flex justify-content-between flex-direction-column"> |
9a18a625 | 64 | <div class="d-none d-md-block"> |
f845c683 | 65 | <h1 class="video-info-name">{{ video.name }}</h1> |
7fc441cc | 66 | </div> |
9a18a625 | 67 | |
7fc441cc | 68 | <div class="video-info-first-row-bottom"> |
5c0904fc C |
69 | <div class="d-none d-md-block video-info-date-views"> |
70 | <ng-container i18n>Published <my-date-toggle [date]="video.publishedAt"></my-date-toggle></ng-container> | |
dc1f314e C |
71 | • |
72 | <my-video-views-counter [video]="video"></my-video-views-counter> | |
2d9fea16 | 73 | </div> |
2d9fea16 | 74 | |
7fc441cc | 75 | <div class="video-actions-rates"> |
214ff6fa | 76 | <ng-template #ratePopoverText> |
77 | <span [innerHTML]="getRatePopoverText()"></span> | |
78 | </ng-template> | |
79 | ||
7fc441cc | 80 | <div class="video-actions fullWidth justify-content-end"> |
adcf9212 | 81 | <button |
214ff6fa | 82 | [ngbPopover]="getRatePopoverText() && ratePopoverText" [ngClass]="{ 'activated': userRating === 'like' }" (click)="setLike()" (keyup.enter)="setLike()" |
adcf9212 | 83 | class="action-button action-button-like" [attr.aria-pressed]="userRating === 'like'" [attr.aria-label]="tooltipLike" |
94dfca3e RK |
84 | [ngbTooltip]="tooltipLike" |
85 | placement="bottom auto" | |
7fc441cc RK |
86 | > |
87 | <my-global-icon iconName="like"></my-global-icon> | |
88 | <span *ngIf="video.likes" class="count">{{ video.likes }}</span> | |
adcf9212 | 89 | </button> |
2d3741d6 | 90 | |
adcf9212 | 91 | <button |
214ff6fa | 92 | [ngbPopover]="getRatePopoverText() && ratePopoverText" [ngClass]="{ 'activated': userRating === 'dislike' }" (click)="setDislike()" (keyup.enter)="setDislike()" |
adcf9212 | 93 | class="action-button action-button-dislike" [attr.aria-pressed]="userRating === 'dislike'" [attr.aria-label]="tooltipDislike" |
94dfca3e RK |
94 | [ngbTooltip]="tooltipDislike" |
95 | placement="bottom auto" | |
7fc441cc RK |
96 | > |
97 | <my-global-icon iconName="dislike"></my-global-icon> | |
98 | <span *ngIf="video.dislikes" class="count">{{ video.dislikes }}</span> | |
adcf9212 | 99 | </button> |
3adf3196 | 100 | |
adcf9212 | 101 | <button *ngIf="video.support" (click)="showSupportModal()" (keyup.enter)="showSupportModal()" class="action-button action-button-support" [attr.aria-label]="tooltipSupport" |
94dfca3e RK |
102 | [ngbTooltip]="tooltipSupport" |
103 | placement="bottom auto" | |
104 | > | |
adcf9212 | 105 | <my-global-icon iconName="support" aria-hidden="true"></my-global-icon> |
14571f19 | 106 | <span class="icon-text" i18n>SUPPORT</span> |
adcf9212 | 107 | </button> |
3adf3196 | 108 | |
adcf9212 | 109 | <button (click)="showShareModal()" (keyup.enter)="showShareModal()" class="action-button"> |
6ad971d5 | 110 | <my-global-icon iconName="share" aria-hidden="true"></my-global-icon> |
14571f19 | 111 | <span class="icon-text" i18n>SHARE</span> |
adcf9212 | 112 | </button> |
3adf3196 | 113 | |
7fc441cc RK |
114 | <div |
115 | class="action-dropdown" ngbDropdown placement="top" role="button" autoClose="outside" | |
116 | *ngIf="isUserLoggedIn()" (openChange)="addContent.openChange($event)" | |
94dfca3e RK |
117 | [ngbTooltip]="tooltipSaveToPlaylist" |
118 | placement="bottom auto" | |
7fc441cc | 119 | > |
adcf9212 | 120 | <button class="action-button action-button-save" ngbDropdownToggle> |
6ad971d5 | 121 | <my-global-icon iconName="playlist-add" aria-hidden="true"></my-global-icon> |
14571f19 | 122 | <span class="icon-text" i18n>SAVE</span> |
adcf9212 | 123 | </button> |
3adf3196 | 124 | |
7fc441cc RK |
125 | <div ngbDropdownMenu> |
126 | <my-video-add-to-playlist #addContent [video]="video"></my-video-add-to-playlist> | |
127 | </div> | |
128 | </div> | |
3adf3196 | 129 | |
a5cf76af | 130 | <ng-container *ngIf="!isUserLoggedIn() && !isLive()"> |
6863f814 RK |
131 | <button |
132 | *ngIf="isVideoDownloadable()" class="action-button action-button-save" | |
133 | (click)="showDownloadModal()" (keydown.enter)="showDownloadModal()" | |
134 | > | |
135 | <my-global-icon iconName="download" aria-hidden="true"></my-global-icon> | |
136 | <span class="icon-text d-none d-sm-inline" i18n>DOWNLOAD</span> | |
137 | </button> | |
82f443de | 138 | |
6863f814 RK |
139 | <my-video-download #videoDownloadModal></my-video-download> |
140 | </ng-container> | |
82f443de | 141 | |
6863f814 RK |
142 | <ng-container *ngIf="isUserLoggedIn()"> |
143 | <my-video-actions-dropdown | |
144 | placement="bottom auto" buttonDirection="horizontal" [buttonStyled]="true" [video]="video" [videoCaptions]="videoCaptions" | |
ca873292 | 145 | [displayOptions]="videoActionsOptions" (videoRemoved)="onVideoRemoved()" |
6863f814 RK |
146 | ></my-video-actions-dropdown> |
147 | </ng-container> | |
9a18a625 | 148 | </div> |
3adf3196 | 149 | |
223b24e6 | 150 | <div class="video-info-likes-dislikes-bar-outer-container"> |
2de7f588 | 151 | <div |
223b24e6 | 152 | class="video-info-likes-dislikes-bar-inner-container" |
2de7f588 RK |
153 | *ngIf="video.likes !== 0 || video.dislikes !== 0" |
154 | [ngbTooltip]="likesBarTooltipText" | |
155 | placement="bottom" | |
156 | > | |
157 | <div | |
158 | class="video-info-likes-dislikes-bar" | |
159 | > | |
0240da5c | 160 | <div class="likes-bar" [ngClass]="{ 'liked': userRating !== 'none' }" [ngStyle]="{ 'width.%': video.likesPercent }"></div> |
2de7f588 RK |
161 | </div> |
162 | </div> | |
9a18a625 | 163 | </div> |
9a18a625 | 164 | </div> |
2d3741d6 | 165 | |
9a18a625 C |
166 | <div |
167 | class="video-info-likes-dislikes-bar" | |
168 | *ngIf="video.likes !== 0 || video.dislikes !== 0" | |
169 | [ngbTooltip]="likesBarTooltipText" | |
170 | placement="bottom" | |
171 | > | |
172 | <div class="likes-bar" [ngStyle]="{ 'width.%': video.likesPercent }"></div> | |
2d9fea16 | 173 | </div> |
1f788f20 | 174 | </div> |
9a18a625 | 175 | </div> |
6a9e1d42 | 176 | |
07fa4c97 | 177 | |
dd4f25ee RK |
178 | <div class="pt-3 border-top video-info-channel d-flex"> |
179 | <div class="video-info-channel-left d-flex"> | |
69524f6e | 180 | <my-video-avatar-channel [video]="video" [genericChannel]="isChannelDisplayNameGeneric()"></my-video-avatar-channel> |
62fca05d | 181 | |
dd4f25ee | 182 | <div class="video-info-channel-left-links ml-1"> |
b40a2193 K |
183 | <ng-container *ngIf="!isChannelDisplayNameGeneric()"> |
184 | <a [routerLink]="[ '/video-channels', video.byVideoChannel ]" i18n-title title="Channel page"> | |
185 | {{ video.channel.displayName }} | |
186 | </a> | |
187 | <a [routerLink]="[ '/accounts', video.byAccount ]" i18n-title title="Account page"> | |
188 | <span i18n>By {{ video.byAccount }}</span> | |
189 | </a> | |
190 | </ng-container> | |
191 | ||
192 | <ng-container *ngIf="isChannelDisplayNameGeneric()"> | |
193 | <a [routerLink]="[ '/accounts', video.byAccount ]" class="single-link" i18n-title title="Account page"> | |
194 | <span i18n>{{ video.byAccount }}</span> | |
195 | </a> | |
196 | </ng-container> | |
dd4f25ee RK |
197 | </div> |
198 | </div> | |
63347a0f | 199 | |
41eb700f | 200 | <my-subscribe-button #subscribeButton [videoChannels]="[video.channel]" size="small"></my-subscribe-button> |
2d9fea16 | 201 | </div> |
2d9fea16 | 202 | </div> |
26b7305a | 203 | |
9a18a625 | 204 | </div> |
191764f3 | 205 | |
dd4f25ee | 206 | <div class="video-info-description"> |
b29bf61d RK |
207 | <div |
208 | class="video-info-description-html" | |
208c7e92 | 209 | [innerHTML]="videoHTMLDescription" |
b29bf61d RK |
210 | (timestampClicked)="handleTimestampClicked($event)" |
211 | timestampRouteTransformer | |
212 | ></div> | |
d07137b9 | 213 | |
9a18a625 C |
214 | <div class="video-info-description-more" *ngIf="completeDescriptionShown === false && video.description?.length >= 250" (click)="showMoreDescription()"> |
215 | <ng-container i18n>Show more</ng-container> | |
216 | <span *ngIf="descriptionLoading === false" class="glyphicon glyphicon-menu-down"></span> | |
217 | <my-small-loader class="description-loading" [loading]="descriptionLoading"></my-small-loader> | |
1f788f20 | 218 | </div> |
09223546 | 219 | |
9a18a625 C |
220 | <div *ngIf="completeDescriptionShown === true" (click)="showLessDescription()" class="video-info-description-more"> |
221 | <ng-container i18n>Show less</ng-container> | |
222 | <span *ngIf="descriptionLoading === false" class="glyphicon glyphicon-menu-up"></span> | |
223 | </div> | |
224 | </div> | |
adb115f5 | 225 | |
dd4f25ee | 226 | <div class="video-attributes mb-3"> |
9a18a625 C |
227 | <div class="video-attribute"> |
228 | <span i18n class="video-attribute-label">Privacy</span> | |
229 | <span class="video-attribute-value">{{ video.privacy.label }}</span> | |
230 | </div> | |
2de96f4d | 231 | |
c910f667 C |
232 | <div *ngIf="video.isLocal === false" class="video-attribute"> |
233 | <span i18n class="video-attribute-label">Origin instance</span> | |
234 | <a class="video-attribute-value" target="_blank" rel="noopener noreferrer" [href]="video.originInstanceUrl">{{ video.originInstanceHost }}</a> | |
235 | </div> | |
236 | ||
9a18a625 C |
237 | <div *ngIf="!!video.originallyPublishedAt" class="video-attribute"> |
238 | <span i18n class="video-attribute-label">Originally published</span> | |
239 | <span class="video-attribute-value">{{ video.originallyPublishedAt | date: 'dd MMMM yyyy' }}</span> | |
240 | </div> | |
2de96f4d | 241 | |
9a18a625 C |
242 | <div class="video-attribute"> |
243 | <span i18n class="video-attribute-label">Category</span> | |
244 | <span *ngIf="!video.category.id" class="video-attribute-value">{{ video.category.label }}</span> | |
245 | <a | |
246 | *ngIf="video.category.id" class="video-attribute-value" | |
247 | [routerLink]="[ '/search' ]" [queryParams]="{ categoryOneOf: [ video.category.id ] }" | |
248 | >{{ video.category.label }}</a> | |
249 | </div> | |
db216afd | 250 | |
9a18a625 C |
251 | <div class="video-attribute"> |
252 | <span i18n class="video-attribute-label">Licence</span> | |
253 | <span *ngIf="!video.licence.id" class="video-attribute-value">{{ video.licence.label }}</span> | |
254 | <a | |
255 | *ngIf="video.licence.id" class="video-attribute-value" | |
256 | [routerLink]="[ '/search' ]" [queryParams]="{ licenceOneOf: [ video.licence.id ] }" | |
257 | >{{ video.licence.label }}</a> | |
258 | </div> | |
fd45e8f4 | 259 | |
9a18a625 C |
260 | <div class="video-attribute"> |
261 | <span i18n class="video-attribute-label">Language</span> | |
262 | <span *ngIf="!video.language.id" class="video-attribute-value">{{ video.language.label }}</span> | |
263 | <a | |
264 | *ngIf="video.language.id" class="video-attribute-value" | |
265 | [routerLink]="[ '/search' ]" [queryParams]="{ languageOneOf: [ video.language.id ] }" | |
266 | >{{ video.language.label }}</a> | |
20206dfb | 267 | </div> |
09223546 | 268 | |
9a18a625 C |
269 | <div class="video-attribute video-attribute-tags"> |
270 | <span i18n class="video-attribute-label">Tags</span> | |
271 | <a | |
272 | *ngFor="let tag of getVideoTags()" | |
273 | class="video-attribute-value" [routerLink]="[ '/search' ]" [queryParams]="{ tagsOneOf: [ tag ] }" | |
274 | >{{ tag }}</a> | |
275 | </div> | |
df8340b7 | 276 | |
da0310f8 | 277 | <div class="video-attribute" *ngIf="!video.isLive"> |
df8340b7 | 278 | <span i18n class="video-attribute-label">Duration</span> |
b5b68755 | 279 | <span class="video-attribute-value">{{ video.duration | myDurationFormatter }}</span> |
62fca05d | 280 | </div> |
3b766e18 RK |
281 | </div> |
282 | ||
b29bf61d RK |
283 | <my-video-comments |
284 | class="border-top" | |
285 | [video]="video" | |
286 | [user]="user" | |
287 | (timestampClicked)="handleTimestampClicked($event)" | |
288 | ></my-video-comments> | |
d1992b93 | 289 | </div> |
9a18a625 | 290 | |
6aa54148 | 291 | <my-recommended-videos |
0f7407d9 | 292 | [displayAsRow]="displayOtherVideosAsRow()" |
5c20a455 | 293 | [inputRecommendation]="{ uuid: video.uuid, tags: video.tags }" |
5c20a455 C |
294 | [playlist]="playlist" |
295 | (gotRecommendations)="onRecommendations($event)" | |
6aa54148 | 296 | ></my-recommended-videos> |
d1992b93 | 297 | </div> |
8ff3f883 | 298 | |
2b3f1919 | 299 | <div class="row privacy-concerns" *ngIf="hasAlreadyAcceptedPrivacyConcern === false"> |
2b3b76ab | 300 | <div class="privacy-concerns-text"> |
52e3beb9 RK |
301 | <span class="mr-2"> |
302 | <strong i18n>Friendly Reminder: </strong> | |
303 | <ng-container i18n> | |
304 | the sharing system used for this video implies that some technical information about your system (such as a public IP address) can be sent to other peers. | |
305 | </ng-container> | |
d3217560 | 306 | </span> |
5411da31 | 307 | <a i18n i18n-title title="Get more information" target="_blank" rel="noopener noreferrer" href="/about/peertube#privacy">More information</a> |
2b3b76ab C |
308 | </div> |
309 | ||
d3217560 | 310 | <div i18n class="privacy-concerns-button privacy-concerns-okay" (click)="acceptedPrivacyConcern()"> |
52e3beb9 | 311 | OK |
2b3b76ab C |
312 | </div> |
313 | </div> | |
b59f12b0 | 314 | </div> |
d1992b93 | 315 | |
5a71acd2 | 316 | <ng-container *ngIf="video !== null"> |
100d9ce2 | 317 | <my-support-modal #supportModal [video]="video"></my-support-modal> |
3a1fed11 | 318 | <my-video-share #videoShareModal [video]="video" [videoCaptions]="videoCaptions" [playlist]="playlist"></my-video-share> |
5a71acd2 | 319 | </ng-container> |