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 class=
"placeholder-image" *
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 <div class=
"video-actions full-width justify-content-end">
80 [video]=
"video" [isUserLoggedIn]=
"isUserLoggedIn()"
81 (rateUpdated)=
"onRateUpdated($event)" (userRatingLoaded)=
"onRateUpdated($event)"
84 <button *
ngIf=
"video.support" (click)=
"showSupportModal()" (keyup.enter)=
"showSupportModal()" class=
"action-button action-button-support" [attr.aria-label]=
"tooltipSupport"
85 [ngbTooltip]=
"tooltipSupport"
86 placement=
"bottom auto"
88 <my-global-icon iconName=
"support" aria-hidden=
"true"></my-global-icon>
89 <span class=
"icon-text" i18n
>SUPPORT
</span>
92 <button (click)=
"showShareModal()" (keyup.enter)=
"showShareModal()" class=
"action-button">
93 <my-global-icon iconName=
"share" aria-hidden=
"true"></my-global-icon>
94 <span class=
"icon-text" i18n
>SHARE
</span>
98 class=
"action-dropdown" ngbDropdown
placement=
"top" role=
"button" autoClose=
"outside"
99 *
ngIf=
"isUserLoggedIn()" (openChange)=
"addContent.openChange($event)"
100 [ngbTooltip]=
"tooltipSaveToPlaylist"
101 placement=
"bottom auto"
103 <button class=
"action-button action-button-save" ngbDropdownToggle
>
104 <my-global-icon iconName=
"playlist-add" aria-hidden=
"true"></my-global-icon>
105 <span class=
"icon-text" i18n
>SAVE
</span>
108 <div ngbDropdownMenu
>
109 <my-video-add-to-playlist #addContent [video]=
"video"></my-video-add-to-playlist>
113 <ng-container *
ngIf=
"!isUserLoggedIn() && !isLive()">
115 *
ngIf=
"isVideoDownloadable()" class=
"action-button action-button-save"
116 (click)=
"showDownloadModal()" (keydown.enter)=
"showDownloadModal()"
118 <my-global-icon iconName=
"download" aria-hidden=
"true"></my-global-icon>
119 <span class=
"icon-text d-none d-sm-inline" i18n
>DOWNLOAD
</span>
122 <my-video-download #videoDownloadModal
></my-video-download>
125 <ng-container *
ngIf=
"isUserLoggedIn()">
126 <my-video-actions-dropdown
127 placement=
"bottom auto" buttonDirection=
"horizontal" [buttonStyled]=
"true" [video]=
"video" [videoCaptions]=
"videoCaptions"
128 [displayOptions]=
"videoActionsOptions" (videoRemoved)=
"onVideoRemoved()"
129 ></my-video-actions-dropdown>
133 <div class=
"video-info-likes-dislikes-bar-outer-container">
135 class=
"video-info-likes-dislikes-bar-inner-container"
136 *
ngIf=
"video.likes !== 0 || video.dislikes !== 0"
137 [ngbTooltip]=
"likesBarTooltipText"
141 class=
"video-info-likes-dislikes-bar"
143 <div class=
"likes-bar" [ngClass]=
"{ 'liked': userRating !== 'none' }" [ngStyle]=
"{ 'width.%': video.likesPercent }"></div>
150 class=
"video-info-likes-dislikes-bar"
151 *
ngIf=
"video.likes !== 0 || video.dislikes !== 0"
152 [ngbTooltip]=
"likesBarTooltipText"
155 <div class=
"likes-bar" [ngStyle]=
"{ 'width.%': video.likesPercent }"></div>
161 <div class=
"pt-3 border-top video-info-channel d-flex">
162 <div class=
"video-info-channel-left d-flex">
163 <my-video-avatar-channel [video]=
"video" [genericChannel]=
"isChannelDisplayNameGeneric()"></my-video-avatar-channel>
165 <div class=
"video-info-channel-left-links ml-1">
166 <ng-container *
ngIf=
"!isChannelDisplayNameGeneric()">
167 <a [routerLink]=
"[ '/c', video.byVideoChannel ]" i18n-title
title=
"Channel page">
168 {{ video.channel.displayName }}
170 <a [routerLink]=
"[ '/a', video.byAccount ]" i18n-title
title=
"Account page">
171 <span i18n
>By {{ video.byAccount }}
</span>
175 <ng-container *
ngIf=
"isChannelDisplayNameGeneric()">
176 <a [routerLink]=
"[ '/a', video.byAccount ]" class=
"single-link" i18n-title
title=
"Account page">
177 <span i18n
>{{ video.byAccount }}
</span>
183 <my-subscribe-button #subscribeButton [videoChannels]=
"[video.channel]" size=
"small"></my-subscribe-button>
189 <div class=
"video-info-description">
191 class=
"video-info-description-html"
192 [innerHTML]=
"videoHTMLDescription"
193 (timestampClicked)=
"handleTimestampClicked($event)"
194 timestampRouteTransformer
197 <div class=
"video-info-description-more" *
ngIf=
"completeDescriptionShown === false && video.description?.length >= 250" (click)=
"showMoreDescription()">
198 <ng-container i18n
>Show more
</ng-container>
199 <span *
ngIf=
"descriptionLoading === false" class=
"glyphicon glyphicon-menu-down"></span>
200 <my-small-loader class=
"description-loading" [loading]=
"descriptionLoading"></my-small-loader>
203 <div *
ngIf=
"completeDescriptionShown === true" (click)=
"showLessDescription()" class=
"video-info-description-more">
204 <ng-container i18n
>Show less
</ng-container>
205 <span *
ngIf=
"descriptionLoading === false" class=
"glyphicon glyphicon-menu-up"></span>
209 <div class=
"video-attributes mb-3">
210 <div class=
"video-attribute">
211 <span i18n
class=
"video-attribute-label">Privacy
</span>
212 <span class=
"video-attribute-value">{{ video.privacy.label }}
</span>
215 <div *
ngIf=
"video.isLocal === false" class=
"video-attribute">
216 <span i18n
class=
"video-attribute-label">Origin
</span>
217 <a class=
"video-attribute-value" target=
"_blank" rel=
"noopener noreferrer" [href]=
"getVideoUrl()">{{ video.originInstanceHost }}
</a>
220 <div *
ngIf=
"!!video.originallyPublishedAt" class=
"video-attribute">
221 <span i18n
class=
"video-attribute-label">Originally published
</span>
222 <span class=
"video-attribute-value">{{ video.originallyPublishedAt | date: 'dd MMMM yyyy' }}
</span>
225 <div class=
"video-attribute">
226 <span i18n
class=
"video-attribute-label">Category
</span>
227 <span *
ngIf=
"!video.category.id" class=
"video-attribute-value">{{ video.category.label }}
</span>
229 *
ngIf=
"video.category.id" class=
"video-attribute-value"
230 [routerLink]=
"[ '/search' ]" [queryParams]=
"{ categoryOneOf: [ video.category.id ] }"
231 >{{ video.category.label }}
</a>
234 <div class=
"video-attribute">
235 <span i18n
class=
"video-attribute-label">Licence
</span>
236 <span *
ngIf=
"!video.licence.id" class=
"video-attribute-value">{{ video.licence.label }}
</span>
238 *
ngIf=
"video.licence.id" class=
"video-attribute-value"
239 [routerLink]=
"[ '/search' ]" [queryParams]=
"{ licenceOneOf: [ video.licence.id ] }"
240 >{{ video.licence.label }}
</a>
243 <div class=
"video-attribute">
244 <span i18n
class=
"video-attribute-label">Language
</span>
245 <span *
ngIf=
"!video.language.id" class=
"video-attribute-value">{{ video.language.label }}
</span>
247 *
ngIf=
"video.language.id" class=
"video-attribute-value"
248 [routerLink]=
"[ '/search' ]" [queryParams]=
"{ languageOneOf: [ video.language.id ] }"
249 >{{ video.language.label }}
</a>
252 <div class=
"video-attribute video-attribute-tags">
253 <span i18n
class=
"video-attribute-label">Tags
</span>
255 *
ngFor=
"let tag of getVideoTags()"
256 class=
"video-attribute-value" [routerLink]=
"[ '/search' ]" [queryParams]=
"{ tagsOneOf: [ tag ] }"
260 <div class=
"video-attribute" *
ngIf=
"!video.isLive">
261 <span i18n
class=
"video-attribute-label">Duration
</span>
262 <span class=
"video-attribute-value">{{ video.duration | myDurationFormatter }}
</span>
270 (timestampClicked)=
"handleTimestampClicked($event)"
271 ></my-video-comments>
274 <my-recommended-videos
275 [displayAsRow]=
"displayOtherVideosAsRow()"
276 [inputRecommendation]=
"{ uuid: video.uuid, tags: video.tags }"
277 [playlist]=
"playlist"
278 (gotRecommendations)=
"onRecommendations($event)"
279 ></my-recommended-videos>
282 <div class=
"row privacy-concerns" *
ngIf=
"hasAlreadyAcceptedPrivacyConcern === false">
283 <div class=
"privacy-concerns-text">
285 <strong i18n
>Friendly Reminder:
</strong>
287 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.
290 <a i18n i18n-title
title=
"Get more information" target=
"_blank" rel=
"noopener noreferrer" href=
"/about/peertube#privacy">More information
</a>
293 <div i18n
class=
"privacy-concerns-button privacy-concerns-okay" (click)=
"acceptedPrivacyConcern()">
299 <ng-container *
ngIf=
"video !== null">
300 <my-support-modal #supportModal [video]=
"video"></my-support-modal>
301 <my-video-share #videoShareModal [video]=
"video" [videoCaptions]=
"videoCaptions" [playlist]=
"playlist"></my-video-share>
304 <my-player-styles></my-player-styles>