]>
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> | |
8d64a72b C |
55 | <ng-template #publishedTemplate> |
56 | <ng-container i18n>Published <my-date-toggle [date]="video.publishedAt"></my-date-toggle></ng-container> | |
57 | • | |
58 | <my-video-views-counter [video]="video"></my-video-views-counter> | |
59 | </ng-template> | |
60 | ||
7fc441cc | 61 | <div class="d-block d-md-none"> <!-- only shown on medium devices, has its counterpart for larger viewports below --> |
9a18a625 | 62 | <h1 class="video-info-name">{{ video.name }}</h1> |
7fc441cc | 63 | |
5c0904fc | 64 | <div class="video-info-date-views"> |
8d64a72b | 65 | <ng-template *ngTemplateOutlet="publishedTemplate"></ng-template> |
9a18a625 C |
66 | </div> |
67 | </div> | |
68 | ||
7fc441cc | 69 | <div class="d-flex justify-content-between flex-direction-column"> |
9a18a625 | 70 | <div class="d-none d-md-block"> |
f845c683 | 71 | <h1 class="video-info-name">{{ video.name }}</h1> |
7fc441cc | 72 | </div> |
9a18a625 | 73 | |
7fc441cc | 74 | <div class="video-info-first-row-bottom"> |
5c0904fc | 75 | <div class="d-none d-md-block video-info-date-views"> |
8d64a72b | 76 | <ng-template *ngTemplateOutlet="publishedTemplate"></ng-template> |
2d9fea16 | 77 | </div> |
2d9fea16 | 78 | |
06a55579 C |
79 | <my-action-buttons |
80 | [video]="video" [isUserLoggedIn]="isUserLoggedIn()" [videoCaptions]="videoCaptions" [playlist]="playlist" | |
81 | [currentTime]="getCurrentTime()" [currentPlaylistPosition]="getCurrentPlaylistPosition()" | |
82 | ></my-action-buttons> | |
1f788f20 | 83 | </div> |
9a18a625 | 84 | </div> |
6a9e1d42 | 85 | |
dd4f25ee RK |
86 | <div class="pt-3 border-top video-info-channel d-flex"> |
87 | <div class="video-info-channel-left d-flex"> | |
69524f6e | 88 | <my-video-avatar-channel [video]="video" [genericChannel]="isChannelDisplayNameGeneric()"></my-video-avatar-channel> |
62fca05d | 89 | |
dd4f25ee | 90 | <div class="video-info-channel-left-links ml-1"> |
b40a2193 | 91 | <ng-container *ngIf="!isChannelDisplayNameGeneric()"> |
71887396 | 92 | <a [routerLink]="[ '/c', video.byVideoChannel ]" i18n-title title="Channel page"> |
b40a2193 K |
93 | {{ video.channel.displayName }} |
94 | </a> | |
71887396 | 95 | <a [routerLink]="[ '/a', video.byAccount ]" i18n-title title="Account page"> |
b40a2193 K |
96 | <span i18n>By {{ video.byAccount }}</span> |
97 | </a> | |
98 | </ng-container> | |
99 | ||
100 | <ng-container *ngIf="isChannelDisplayNameGeneric()"> | |
71887396 | 101 | <a [routerLink]="[ '/a', video.byAccount ]" class="single-link" i18n-title title="Account page"> |
b40a2193 K |
102 | <span i18n>{{ video.byAccount }}</span> |
103 | </a> | |
104 | </ng-container> | |
dd4f25ee RK |
105 | </div> |
106 | </div> | |
63347a0f | 107 | |
41eb700f | 108 | <my-subscribe-button #subscribeButton [videoChannels]="[video.channel]" size="small"></my-subscribe-button> |
2d9fea16 | 109 | </div> |
2d9fea16 | 110 | </div> |
26b7305a | 111 | |
9a18a625 | 112 | </div> |
191764f3 | 113 | |
b0c43e36 | 114 | <my-video-description [video]="video"></my-video-description> |
adb115f5 | 115 | |
dd4f25ee | 116 | <div class="video-attributes mb-3"> |
9a18a625 C |
117 | <div class="video-attribute"> |
118 | <span i18n class="video-attribute-label">Privacy</span> | |
119 | <span class="video-attribute-value">{{ video.privacy.label }}</span> | |
120 | </div> | |
2de96f4d | 121 | |
c910f667 | 122 | <div *ngIf="video.isLocal === false" class="video-attribute"> |
de779034 RK |
123 | <span i18n class="video-attribute-label">Origin</span> |
124 | <a class="video-attribute-value" target="_blank" rel="noopener noreferrer" [href]="getVideoUrl()">{{ video.originInstanceHost }}</a> | |
c910f667 C |
125 | </div> |
126 | ||
9a18a625 C |
127 | <div *ngIf="!!video.originallyPublishedAt" class="video-attribute"> |
128 | <span i18n class="video-attribute-label">Originally published</span> | |
129 | <span class="video-attribute-value">{{ video.originallyPublishedAt | date: 'dd MMMM yyyy' }}</span> | |
130 | </div> | |
2de96f4d | 131 | |
9a18a625 C |
132 | <div class="video-attribute"> |
133 | <span i18n class="video-attribute-label">Category</span> | |
134 | <span *ngIf="!video.category.id" class="video-attribute-value">{{ video.category.label }}</span> | |
135 | <a | |
136 | *ngIf="video.category.id" class="video-attribute-value" | |
137 | [routerLink]="[ '/search' ]" [queryParams]="{ categoryOneOf: [ video.category.id ] }" | |
138 | >{{ video.category.label }}</a> | |
139 | </div> | |
db216afd | 140 | |
9a18a625 C |
141 | <div class="video-attribute"> |
142 | <span i18n class="video-attribute-label">Licence</span> | |
143 | <span *ngIf="!video.licence.id" class="video-attribute-value">{{ video.licence.label }}</span> | |
144 | <a | |
145 | *ngIf="video.licence.id" class="video-attribute-value" | |
146 | [routerLink]="[ '/search' ]" [queryParams]="{ licenceOneOf: [ video.licence.id ] }" | |
147 | >{{ video.licence.label }}</a> | |
148 | </div> | |
fd45e8f4 | 149 | |
9a18a625 C |
150 | <div class="video-attribute"> |
151 | <span i18n class="video-attribute-label">Language</span> | |
152 | <span *ngIf="!video.language.id" class="video-attribute-value">{{ video.language.label }}</span> | |
153 | <a | |
154 | *ngIf="video.language.id" class="video-attribute-value" | |
155 | [routerLink]="[ '/search' ]" [queryParams]="{ languageOneOf: [ video.language.id ] }" | |
156 | >{{ video.language.label }}</a> | |
20206dfb | 157 | </div> |
09223546 | 158 | |
9a18a625 C |
159 | <div class="video-attribute video-attribute-tags"> |
160 | <span i18n class="video-attribute-label">Tags</span> | |
161 | <a | |
162 | *ngFor="let tag of getVideoTags()" | |
163 | class="video-attribute-value" [routerLink]="[ '/search' ]" [queryParams]="{ tagsOneOf: [ tag ] }" | |
164 | >{{ tag }}</a> | |
165 | </div> | |
df8340b7 | 166 | |
da0310f8 | 167 | <div class="video-attribute" *ngIf="!video.isLive"> |
df8340b7 | 168 | <span i18n class="video-attribute-label">Duration</span> |
b5b68755 | 169 | <span class="video-attribute-value">{{ video.duration | myDurationFormatter }}</span> |
62fca05d | 170 | </div> |
3b766e18 RK |
171 | </div> |
172 | ||
b29bf61d RK |
173 | <my-video-comments |
174 | class="border-top" | |
175 | [video]="video" | |
176 | [user]="user" | |
177 | (timestampClicked)="handleTimestampClicked($event)" | |
178 | ></my-video-comments> | |
d1992b93 | 179 | </div> |
9a18a625 | 180 | |
6aa54148 | 181 | <my-recommended-videos |
0f7407d9 | 182 | [displayAsRow]="displayOtherVideosAsRow()" |
5c20a455 | 183 | [inputRecommendation]="{ uuid: video.uuid, tags: video.tags }" |
5c20a455 C |
184 | [playlist]="playlist" |
185 | (gotRecommendations)="onRecommendations($event)" | |
6aa54148 | 186 | ></my-recommended-videos> |
d1992b93 | 187 | </div> |
8ff3f883 | 188 | |
6ebdd12f | 189 | <my-privacy-concerns></my-privacy-concerns> |
b59f12b0 | 190 | </div> |
d1992b93 | 191 | |
db5814c0 | 192 | <my-player-styles></my-player-styles> |