1 <div class=
"root" [ngClass]=
"{ 'theater-enabled': theaterEnabled }">
2 <!-- We need the video container for videojs so we just hide it -->
3 <div id=
"video-wrapper">
4 <div *
ngIf=
"remoteServerDown" class=
"remote-server-down">
5 Sorry, but this video is not available because the remote instance is not responding.
7 Please try again later.
10 <div id=
"videojs-wrapper">
11 <img *
ngIf=
"playerPlaceholderImgSrc" [src]=
"playerPlaceholderImgSrc" alt=
"Placeholder image" i18n-alt
>
14 <my-video-watch-playlist
16 [playlist]=
"playlist" class=
"playlist"
17 (videoFound)=
"onPlaylistVideoFound($event)"
18 ></my-video-watch-playlist>
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.
26 <div i18n
class=
"col-md-12 alert alert-warning" *
ngIf=
"isVideoToTranscode()">
27 The video is being transcoded, it may not work properly.
30 <div i18n
class=
"col-md-12 alert alert-info" *
ngIf=
"hasVideoScheduledPublication()">
31 This video will be published on {{ video.scheduledUpdate.updateAt | date: 'full' }}.
34 <div i18n
class=
"col-md-12 alert alert-info" *
ngIf=
"isWaitingForLive()">
35 This live has not started yet.
38 <div i18n
class=
"col-md-12 alert alert-info" *
ngIf=
"isLiveEnded()">
42 <div class=
"col-md-12 alert alert-danger" *
ngIf=
"video?.blacklisted">
43 <div class=
"blocked-label" i18n
>This video is blocked.
</div>
44 {{ video.blockedReason }}
48 <!-- Video information -->
49 <div *
ngIf=
"video" class=
"margin-content video-bottom">
50 <div class=
"video-info">
51 <div class=
"video-info-first-row">
53 <div class=
"d-block d-md-none"> <!-- only shown on medium devices, has its counterpart for larger viewports below -->
54 <h1 class=
"video-info-name">{{ video.name }}
</h1>
56 <div class=
"video-info-date-views">
57 <ng-container i18n
>Published
<my-date-toggle [date]=
"video.publishedAt"></my-date-toggle></ng-container>
59 <my-video-views-counter [video]=
"video"></my-video-views-counter>
63 <div class=
"d-flex justify-content-between flex-direction-column">
64 <div class=
"d-none d-md-block">
65 <h1 class=
"video-info-name">{{ video.name }}
</h1>
68 <div class=
"video-info-first-row-bottom">
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>
72 <my-video-views-counter [video]=
"video"></my-video-views-counter>
75 <div class=
"video-actions-rates">
76 <ng-template #ratePopoverText
>
77 <span [innerHTML]=
"getRatePopoverText()"></span>
80 <div class=
"video-actions fullWidth justify-content-end">
82 [ngbPopover]=
"getRatePopoverText() && ratePopoverText" [ngClass]=
"{ 'activated': userRating === 'like' }" (click)=
"setLike()" (keyup.enter)=
"setLike()"
83 class=
"action-button action-button-like" [attr.aria-pressed]=
"userRating === 'like'" [attr.aria-label]=
"tooltipLike"
84 [ngbTooltip]=
"tooltipLike"
85 placement=
"bottom auto"
87 <my-global-icon iconName=
"like"></my-global-icon>
88 <span *
ngIf=
"video.likes" class=
"count">{{ video.likes }}
</span>
92 [ngbPopover]=
"getRatePopoverText() && ratePopoverText" [ngClass]=
"{ 'activated': userRating === 'dislike' }" (click)=
"setDislike()" (keyup.enter)=
"setDislike()"
93 class=
"action-button action-button-dislike" [attr.aria-pressed]=
"userRating === 'dislike'" [attr.aria-label]=
"tooltipDislike"
94 [ngbTooltip]=
"tooltipDislike"
95 placement=
"bottom auto"
97 <my-global-icon iconName=
"dislike"></my-global-icon>
98 <span *
ngIf=
"video.dislikes" class=
"count">{{ video.dislikes }}
</span>
101 <button *
ngIf=
"video.support" (click)=
"showSupportModal()" (keyup.enter)=
"showSupportModal()" class=
"action-button action-button-support" [attr.aria-label]=
"tooltipSupport"
102 [ngbTooltip]=
"tooltipSupport"
103 placement=
"bottom auto"
105 <my-global-icon iconName=
"support" aria-hidden=
"true"></my-global-icon>
106 <span class=
"icon-text" i18n
>SUPPORT
</span>
109 <button (click)=
"showShareModal()" (keyup.enter)=
"showShareModal()" class=
"action-button">
110 <my-global-icon iconName=
"share" aria-hidden=
"true"></my-global-icon>
111 <span class=
"icon-text" i18n
>SHARE
</span>
115 class=
"action-dropdown" ngbDropdown
placement=
"top" role=
"button" autoClose=
"outside"
116 *
ngIf=
"isUserLoggedIn()" (openChange)=
"addContent.openChange($event)"
117 [ngbTooltip]=
"tooltipSaveToPlaylist"
118 placement=
"bottom auto"
120 <button class=
"action-button action-button-save" ngbDropdownToggle
>
121 <my-global-icon iconName=
"playlist-add" aria-hidden=
"true"></my-global-icon>
122 <span class=
"icon-text" i18n
>SAVE
</span>
125 <div ngbDropdownMenu
>
126 <my-video-add-to-playlist #addContent [video]=
"video"></my-video-add-to-playlist>
130 <ng-container *
ngIf=
"!isUserLoggedIn() && !isLive()">
132 *
ngIf=
"isVideoDownloadable()" class=
"action-button action-button-save"
133 (click)=
"showDownloadModal()" (keydown.enter)=
"showDownloadModal()"
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>
139 <my-video-download #videoDownloadModal
></my-video-download>
142 <ng-container *
ngIf=
"isUserLoggedIn()">
143 <my-video-actions-dropdown
144 placement=
"bottom auto" buttonDirection=
"horizontal" [buttonStyled]=
"true" [video]=
"video" [videoCaptions]=
"videoCaptions"
145 [displayOptions]=
"videoActionsOptions" (videoRemoved)=
"onVideoRemoved()" (modalOpened)=
"onModalOpened()"
146 ></my-video-actions-dropdown>
150 <div class=
"video-info-likes-dislikes-bar-outer-container">
152 class=
"video-info-likes-dislikes-bar-inner-container"
153 *
ngIf=
"video.likes !== 0 || video.dislikes !== 0"
154 [ngbTooltip]=
"likesBarTooltipText"
158 class=
"video-info-likes-dislikes-bar"
160 <div class=
"likes-bar" [ngClass]=
"{ 'liked': userRating !== 'none' }" [ngStyle]=
"{ 'width.%': video.likesPercent }"></div>
167 class=
"video-info-likes-dislikes-bar"
168 *
ngIf=
"video.likes !== 0 || video.dislikes !== 0"
169 [ngbTooltip]=
"likesBarTooltipText"
172 <div class=
"likes-bar" [ngStyle]=
"{ 'width.%': video.likesPercent }"></div>
178 <div class=
"pt-3 border-top video-info-channel d-flex">
179 <div class=
"video-info-channel-left d-flex">
180 <my-video-avatar-channel [video]=
"video" [genericChannel]=
"isChannelDisplayNameGeneric()"></my-video-avatar-channel>
182 <div class=
"video-info-channel-left-links ml-1">
183 <ng-container *
ngIf=
"!isChannelDisplayNameGeneric()">
184 <a [routerLink]=
"[ '/video-channels', video.byVideoChannel ]" i18n-title
title=
"Channel page">
185 {{ video.channel.displayName }}
187 <a [routerLink]=
"[ '/accounts', video.byAccount ]" i18n-title
title=
"Account page">
188 <span i18n
>By {{ video.byAccount }}
</span>
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>
200 <my-subscribe-button #subscribeButton [videoChannels]=
"[video.channel]" size=
"small"></my-subscribe-button>
206 <div class=
"video-info-description">
208 class=
"video-info-description-html"
209 [innerHTML]=
"videoHTMLDescription"
210 (timestampClicked)=
"handleTimestampClicked($event)"
211 timestampRouteTransformer
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>
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>
226 <div class=
"video-attributes mb-3">
227 <div class=
"video-attribute">
228 <span i18n
class=
"video-attribute-label">Privacy
</span>
229 <span class=
"video-attribute-value">{{ video.privacy.label }}
</span>
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>
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>
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>
246 *
ngIf=
"video.category.id" class=
"video-attribute-value"
247 [routerLink]=
"[ '/search' ]" [queryParams]=
"{ categoryOneOf: [ video.category.id ] }"
248 >{{ video.category.label }}
</a>
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>
255 *
ngIf=
"video.licence.id" class=
"video-attribute-value"
256 [routerLink]=
"[ '/search' ]" [queryParams]=
"{ licenceOneOf: [ video.licence.id ] }"
257 >{{ video.licence.label }}
</a>
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>
264 *
ngIf=
"video.language.id" class=
"video-attribute-value"
265 [routerLink]=
"[ '/search' ]" [queryParams]=
"{ languageOneOf: [ video.language.id ] }"
266 >{{ video.language.label }}
</a>
269 <div class=
"video-attribute video-attribute-tags">
270 <span i18n
class=
"video-attribute-label">Tags
</span>
272 *
ngFor=
"let tag of getVideoTags()"
273 class=
"video-attribute-value" [routerLink]=
"[ '/search' ]" [queryParams]=
"{ tagsOneOf: [ tag ] }"
277 <div class=
"video-attribute" *
ngIf=
"!video.isLive">
278 <span i18n
class=
"video-attribute-label">Duration
</span>
279 <span class=
"video-attribute-value">{{ video.duration | myDurationFormatter }}
</span>
287 (timestampClicked)=
"handleTimestampClicked($event)"
288 ></my-video-comments>
291 <my-recommended-videos
292 [inputRecommendation]=
"{ uuid: video.uuid, tags: video.tags }"
293 [playlist]=
"playlist"
294 (gotRecommendations)=
"onRecommendations($event)"
295 ></my-recommended-videos>
298 <div class=
"row privacy-concerns" *
ngIf=
"hasAlreadyAcceptedPrivacyConcern === false">
299 <div class=
"privacy-concerns-text">
301 <strong i18n
>Friendly Reminder:
</strong>
303 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.
306 <a i18n i18n-title
title=
"Get more information" target=
"_blank" rel=
"noopener noreferrer" href=
"/about/peertube#privacy">More information
</a>
309 <div i18n
class=
"privacy-concerns-button privacy-concerns-okay" (click)=
"acceptedPrivacyConcern()">
315 <ng-container *
ngIf=
"video !== null">
316 <my-video-support #videoSupportModal [video]=
"video"></my-video-support>
317 <my-video-share #videoShareModal [video]=
"video" [videoCaptions]=
"videoCaptions" [playlist]=
"playlist"></my-video-share>