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