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>
20 <my-plugin-placeholder pluginId=
"player-next"></my-plugin-placeholder>
24 <div i18n
class=
"col-md-12 alert alert-warning" *
ngIf=
"isVideoToImport()">
25 The video is being imported, it will be available when the import is finished.
28 <div i18n
class=
"col-md-12 alert alert-warning" *
ngIf=
"isVideoToTranscode()">
29 The video is being transcoded, it may not work properly.
32 <div i18n
class=
"col-md-12 alert alert-info" *
ngIf=
"hasVideoScheduledPublication()">
33 This video will be published on {{ video.scheduledUpdate.updateAt | date: 'full' }}.
36 <div i18n
class=
"col-md-12 alert alert-info" *
ngIf=
"isWaitingForLive()">
37 This live has not started yet.
40 <div i18n
class=
"col-md-12 alert alert-info" *
ngIf=
"isLiveEnded()">
44 <div class=
"col-md-12 alert alert-danger" *
ngIf=
"video?.blacklisted">
45 <div class=
"blocked-label" i18n
>This video is blocked.
</div>
46 {{ video.blockedReason }}
50 <!-- Video information -->
51 <div *
ngIf=
"video" class=
"margin-content video-bottom">
52 <div class=
"video-info">
53 <div class=
"video-info-first-row">
55 <div class=
"d-block d-md-none"> <!-- only shown on medium devices, has its counterpart for larger viewports below -->
56 <h1 class=
"video-info-name">{{ video.name }}
</h1>
58 <div class=
"video-info-date-views">
59 <ng-container i18n
>Published
<my-date-toggle [date]=
"video.publishedAt"></my-date-toggle></ng-container>
61 <my-video-views-counter [video]=
"video"></my-video-views-counter>
65 <div class=
"d-flex justify-content-between flex-direction-column">
66 <div class=
"d-none d-md-block">
67 <h1 class=
"video-info-name">{{ video.name }}
</h1>
70 <div class=
"video-info-first-row-bottom">
71 <div class=
"d-none d-md-block video-info-date-views">
72 <ng-container i18n
>Published
<my-date-toggle [date]=
"video.publishedAt"></my-date-toggle></ng-container>
74 <my-video-views-counter [video]=
"video"></my-video-views-counter>
77 <div class=
"video-actions-rates">
78 <ng-template #ratePopoverText
>
79 <span [innerHTML]=
"getRatePopoverText()"></span>
82 <div class=
"video-actions fullWidth justify-content-end">
84 [ngbPopover]=
"getRatePopoverText() && ratePopoverText" [ngClass]=
"{ 'activated': userRating === 'like' }" (click)=
"setLike()" (keyup.enter)=
"setLike()"
85 class=
"action-button action-button-like" [attr.aria-pressed]=
"userRating === 'like'" [attr.aria-label]=
"tooltipLike"
86 [ngbTooltip]=
"tooltipLike"
87 placement=
"bottom auto"
89 <my-global-icon iconName=
"like"></my-global-icon>
90 <span *
ngIf=
"video.likes" class=
"count">{{ video.likes }}
</span>
94 [ngbPopover]=
"getRatePopoverText() && ratePopoverText" [ngClass]=
"{ 'activated': userRating === 'dislike' }" (click)=
"setDislike()" (keyup.enter)=
"setDislike()"
95 class=
"action-button action-button-dislike" [attr.aria-pressed]=
"userRating === 'dislike'" [attr.aria-label]=
"tooltipDislike"
96 [ngbTooltip]=
"tooltipDislike"
97 placement=
"bottom auto"
99 <my-global-icon iconName=
"dislike"></my-global-icon>
100 <span *
ngIf=
"video.dislikes" class=
"count">{{ video.dislikes }}
</span>
103 <button *
ngIf=
"video.support" (click)=
"showSupportModal()" (keyup.enter)=
"showSupportModal()" class=
"action-button action-button-support" [attr.aria-label]=
"tooltipSupport"
104 [ngbTooltip]=
"tooltipSupport"
105 placement=
"bottom auto"
107 <my-global-icon iconName=
"support" aria-hidden=
"true"></my-global-icon>
108 <span class=
"icon-text" i18n
>SUPPORT
</span>
111 <button (click)=
"showShareModal()" (keyup.enter)=
"showShareModal()" class=
"action-button">
112 <my-global-icon iconName=
"share" aria-hidden=
"true"></my-global-icon>
113 <span class=
"icon-text" i18n
>SHARE
</span>
117 class=
"action-dropdown" ngbDropdown
placement=
"top" role=
"button" autoClose=
"outside"
118 *
ngIf=
"isUserLoggedIn()" (openChange)=
"addContent.openChange($event)"
119 [ngbTooltip]=
"tooltipSaveToPlaylist"
120 placement=
"bottom auto"
122 <button class=
"action-button action-button-save" ngbDropdownToggle
>
123 <my-global-icon iconName=
"playlist-add" aria-hidden=
"true"></my-global-icon>
124 <span class=
"icon-text" i18n
>SAVE
</span>
127 <div ngbDropdownMenu
>
128 <my-video-add-to-playlist #addContent [video]=
"video"></my-video-add-to-playlist>
132 <ng-container *
ngIf=
"!isUserLoggedIn() && !isLive()">
134 *
ngIf=
"isVideoDownloadable()" class=
"action-button action-button-save"
135 (click)=
"showDownloadModal()" (keydown.enter)=
"showDownloadModal()"
137 <my-global-icon iconName=
"download" aria-hidden=
"true"></my-global-icon>
138 <span class=
"icon-text d-none d-sm-inline" i18n
>DOWNLOAD
</span>
141 <my-video-download #videoDownloadModal
></my-video-download>
144 <ng-container *
ngIf=
"isUserLoggedIn()">
145 <my-video-actions-dropdown
146 placement=
"bottom auto" buttonDirection=
"horizontal" [buttonStyled]=
"true" [video]=
"video" [videoCaptions]=
"videoCaptions"
147 [displayOptions]=
"videoActionsOptions" (videoRemoved)=
"onVideoRemoved()"
148 ></my-video-actions-dropdown>
152 <div class=
"video-info-likes-dislikes-bar-outer-container">
154 class=
"video-info-likes-dislikes-bar-inner-container"
155 *
ngIf=
"video.likes !== 0 || video.dislikes !== 0"
156 [ngbTooltip]=
"likesBarTooltipText"
160 class=
"video-info-likes-dislikes-bar"
162 <div class=
"likes-bar" [ngClass]=
"{ 'liked': userRating !== 'none' }" [ngStyle]=
"{ 'width.%': video.likesPercent }"></div>
169 class=
"video-info-likes-dislikes-bar"
170 *
ngIf=
"video.likes !== 0 || video.dislikes !== 0"
171 [ngbTooltip]=
"likesBarTooltipText"
174 <div class=
"likes-bar" [ngStyle]=
"{ 'width.%': video.likesPercent }"></div>
180 <div class=
"pt-3 border-top video-info-channel d-flex">
181 <div class=
"video-info-channel-left d-flex">
182 <my-video-avatar-channel [video]=
"video" [genericChannel]=
"isChannelDisplayNameGeneric()"></my-video-avatar-channel>
184 <div class=
"video-info-channel-left-links ml-1">
185 <ng-container *
ngIf=
"!isChannelDisplayNameGeneric()">
186 <a [routerLink]=
"[ '/video-channels', video.byVideoChannel ]" i18n-title
title=
"Channel page">
187 {{ video.channel.displayName }}
189 <a [routerLink]=
"[ '/accounts', video.byAccount ]" i18n-title
title=
"Account page">
190 <span i18n
>By {{ video.byAccount }}
</span>
194 <ng-container *
ngIf=
"isChannelDisplayNameGeneric()">
195 <a [routerLink]=
"[ '/accounts', video.byAccount ]" class=
"single-link" i18n-title
title=
"Account page">
196 <span i18n
>{{ video.byAccount }}
</span>
202 <my-subscribe-button #subscribeButton [videoChannels]=
"[video.channel]" size=
"small"></my-subscribe-button>
208 <div class=
"video-info-description">
210 class=
"video-info-description-html"
211 [innerHTML]=
"videoHTMLDescription"
212 (timestampClicked)=
"handleTimestampClicked($event)"
213 timestampRouteTransformer
216 <div class=
"video-info-description-more" *
ngIf=
"completeDescriptionShown === false && video.description?.length >= 250" (click)=
"showMoreDescription()">
217 <ng-container i18n
>Show more
</ng-container>
218 <span *
ngIf=
"descriptionLoading === false" class=
"glyphicon glyphicon-menu-down"></span>
219 <my-small-loader class=
"description-loading" [loading]=
"descriptionLoading"></my-small-loader>
222 <div *
ngIf=
"completeDescriptionShown === true" (click)=
"showLessDescription()" class=
"video-info-description-more">
223 <ng-container i18n
>Show less
</ng-container>
224 <span *
ngIf=
"descriptionLoading === false" class=
"glyphicon glyphicon-menu-up"></span>
228 <div class=
"video-attributes mb-3">
229 <div class=
"video-attribute">
230 <span i18n
class=
"video-attribute-label">Privacy
</span>
231 <span class=
"video-attribute-value">{{ video.privacy.label }}
</span>
234 <div *
ngIf=
"video.isLocal === false" class=
"video-attribute">
235 <span i18n
class=
"video-attribute-label">Origin
</span>
236 <a class=
"video-attribute-value" target=
"_blank" rel=
"noopener noreferrer" [href]=
"getVideoUrl()">{{ video.originInstanceHost }}
</a>
239 <div *
ngIf=
"!!video.originallyPublishedAt" class=
"video-attribute">
240 <span i18n
class=
"video-attribute-label">Originally published
</span>
241 <span class=
"video-attribute-value">{{ video.originallyPublishedAt | date: 'dd MMMM yyyy' }}
</span>
244 <div class=
"video-attribute">
245 <span i18n
class=
"video-attribute-label">Category
</span>
246 <span *
ngIf=
"!video.category.id" class=
"video-attribute-value">{{ video.category.label }}
</span>
248 *
ngIf=
"video.category.id" class=
"video-attribute-value"
249 [routerLink]=
"[ '/search' ]" [queryParams]=
"{ categoryOneOf: [ video.category.id ] }"
250 >{{ video.category.label }}
</a>
253 <div class=
"video-attribute">
254 <span i18n
class=
"video-attribute-label">Licence
</span>
255 <span *
ngIf=
"!video.licence.id" class=
"video-attribute-value">{{ video.licence.label }}
</span>
257 *
ngIf=
"video.licence.id" class=
"video-attribute-value"
258 [routerLink]=
"[ '/search' ]" [queryParams]=
"{ licenceOneOf: [ video.licence.id ] }"
259 >{{ video.licence.label }}
</a>
262 <div class=
"video-attribute">
263 <span i18n
class=
"video-attribute-label">Language
</span>
264 <span *
ngIf=
"!video.language.id" class=
"video-attribute-value">{{ video.language.label }}
</span>
266 *
ngIf=
"video.language.id" class=
"video-attribute-value"
267 [routerLink]=
"[ '/search' ]" [queryParams]=
"{ languageOneOf: [ video.language.id ] }"
268 >{{ video.language.label }}
</a>
271 <div class=
"video-attribute video-attribute-tags">
272 <span i18n
class=
"video-attribute-label">Tags
</span>
274 *
ngFor=
"let tag of getVideoTags()"
275 class=
"video-attribute-value" [routerLink]=
"[ '/search' ]" [queryParams]=
"{ tagsOneOf: [ tag ] }"
279 <div class=
"video-attribute" *
ngIf=
"!video.isLive">
280 <span i18n
class=
"video-attribute-label">Duration
</span>
281 <span class=
"video-attribute-value">{{ video.duration | myDurationFormatter }}
</span>
289 (timestampClicked)=
"handleTimestampClicked($event)"
290 ></my-video-comments>
293 <my-recommended-videos
294 [displayAsRow]=
"displayOtherVideosAsRow()"
295 [inputRecommendation]=
"{ uuid: video.uuid, tags: video.tags }"
296 [playlist]=
"playlist"
297 (gotRecommendations)=
"onRecommendations($event)"
298 ></my-recommended-videos>
301 <div class=
"row privacy-concerns" *
ngIf=
"hasAlreadyAcceptedPrivacyConcern === false">
302 <div class=
"privacy-concerns-text">
304 <strong i18n
>Friendly Reminder:
</strong>
306 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.
309 <a i18n i18n-title
title=
"Get more information" target=
"_blank" rel=
"noopener noreferrer" href=
"/about/peertube#privacy">More information
</a>
312 <div i18n
class=
"privacy-concerns-button privacy-concerns-okay" (click)=
"acceptedPrivacyConcern()">
318 <ng-container *
ngIf=
"video !== null">
319 <my-support-modal #supportModal [video]=
"video"></my-support-modal>
320 <my-video-share #videoShareModal [video]=
"video" [videoCaptions]=
"videoCaptions" [playlist]=
"playlist"></my-video-share>
323 <my-player-styles></my-player-styles>