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 [video]=
"video" [playlist]=
"playlist" class=
"playlist"
15 ></my-video-watch-playlist>
19 <div i18n
class=
"col-md-12 alert alert-warning" *
ngIf=
"isVideoToImport()">
20 The video is being imported, it will be available when the import is finished.
23 <div i18n
class=
"col-md-12 alert alert-warning" *
ngIf=
"isVideoToTranscode()">
24 The video is being transcoded, it may not work properly.
27 <div i18n
class=
"col-md-12 alert alert-info" *
ngIf=
"hasVideoScheduledPublication()">
28 This video will be published on {{ video.scheduledUpdate.updateAt | date: 'full' }}.
31 <div class=
"col-md-12 alert alert-danger" *
ngIf=
"video?.blacklisted">
32 <div class=
"blocked-label" i18n
>This video is blocked.
</div>
33 {{ video.blockedReason }}
37 <!-- Video information -->
38 <div *
ngIf=
"video" class=
"margin-content video-bottom">
39 <div class=
"video-info">
40 <div class=
"video-info-first-row">
42 <div class=
"d-block d-md-none"> <!-- only shown on medium devices, has its counterpart for larger viewports below -->
43 <h1 class=
"video-info-name">{{ video.name }}
</h1>
45 <div i18n
class=
"video-info-date-views">
46 Published
<my-date-toggle [date]=
"video.publishedAt"></my-date-toggle> <span class=
"views"> • {{ video.views | myNumberFormatter }} views
</span>
50 <div class=
"d-flex justify-content-between flex-direction-column">
51 <div class=
"d-none d-md-block">
52 <h1 class=
"video-info-name">{{ video.name }}
</h1>
55 <div class=
"video-info-first-row-bottom">
56 <div i18n
class=
"d-none d-md-block video-info-date-views">
57 Published
<my-date-toggle [date]=
"video.publishedAt"></my-date-toggle> <span class=
"views"> • {{ video.views | myNumberFormatter }} views
</span>
60 <div class=
"video-actions-rates">
61 <div class=
"video-actions fullWidth justify-content-end">
63 [ngbPopover]=
"getRatePopoverText()" [ngClass]=
"{ 'activated': userRating === 'like' }" (click)=
"setLike()" (keyup.enter)=
"setLike()"
64 class=
"action-button action-button-like" [attr.aria-pressed]=
"userRating === 'like'" [attr.aria-label]=
"tooltipLike"
65 [ngbTooltip]=
"tooltipLike"
66 placement=
"bottom auto"
68 <my-global-icon iconName=
"like"></my-global-icon>
69 <span *
ngIf=
"video.likes" class=
"count">{{ video.likes }}
</span>
73 [ngbPopover]=
"getRatePopoverText()" [ngClass]=
"{ 'activated': userRating === 'dislike' }" (click)=
"setDislike()" (keyup.enter)=
"setDislike()"
74 class=
"action-button action-button-dislike" [attr.aria-pressed]=
"userRating === 'dislike'" [attr.aria-label]=
"tooltipDislike"
75 [ngbTooltip]=
"tooltipDislike"
76 placement=
"bottom auto"
78 <my-global-icon iconName=
"dislike"></my-global-icon>
79 <span *
ngIf=
"video.dislikes" class=
"count">{{ video.dislikes }}
</span>
82 <button *
ngIf=
"video.support" (click)=
"showSupportModal()" (keyup.enter)=
"showSupportModal()" class=
"action-button action-button-support" [attr.aria-label]=
"tooltipSupport"
83 [ngbTooltip]=
"tooltipSupport"
84 placement=
"bottom auto"
86 <my-global-icon iconName=
"support" aria-hidden=
"true"></my-global-icon>
87 <span class=
"icon-text" i18n
>SUPPORT
</span>
90 <button (click)=
"showShareModal()" (keyup.enter)=
"showShareModal()" class=
"action-button">
91 <my-global-icon iconName=
"share" aria-hidden=
"true"></my-global-icon>
92 <span class=
"icon-text" i18n
>SHARE
</span>
96 class=
"action-dropdown" ngbDropdown
placement=
"top" role=
"button" autoClose=
"outside"
97 *
ngIf=
"isUserLoggedIn()" (openChange)=
"addContent.openChange($event)"
98 [ngbTooltip]=
"tooltipSaveToPlaylist"
99 placement=
"bottom auto"
101 <button class=
"action-button action-button-save" ngbDropdownToggle
>
102 <my-global-icon iconName=
"playlist-add" aria-hidden=
"true"></my-global-icon>
103 <span class=
"icon-text" i18n
>SAVE
</span>
106 <div ngbDropdownMenu
>
107 <my-video-add-to-playlist #addContent [video]=
"video"></my-video-add-to-playlist>
111 <ng-container *
ngIf=
"!isUserLoggedIn()">
113 *
ngIf=
"isVideoDownloadable()" class=
"action-button action-button-save"
114 (click)=
"showDownloadModal()" (keydown.enter)=
"showDownloadModal()"
116 <my-global-icon iconName=
"download" aria-hidden=
"true"></my-global-icon>
117 <span class=
"icon-text d-none d-sm-inline" i18n
>DOWNLOAD
</span>
120 <my-video-download #videoDownloadModal
></my-video-download>
123 <ng-container *
ngIf=
"isUserLoggedIn()">
124 <my-video-actions-dropdown
125 placement=
"bottom auto" buttonDirection=
"horizontal" [buttonStyled]=
"true" [video]=
"video" [videoCaptions]=
"videoCaptions"
126 (videoRemoved)=
"onVideoRemoved()" (modalOpened)=
"onModalOpened()"
127 ></my-video-actions-dropdown>
131 <div class=
"video-info-likes-dislikes-bar-outer-container">
133 class=
"video-info-likes-dislikes-bar-inner-container"
134 *
ngIf=
"video.likes !== 0 || video.dislikes !== 0"
135 [ngbTooltip]=
"likesBarTooltipText"
139 class=
"video-info-likes-dislikes-bar"
141 <div class=
"likes-bar" [ngClass]=
"{ 'liked': userRating !== 'none' }" [ngStyle]=
"{ 'width.%': video.likesPercent }"></div>
148 class=
"video-info-likes-dislikes-bar"
149 *
ngIf=
"video.likes !== 0 || video.dislikes !== 0"
150 [ngbTooltip]=
"likesBarTooltipText"
153 <div class=
"likes-bar" [ngStyle]=
"{ 'width.%': video.likesPercent }"></div>
159 <div class=
"pt-3 border-top video-info-channel d-flex">
160 <div class=
"video-info-channel-left d-flex">
161 <avatar-channel [video]=
"video" [genericChannel]=
"isChannelDisplayNameGeneric()"></avatar-channel>
163 <div class=
"video-info-channel-left-links ml-1">
164 <ng-container *
ngIf=
"!isChannelDisplayNameGeneric()">
165 <a [routerLink]=
"[ '/video-channels', video.byVideoChannel ]" i18n-title
title=
"Channel page">
166 {{ video.channel.displayName }}
168 <a [routerLink]=
"[ '/accounts', video.byAccount ]" i18n-title
title=
"Account page">
169 <span i18n
>By {{ video.byAccount }}
</span>
173 <ng-container *
ngIf=
"isChannelDisplayNameGeneric()">
174 <a [routerLink]=
"[ '/accounts', video.byAccount ]" class=
"single-link" i18n-title
title=
"Account page">
175 <span i18n
>{{ video.byAccount }}
</span>
181 <my-subscribe-button #subscribeButton [videoChannels]=
"[video.channel]" size=
"small"></my-subscribe-button>
187 <div class=
"video-info-description">
189 class=
"video-info-description-html"
190 [innerHTML]=
"videoHTMLDescription"
191 (timestampClicked)=
"handleTimestampClicked($event)"
192 timestampRouteTransformer
195 <div class=
"video-info-description-more" *
ngIf=
"completeDescriptionShown === false && video.description?.length >= 250" (click)=
"showMoreDescription()">
196 <ng-container i18n
>Show more
</ng-container>
197 <span *
ngIf=
"descriptionLoading === false" class=
"glyphicon glyphicon-menu-down"></span>
198 <my-small-loader class=
"description-loading" [loading]=
"descriptionLoading"></my-small-loader>
201 <div *
ngIf=
"completeDescriptionShown === true" (click)=
"showLessDescription()" class=
"video-info-description-more">
202 <ng-container i18n
>Show less
</ng-container>
203 <span *
ngIf=
"descriptionLoading === false" class=
"glyphicon glyphicon-menu-up"></span>
207 <div class=
"video-attributes mb-3">
208 <div class=
"video-attribute">
209 <span i18n
class=
"video-attribute-label">Privacy
</span>
210 <span class=
"video-attribute-value">{{ video.privacy.label }}
</span>
213 <div *
ngIf=
"video.isLocal === false" class=
"video-attribute">
214 <span i18n
class=
"video-attribute-label">Origin instance
</span>
215 <a class=
"video-attribute-value" target=
"_blank" rel=
"noopener noreferrer" [href]=
"video.originInstanceUrl">{{ video.originInstanceHost }}
</a>
218 <div *
ngIf=
"!!video.originallyPublishedAt" class=
"video-attribute">
219 <span i18n
class=
"video-attribute-label">Originally published
</span>
220 <span class=
"video-attribute-value">{{ video.originallyPublishedAt | date: 'dd MMMM yyyy' }}
</span>
223 <div class=
"video-attribute">
224 <span i18n
class=
"video-attribute-label">Category
</span>
225 <span *
ngIf=
"!video.category.id" class=
"video-attribute-value">{{ video.category.label }}
</span>
227 *
ngIf=
"video.category.id" class=
"video-attribute-value"
228 [routerLink]=
"[ '/search' ]" [queryParams]=
"{ categoryOneOf: [ video.category.id ] }"
229 >{{ video.category.label }}
</a>
232 <div class=
"video-attribute">
233 <span i18n
class=
"video-attribute-label">Licence
</span>
234 <span *
ngIf=
"!video.licence.id" class=
"video-attribute-value">{{ video.licence.label }}
</span>
236 *
ngIf=
"video.licence.id" class=
"video-attribute-value"
237 [routerLink]=
"[ '/search' ]" [queryParams]=
"{ licenceOneOf: [ video.licence.id ] }"
238 >{{ video.licence.label }}
</a>
241 <div class=
"video-attribute">
242 <span i18n
class=
"video-attribute-label">Language
</span>
243 <span *
ngIf=
"!video.language.id" class=
"video-attribute-value">{{ video.language.label }}
</span>
245 *
ngIf=
"video.language.id" class=
"video-attribute-value"
246 [routerLink]=
"[ '/search' ]" [queryParams]=
"{ languageOneOf: [ video.language.id ] }"
247 >{{ video.language.label }}
</a>
250 <div class=
"video-attribute video-attribute-tags">
251 <span i18n
class=
"video-attribute-label">Tags
</span>
253 *
ngFor=
"let tag of getVideoTags()"
254 class=
"video-attribute-value" [routerLink]=
"[ '/search' ]" [queryParams]=
"{ tagsOneOf: [ tag ] }"
258 <div class=
"video-attribute">
259 <span i18n
class=
"video-attribute-label">Duration
</span>
260 <span class=
"video-attribute-value">{{ video.duration | myVideoDurationFormatter }}
</span>
268 (timestampClicked)=
"handleTimestampClicked($event)"
269 ></my-video-comments>
272 <my-recommended-videos
273 [inputRecommendation]=
"{ uuid: video.uuid, tags: video.tags }"
274 [playlist]=
"playlist"
275 (gotRecommendations)=
"onRecommendations($event)"
276 ></my-recommended-videos>
279 <div class=
"row privacy-concerns" *
ngIf=
"hasAlreadyAcceptedPrivacyConcern === false">
280 <div class=
"privacy-concerns-text">
282 <strong i18n
>Friendly Reminder:
</strong>
284 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.
287 <a i18n i18n-title
title=
"Get more information" target=
"_blank" rel=
"noopener noreferrer" href=
"/about/peertube#privacy">More information
</a>
290 <div i18n
class=
"privacy-concerns-button privacy-concerns-okay" (click)=
"acceptedPrivacyConcern()">
296 <ng-container *
ngIf=
"video !== null">
297 <my-video-support #videoSupportModal [video]=
"video"></my-video-support>
298 <my-video-share #videoShareModal [video]=
"video" [videoCaptions]=
"videoCaptions" [playlist]=
"playlist"></my-video-share>