]>
Commit | Line | Data |
---|---|---|
9a18a625 | 1 | <div class="root" [ngClass]="{ 'theater-enabled': theaterEnabled }"> |
897ec54d | 2 | <!-- We need the video container for videojs so we just hide it --> |
e2f01c47 | 3 | <div id="video-wrapper"> |
6d88de72 C |
4 | <div *ngIf="remoteServerDown" class="remote-server-down"> |
5 | Sorry, but this video is not available because the remote instance is not responding. | |
6 | <br /> | |
7 | Please try again later. | |
8 | </div> | |
e2f01c47 | 9 | |
c15d61f5 | 10 | <div id="videojs-wrapper"> |
0114ee15 | 11 | <img class="placeholder-image" *ngIf="playerPlaceholderImgSrc" [src]="playerPlaceholderImgSrc" alt="Placeholder image" i18n-alt> |
c15d61f5 | 12 | </div> |
e2f01c47 | 13 | |
72675ebe C |
14 | <my-video-watch-playlist |
15 | #videoWatchPlaylist | |
d142c7b9 C |
16 | [playlist]="playlist" class="playlist" |
17 | (videoFound)="onPlaylistVideoFound($event)" | |
72675ebe | 18 | ></my-video-watch-playlist> |
62bc0352 C |
19 | |
20 | <my-plugin-placeholder pluginId="player-next"></my-plugin-placeholder> | |
d1992b93 | 21 | </div> |
897ec54d | 22 | |
2b3f1919 C |
23 | <div class="row"> |
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. | |
26 | </div> | |
516df59b | 27 | |
2b3f1919 C |
28 | <div i18n class="col-md-12 alert alert-warning" *ngIf="isVideoToTranscode()"> |
29 | The video is being transcoded, it may not work properly. | |
30 | </div> | |
2186386c | 31 | |
2b3f1919 C |
32 | <div i18n class="col-md-12 alert alert-info" *ngIf="hasVideoScheduledPublication()"> |
33 | This video will be published on {{ video.scheduledUpdate.updateAt | date: 'full' }}. | |
34 | </div> | |
191764f3 | 35 | |
a5cf76af C |
36 | <div i18n class="col-md-12 alert alert-info" *ngIf="isWaitingForLive()"> |
37 | This live has not started yet. | |
38 | </div> | |
39 | ||
40 | <div i18n class="col-md-12 alert alert-info" *ngIf="isLiveEnded()"> | |
5c0904fc | 41 | This live has ended. |
a5cf76af C |
42 | </div> |
43 | ||
2b3f1919 | 44 | <div class="col-md-12 alert alert-danger" *ngIf="video?.blacklisted"> |
5baee5fc RK |
45 | <div class="blocked-label" i18n>This video is blocked.</div> |
46 | {{ video.blockedReason }} | |
2b3f1919 | 47 | </div> |
bbe0f064 C |
48 | </div> |
49 | ||
20206dfb | 50 | <!-- Video information --> |
2303a803 | 51 | <div *ngIf="video" class="margin-content video-bottom"> |
9a18a625 C |
52 | <div class="video-info"> |
53 | <div class="video-info-first-row"> | |
54 | <div> | |
7fc441cc | 55 | <div class="d-block d-md-none"> <!-- only shown on medium devices, has its counterpart for larger viewports below --> |
9a18a625 | 56 | <h1 class="video-info-name">{{ video.name }}</h1> |
7fc441cc | 57 | |
5c0904fc C |
58 | <div class="video-info-date-views"> |
59 | <ng-container i18n>Published <my-date-toggle [date]="video.publishedAt"></my-date-toggle></ng-container> | |
5cac83a7 C |
60 | • |
61 | <my-video-views-counter [video]="video"></my-video-views-counter> | |
9a18a625 C |
62 | </div> |
63 | </div> | |
64 | ||
7fc441cc | 65 | <div class="d-flex justify-content-between flex-direction-column"> |
9a18a625 | 66 | <div class="d-none d-md-block"> |
f845c683 | 67 | <h1 class="video-info-name">{{ video.name }}</h1> |
7fc441cc | 68 | </div> |
9a18a625 | 69 | |
7fc441cc | 70 | <div class="video-info-first-row-bottom"> |
5c0904fc C |
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> | |
dc1f314e C |
73 | • |
74 | <my-video-views-counter [video]="video"></my-video-views-counter> | |
2d9fea16 | 75 | </div> |
2d9fea16 | 76 | |
7fc441cc | 77 | <div class="video-actions-rates"> |
931d3430 | 78 | <div class="video-actions full-width justify-content-end"> |
6ea59f41 C |
79 | <my-video-rate |
80 | [video]="video" [isUserLoggedIn]="isUserLoggedIn()" | |
81 | (rateUpdated)="onRateUpdated($event)" (userRatingLoaded)="onRateUpdated($event)" | |
82 | ></my-video-rate> | |
3adf3196 | 83 | |
adcf9212 | 84 | <button *ngIf="video.support" (click)="showSupportModal()" (keyup.enter)="showSupportModal()" class="action-button action-button-support" [attr.aria-label]="tooltipSupport" |
94dfca3e RK |
85 | [ngbTooltip]="tooltipSupport" |
86 | placement="bottom auto" | |
87 | > | |
adcf9212 | 88 | <my-global-icon iconName="support" aria-hidden="true"></my-global-icon> |
14571f19 | 89 | <span class="icon-text" i18n>SUPPORT</span> |
adcf9212 | 90 | </button> |
3adf3196 | 91 | |
adcf9212 | 92 | <button (click)="showShareModal()" (keyup.enter)="showShareModal()" class="action-button"> |
6ad971d5 | 93 | <my-global-icon iconName="share" aria-hidden="true"></my-global-icon> |
14571f19 | 94 | <span class="icon-text" i18n>SHARE</span> |
adcf9212 | 95 | </button> |
3adf3196 | 96 | |
7fc441cc RK |
97 | <div |
98 | class="action-dropdown" ngbDropdown placement="top" role="button" autoClose="outside" | |
99 | *ngIf="isUserLoggedIn()" (openChange)="addContent.openChange($event)" | |
94dfca3e RK |
100 | [ngbTooltip]="tooltipSaveToPlaylist" |
101 | placement="bottom auto" | |
7fc441cc | 102 | > |
adcf9212 | 103 | <button class="action-button action-button-save" ngbDropdownToggle> |
6ad971d5 | 104 | <my-global-icon iconName="playlist-add" aria-hidden="true"></my-global-icon> |
14571f19 | 105 | <span class="icon-text" i18n>SAVE</span> |
adcf9212 | 106 | </button> |
3adf3196 | 107 | |
7fc441cc RK |
108 | <div ngbDropdownMenu> |
109 | <my-video-add-to-playlist #addContent [video]="video"></my-video-add-to-playlist> | |
110 | </div> | |
111 | </div> | |
3adf3196 | 112 | |
a5cf76af | 113 | <ng-container *ngIf="!isUserLoggedIn() && !isLive()"> |
6863f814 RK |
114 | <button |
115 | *ngIf="isVideoDownloadable()" class="action-button action-button-save" | |
116 | (click)="showDownloadModal()" (keydown.enter)="showDownloadModal()" | |
117 | > | |
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> | |
120 | </button> | |
82f443de | 121 | |
6863f814 RK |
122 | <my-video-download #videoDownloadModal></my-video-download> |
123 | </ng-container> | |
82f443de | 124 | |
6863f814 RK |
125 | <ng-container *ngIf="isUserLoggedIn()"> |
126 | <my-video-actions-dropdown | |
127 | placement="bottom auto" buttonDirection="horizontal" [buttonStyled]="true" [video]="video" [videoCaptions]="videoCaptions" | |
ca873292 | 128 | [displayOptions]="videoActionsOptions" (videoRemoved)="onVideoRemoved()" |
6863f814 RK |
129 | ></my-video-actions-dropdown> |
130 | </ng-container> | |
9a18a625 | 131 | </div> |
3adf3196 | 132 | |
223b24e6 | 133 | <div class="video-info-likes-dislikes-bar-outer-container"> |
2de7f588 | 134 | <div |
223b24e6 | 135 | class="video-info-likes-dislikes-bar-inner-container" |
2de7f588 RK |
136 | *ngIf="video.likes !== 0 || video.dislikes !== 0" |
137 | [ngbTooltip]="likesBarTooltipText" | |
138 | placement="bottom" | |
139 | > | |
140 | <div | |
141 | class="video-info-likes-dislikes-bar" | |
142 | > | |
0240da5c | 143 | <div class="likes-bar" [ngClass]="{ 'liked': userRating !== 'none' }" [ngStyle]="{ 'width.%': video.likesPercent }"></div> |
2de7f588 RK |
144 | </div> |
145 | </div> | |
9a18a625 | 146 | </div> |
9a18a625 | 147 | </div> |
2d3741d6 | 148 | |
9a18a625 C |
149 | <div |
150 | class="video-info-likes-dislikes-bar" | |
151 | *ngIf="video.likes !== 0 || video.dislikes !== 0" | |
152 | [ngbTooltip]="likesBarTooltipText" | |
153 | placement="bottom" | |
154 | > | |
155 | <div class="likes-bar" [ngStyle]="{ 'width.%': video.likesPercent }"></div> | |
2d9fea16 | 156 | </div> |
1f788f20 | 157 | </div> |
9a18a625 | 158 | </div> |
6a9e1d42 | 159 | |
07fa4c97 | 160 | |
dd4f25ee RK |
161 | <div class="pt-3 border-top video-info-channel d-flex"> |
162 | <div class="video-info-channel-left d-flex"> | |
69524f6e | 163 | <my-video-avatar-channel [video]="video" [genericChannel]="isChannelDisplayNameGeneric()"></my-video-avatar-channel> |
62fca05d | 164 | |
dd4f25ee | 165 | <div class="video-info-channel-left-links ml-1"> |
b40a2193 | 166 | <ng-container *ngIf="!isChannelDisplayNameGeneric()"> |
71887396 | 167 | <a [routerLink]="[ '/c', video.byVideoChannel ]" i18n-title title="Channel page"> |
b40a2193 K |
168 | {{ video.channel.displayName }} |
169 | </a> | |
71887396 | 170 | <a [routerLink]="[ '/a', video.byAccount ]" i18n-title title="Account page"> |
b40a2193 K |
171 | <span i18n>By {{ video.byAccount }}</span> |
172 | </a> | |
173 | </ng-container> | |
174 | ||
175 | <ng-container *ngIf="isChannelDisplayNameGeneric()"> | |
71887396 | 176 | <a [routerLink]="[ '/a', video.byAccount ]" class="single-link" i18n-title title="Account page"> |
b40a2193 K |
177 | <span i18n>{{ video.byAccount }}</span> |
178 | </a> | |
179 | </ng-container> | |
dd4f25ee RK |
180 | </div> |
181 | </div> | |
63347a0f | 182 | |
41eb700f | 183 | <my-subscribe-button #subscribeButton [videoChannels]="[video.channel]" size="small"></my-subscribe-button> |
2d9fea16 | 184 | </div> |
2d9fea16 | 185 | </div> |
26b7305a | 186 | |
9a18a625 | 187 | </div> |
191764f3 | 188 | |
b0c43e36 | 189 | <my-video-description [video]="video"></my-video-description> |
adb115f5 | 190 | |
dd4f25ee | 191 | <div class="video-attributes mb-3"> |
9a18a625 C |
192 | <div class="video-attribute"> |
193 | <span i18n class="video-attribute-label">Privacy</span> | |
194 | <span class="video-attribute-value">{{ video.privacy.label }}</span> | |
195 | </div> | |
2de96f4d | 196 | |
c910f667 | 197 | <div *ngIf="video.isLocal === false" class="video-attribute"> |
de779034 RK |
198 | <span i18n class="video-attribute-label">Origin</span> |
199 | <a class="video-attribute-value" target="_blank" rel="noopener noreferrer" [href]="getVideoUrl()">{{ video.originInstanceHost }}</a> | |
c910f667 C |
200 | </div> |
201 | ||
9a18a625 C |
202 | <div *ngIf="!!video.originallyPublishedAt" class="video-attribute"> |
203 | <span i18n class="video-attribute-label">Originally published</span> | |
204 | <span class="video-attribute-value">{{ video.originallyPublishedAt | date: 'dd MMMM yyyy' }}</span> | |
205 | </div> | |
2de96f4d | 206 | |
9a18a625 C |
207 | <div class="video-attribute"> |
208 | <span i18n class="video-attribute-label">Category</span> | |
209 | <span *ngIf="!video.category.id" class="video-attribute-value">{{ video.category.label }}</span> | |
210 | <a | |
211 | *ngIf="video.category.id" class="video-attribute-value" | |
212 | [routerLink]="[ '/search' ]" [queryParams]="{ categoryOneOf: [ video.category.id ] }" | |
213 | >{{ video.category.label }}</a> | |
214 | </div> | |
db216afd | 215 | |
9a18a625 C |
216 | <div class="video-attribute"> |
217 | <span i18n class="video-attribute-label">Licence</span> | |
218 | <span *ngIf="!video.licence.id" class="video-attribute-value">{{ video.licence.label }}</span> | |
219 | <a | |
220 | *ngIf="video.licence.id" class="video-attribute-value" | |
221 | [routerLink]="[ '/search' ]" [queryParams]="{ licenceOneOf: [ video.licence.id ] }" | |
222 | >{{ video.licence.label }}</a> | |
223 | </div> | |
fd45e8f4 | 224 | |
9a18a625 C |
225 | <div class="video-attribute"> |
226 | <span i18n class="video-attribute-label">Language</span> | |
227 | <span *ngIf="!video.language.id" class="video-attribute-value">{{ video.language.label }}</span> | |
228 | <a | |
229 | *ngIf="video.language.id" class="video-attribute-value" | |
230 | [routerLink]="[ '/search' ]" [queryParams]="{ languageOneOf: [ video.language.id ] }" | |
231 | >{{ video.language.label }}</a> | |
20206dfb | 232 | </div> |
09223546 | 233 | |
9a18a625 C |
234 | <div class="video-attribute video-attribute-tags"> |
235 | <span i18n class="video-attribute-label">Tags</span> | |
236 | <a | |
237 | *ngFor="let tag of getVideoTags()" | |
238 | class="video-attribute-value" [routerLink]="[ '/search' ]" [queryParams]="{ tagsOneOf: [ tag ] }" | |
239 | >{{ tag }}</a> | |
240 | </div> | |
df8340b7 | 241 | |
da0310f8 | 242 | <div class="video-attribute" *ngIf="!video.isLive"> |
df8340b7 | 243 | <span i18n class="video-attribute-label">Duration</span> |
b5b68755 | 244 | <span class="video-attribute-value">{{ video.duration | myDurationFormatter }}</span> |
62fca05d | 245 | </div> |
3b766e18 RK |
246 | </div> |
247 | ||
b29bf61d RK |
248 | <my-video-comments |
249 | class="border-top" | |
250 | [video]="video" | |
251 | [user]="user" | |
252 | (timestampClicked)="handleTimestampClicked($event)" | |
253 | ></my-video-comments> | |
d1992b93 | 254 | </div> |
9a18a625 | 255 | |
6aa54148 | 256 | <my-recommended-videos |
0f7407d9 | 257 | [displayAsRow]="displayOtherVideosAsRow()" |
5c20a455 | 258 | [inputRecommendation]="{ uuid: video.uuid, tags: video.tags }" |
5c20a455 C |
259 | [playlist]="playlist" |
260 | (gotRecommendations)="onRecommendations($event)" | |
6aa54148 | 261 | ></my-recommended-videos> |
d1992b93 | 262 | </div> |
8ff3f883 | 263 | |
2b3f1919 | 264 | <div class="row privacy-concerns" *ngIf="hasAlreadyAcceptedPrivacyConcern === false"> |
2b3b76ab | 265 | <div class="privacy-concerns-text"> |
52e3beb9 RK |
266 | <span class="mr-2"> |
267 | <strong i18n>Friendly Reminder: </strong> | |
268 | <ng-container i18n> | |
269 | 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. | |
270 | </ng-container> | |
d3217560 | 271 | </span> |
5411da31 | 272 | <a i18n i18n-title title="Get more information" target="_blank" rel="noopener noreferrer" href="/about/peertube#privacy">More information</a> |
2b3b76ab C |
273 | </div> |
274 | ||
d3217560 | 275 | <div i18n class="privacy-concerns-button privacy-concerns-okay" (click)="acceptedPrivacyConcern()"> |
52e3beb9 | 276 | OK |
2b3b76ab C |
277 | </div> |
278 | </div> | |
b59f12b0 | 279 | </div> |
d1992b93 | 280 | |
5a71acd2 | 281 | <ng-container *ngIf="video !== null"> |
100d9ce2 | 282 | <my-support-modal #supportModal [video]="video"></my-support-modal> |
3a1fed11 | 283 | <my-video-share #videoShareModal [video]="video" [videoCaptions]="videoCaptions" [playlist]="playlist"></my-video-share> |
5a71acd2 | 284 | </ng-container> |
db5814c0 C |
285 | |
286 | <my-player-styles></my-player-styles> |