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"></div>
12 <my-video-watch-playlist
14 [playlist]=
"playlist" class=
"playlist"
15 (videoFound)=
"onPlaylistVideoFound($event)"
16 ></my-video-watch-playlist>
20 <div i18n
class=
"col-md-12 alert alert-warning" *
ngIf=
"isVideoToImport()">
21 The video is being imported, it will be available when the import is finished.
24 <div i18n
class=
"col-md-12 alert alert-warning" *
ngIf=
"isVideoToTranscode()">
25 The video is being transcoded, it may not work properly.
28 <div i18n
class=
"col-md-12 alert alert-info" *
ngIf=
"hasVideoScheduledPublication()">
29 This video will be published on {{ video.scheduledUpdate.updateAt | date: 'full' }}.
32 <div class=
"col-md-12 alert alert-danger" *
ngIf=
"video?.blacklisted">
33 <div class=
"blocked-label" i18n
>This video is blocked.
</div>
34 {{ video.blockedReason }}
38 <!-- Video information -->
39 <div *
ngIf=
"video" class=
"margin-content video-bottom">
40 <div class=
"video-info">
41 <div class=
"video-info-first-row">
43 <div class=
"d-block d-md-none"> <!-- only shown on medium devices, has its counterpart for larger viewports below -->
44 <h1 class=
"video-info-name">{{ video.name }}
</h1>
46 <div i18n
class=
"video-info-date-views">
47 Published
<my-date-toggle [date]=
"video.publishedAt"></my-date-toggle> <span class=
"views"> • {{ video.views | myNumberFormatter }} views
</span>
51 <div class=
"d-flex justify-content-between flex-direction-column">
52 <div class=
"d-none d-md-block">
53 <h1 class=
"video-info-name">{{ video.name }}
</h1>
56 <div class=
"video-info-first-row-bottom">
57 <div i18n
class=
"d-none d-md-block video-info-date-views">
58 Published
<my-date-toggle [date]=
"video.publishedAt"></my-date-toggle> <span class=
"views"> • {{ video.views | myNumberFormatter }} views
</span>
61 <div class=
"video-actions-rates">
62 <div class=
"video-actions fullWidth justify-content-end">
64 [ngbPopover]=
"getRatePopoverText()" [ngClass]=
"{ 'activated': userRating === 'like' }" (click)=
"setLike()" (keyup.enter)=
"setLike()"
65 class=
"action-button action-button-like" [attr.aria-pressed]=
"userRating === 'like'" [attr.aria-label]=
"tooltipLike"
66 [ngbTooltip]=
"tooltipLike"
67 placement=
"bottom auto"
69 <my-global-icon iconName=
"like"></my-global-icon>
70 <span *
ngIf=
"video.likes" class=
"count">{{ video.likes }}
</span>
74 [ngbPopover]=
"getRatePopoverText()" [ngClass]=
"{ 'activated': userRating === 'dislike' }" (click)=
"setDislike()" (keyup.enter)=
"setDislike()"
75 class=
"action-button action-button-dislike" [attr.aria-pressed]=
"userRating === 'dislike'" [attr.aria-label]=
"tooltipDislike"
76 [ngbTooltip]=
"tooltipDislike"
77 placement=
"bottom auto"
79 <my-global-icon iconName=
"dislike"></my-global-icon>
80 <span *
ngIf=
"video.dislikes" class=
"count">{{ video.dislikes }}
</span>
83 <button *
ngIf=
"video.support" (click)=
"showSupportModal()" (keyup.enter)=
"showSupportModal()" class=
"action-button action-button-support" [attr.aria-label]=
"tooltipSupport"
84 [ngbTooltip]=
"tooltipSupport"
85 placement=
"bottom auto"
87 <my-global-icon iconName=
"support" aria-hidden=
"true"></my-global-icon>
88 <span class=
"icon-text" i18n
>SUPPORT
</span>
91 <button (click)=
"showShareModal()" (keyup.enter)=
"showShareModal()" class=
"action-button">
92 <my-global-icon iconName=
"share" aria-hidden=
"true"></my-global-icon>
93 <span class=
"icon-text" i18n
>SHARE
</span>
97 class=
"action-dropdown" ngbDropdown
placement=
"top" role=
"button" autoClose=
"outside"
98 *
ngIf=
"isUserLoggedIn()" (openChange)=
"addContent.openChange($event)"
99 [ngbTooltip]=
"tooltipSaveToPlaylist"
100 placement=
"bottom auto"
102 <button class=
"action-button action-button-save" ngbDropdownToggle
>
103 <my-global-icon iconName=
"playlist-add" aria-hidden=
"true"></my-global-icon>
104 <span class=
"icon-text" i18n
>SAVE
</span>
107 <div ngbDropdownMenu
>
108 <my-video-add-to-playlist #addContent [video]=
"video"></my-video-add-to-playlist>
112 <ng-container *
ngIf=
"!isUserLoggedIn()">
114 *
ngIf=
"isVideoDownloadable()" class=
"action-button action-button-save"
115 (click)=
"showDownloadModal()" (keydown.enter)=
"showDownloadModal()"
117 <my-global-icon iconName=
"download" aria-hidden=
"true"></my-global-icon>
118 <span class=
"icon-text d-none d-sm-inline" i18n
>DOWNLOAD
</span>
121 <my-video-download #videoDownloadModal
></my-video-download>
124 <ng-container *
ngIf=
"isUserLoggedIn()">
125 <my-video-actions-dropdown
126 placement=
"bottom auto" buttonDirection=
"horizontal" [buttonStyled]=
"true" [video]=
"video" [videoCaptions]=
"videoCaptions"
127 (videoRemoved)=
"onVideoRemoved()" (modalOpened)=
"onModalOpened()"
128 ></my-video-actions-dropdown>
132 <div class=
"video-info-likes-dislikes-bar-outer-container">
134 class=
"video-info-likes-dislikes-bar-inner-container"
135 *
ngIf=
"video.likes !== 0 || video.dislikes !== 0"
136 [ngbTooltip]=
"likesBarTooltipText"
140 class=
"video-info-likes-dislikes-bar"
142 <div class=
"likes-bar" [ngClass]=
"{ 'liked': userRating !== 'none' }" [ngStyle]=
"{ 'width.%': video.likesPercent }"></div>
149 class=
"video-info-likes-dislikes-bar"
150 *
ngIf=
"video.likes !== 0 || video.dislikes !== 0"
151 [ngbTooltip]=
"likesBarTooltipText"
154 <div class=
"likes-bar" [ngStyle]=
"{ 'width.%': video.likesPercent }"></div>
160 <div class=
"pt-3 border-top video-info-channel d-flex">
161 <div class=
"video-info-channel-left d-flex">
162 <avatar-channel [video]=
"video" [genericChannel]=
"isChannelDisplayNameGeneric()"></avatar-channel>
164 <div class=
"video-info-channel-left-links ml-1">
165 <ng-container *
ngIf=
"!isChannelDisplayNameGeneric()">
166 <a [routerLink]=
"[ '/video-channels', video.byVideoChannel ]" i18n-title
title=
"Channel page">
167 {{ video.channel.displayName }}
169 <a [routerLink]=
"[ '/accounts', video.byAccount ]" i18n-title
title=
"Account page">
170 <span i18n
>By {{ video.byAccount }}
</span>
174 <ng-container *
ngIf=
"isChannelDisplayNameGeneric()">
175 <a [routerLink]=
"[ '/accounts', video.byAccount ]" class=
"single-link" i18n-title
title=
"Account page">
176 <span i18n
>{{ video.byAccount }}
</span>
182 <my-subscribe-button #subscribeButton [videoChannels]=
"[video.channel]" size=
"small"></my-subscribe-button>
188 <div class=
"video-info-description">
190 class=
"video-info-description-html"
191 [innerHTML]=
"videoHTMLDescription"
192 (timestampClicked)=
"handleTimestampClicked($event)"
193 timestampRouteTransformer
196 <div class=
"video-info-description-more" *
ngIf=
"completeDescriptionShown === false && video.description?.length >= 250" (click)=
"showMoreDescription()">
197 <ng-container i18n
>Show more
</ng-container>
198 <span *
ngIf=
"descriptionLoading === false" class=
"glyphicon glyphicon-menu-down"></span>
199 <my-small-loader class=
"description-loading" [loading]=
"descriptionLoading"></my-small-loader>
202 <div *
ngIf=
"completeDescriptionShown === true" (click)=
"showLessDescription()" class=
"video-info-description-more">
203 <ng-container i18n
>Show less
</ng-container>
204 <span *
ngIf=
"descriptionLoading === false" class=
"glyphicon glyphicon-menu-up"></span>
208 <div class=
"video-attributes mb-3">
209 <div class=
"video-attribute">
210 <span i18n
class=
"video-attribute-label">Privacy
</span>
211 <span class=
"video-attribute-value">{{ video.privacy.label }}
</span>
214 <div *
ngIf=
"video.isLocal === false" class=
"video-attribute">
215 <span i18n
class=
"video-attribute-label">Origin instance
</span>
216 <a class=
"video-attribute-value" target=
"_blank" rel=
"noopener noreferrer" [href]=
"video.originInstanceUrl">{{ video.originInstanceHost }}
</a>
219 <div *
ngIf=
"!!video.originallyPublishedAt" class=
"video-attribute">
220 <span i18n
class=
"video-attribute-label">Originally published
</span>
221 <span class=
"video-attribute-value">{{ video.originallyPublishedAt | date: 'dd MMMM yyyy' }}
</span>
224 <div class=
"video-attribute">
225 <span i18n
class=
"video-attribute-label">Category
</span>
226 <span *
ngIf=
"!video.category.id" class=
"video-attribute-value">{{ video.category.label }}
</span>
228 *
ngIf=
"video.category.id" class=
"video-attribute-value"
229 [routerLink]=
"[ '/search' ]" [queryParams]=
"{ categoryOneOf: [ video.category.id ] }"
230 >{{ video.category.label }}
</a>
233 <div class=
"video-attribute">
234 <span i18n
class=
"video-attribute-label">Licence
</span>
235 <span *
ngIf=
"!video.licence.id" class=
"video-attribute-value">{{ video.licence.label }}
</span>
237 *
ngIf=
"video.licence.id" class=
"video-attribute-value"
238 [routerLink]=
"[ '/search' ]" [queryParams]=
"{ licenceOneOf: [ video.licence.id ] }"
239 >{{ video.licence.label }}
</a>
242 <div class=
"video-attribute">
243 <span i18n
class=
"video-attribute-label">Language
</span>
244 <span *
ngIf=
"!video.language.id" class=
"video-attribute-value">{{ video.language.label }}
</span>
246 *
ngIf=
"video.language.id" class=
"video-attribute-value"
247 [routerLink]=
"[ '/search' ]" [queryParams]=
"{ languageOneOf: [ video.language.id ] }"
248 >{{ video.language.label }}
</a>
251 <div class=
"video-attribute video-attribute-tags">
252 <span i18n
class=
"video-attribute-label">Tags
</span>
254 *
ngFor=
"let tag of getVideoTags()"
255 class=
"video-attribute-value" [routerLink]=
"[ '/search' ]" [queryParams]=
"{ tagsOneOf: [ tag ] }"
259 <div class=
"video-attribute">
260 <span i18n
class=
"video-attribute-label">Duration
</span>
261 <span class=
"video-attribute-value">{{ video.duration | myVideoDurationFormatter }}
</span>
269 (timestampClicked)=
"handleTimestampClicked($event)"
270 ></my-video-comments>
273 <my-recommended-videos
274 [inputRecommendation]=
"{ uuid: video.uuid, tags: video.tags }"
275 [playlist]=
"playlist"
276 (gotRecommendations)=
"onRecommendations($event)"
277 ></my-recommended-videos>
280 <div class=
"row privacy-concerns" *
ngIf=
"hasAlreadyAcceptedPrivacyConcern === false">
281 <div class=
"privacy-concerns-text">
283 <strong i18n
>Friendly Reminder:
</strong>
285 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.
288 <a i18n i18n-title
title=
"Get more information" target=
"_blank" rel=
"noopener noreferrer" href=
"/about/peertube#privacy">More information
</a>
291 <div i18n
class=
"privacy-concerns-button privacy-concerns-okay" (click)=
"acceptedPrivacyConcern()">
297 <ng-container *
ngIf=
"video !== null">
298 <my-video-support #videoSupportModal [video]=
"video"></my-video-support>
299 <my-video-share #videoShareModal [video]=
"video" [videoCaptions]=
"videoCaptions" [playlist]=
"playlist"></my-video-share>