]>
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 | |
5a2f775a C |
14 | <my-video-watch-playlist |
15 | #videoWatchPlaylist [playlist]="playlist" | |
16 | (noVideoFound)="onPlaylistNoVideoFound()" (videoFound)="onPlaylistVideoFound($event)" | |
17 | ></my-video-watch-playlist> | |
62bc0352 C |
18 | |
19 | <my-plugin-placeholder pluginId="player-next"></my-plugin-placeholder> | |
d1992b93 | 20 | </div> |
897ec54d | 21 | |
5a2f775a | 22 | <my-video-alert [video]="video" [noPlaylistVideoFound]="noPlaylistVideoFound"></my-video-alert> |
bbe0f064 | 23 | |
20206dfb | 24 | <!-- Video information --> |
2303a803 | 25 | <div *ngIf="video" class="margin-content video-bottom"> |
9a18a625 C |
26 | <div class="video-info"> |
27 | <div class="video-info-first-row"> | |
28 | <div> | |
8d64a72b C |
29 | <ng-template #publishedTemplate> |
30 | <ng-container i18n>Published <my-date-toggle [date]="video.publishedAt"></my-date-toggle></ng-container> | |
31 | • | |
32 | <my-video-views-counter [video]="video"></my-video-views-counter> | |
33 | </ng-template> | |
34 | ||
7fc441cc | 35 | <div class="d-block d-md-none"> <!-- only shown on medium devices, has its counterpart for larger viewports below --> |
9a18a625 | 36 | <h1 class="video-info-name">{{ video.name }}</h1> |
7fc441cc | 37 | |
5c0904fc | 38 | <div class="video-info-date-views"> |
8d64a72b | 39 | <ng-template *ngTemplateOutlet="publishedTemplate"></ng-template> |
9a18a625 C |
40 | </div> |
41 | </div> | |
42 | ||
7fc441cc | 43 | <div class="d-flex justify-content-between flex-direction-column"> |
9a18a625 | 44 | <div class="d-none d-md-block"> |
f845c683 | 45 | <h1 class="video-info-name">{{ video.name }}</h1> |
7fc441cc | 46 | </div> |
9a18a625 | 47 | |
7fc441cc | 48 | <div class="video-info-first-row-bottom"> |
5c0904fc | 49 | <div class="d-none d-md-block video-info-date-views"> |
8d64a72b | 50 | <ng-template *ngTemplateOutlet="publishedTemplate"></ng-template> |
2d9fea16 | 51 | </div> |
2d9fea16 | 52 | |
06a55579 C |
53 | <my-action-buttons |
54 | [video]="video" [isUserLoggedIn]="isUserLoggedIn()" [videoCaptions]="videoCaptions" [playlist]="playlist" | |
55 | [currentTime]="getCurrentTime()" [currentPlaylistPosition]="getCurrentPlaylistPosition()" | |
56 | ></my-action-buttons> | |
1f788f20 | 57 | </div> |
9a18a625 | 58 | </div> |
6a9e1d42 | 59 | |
dd4f25ee RK |
60 | <div class="pt-3 border-top video-info-channel d-flex"> |
61 | <div class="video-info-channel-left d-flex"> | |
7399a79f | 62 | <my-video-avatar-channel [video]="video" [showChannel]="!isChannelDisplayNameGeneric()"></my-video-avatar-channel> |
62fca05d | 63 | |
4c8749cb | 64 | <div class="video-info-channel-left-links ms-1"> |
b40a2193 | 65 | <ng-container *ngIf="!isChannelDisplayNameGeneric()"> |
71887396 | 66 | <a [routerLink]="[ '/c', video.byVideoChannel ]" i18n-title title="Channel page"> |
b40a2193 K |
67 | {{ video.channel.displayName }} |
68 | </a> | |
71887396 | 69 | <a [routerLink]="[ '/a', video.byAccount ]" i18n-title title="Account page"> |
b40a2193 K |
70 | <span i18n>By {{ video.byAccount }}</span> |
71 | </a> | |
72 | </ng-container> | |
73 | ||
74 | <ng-container *ngIf="isChannelDisplayNameGeneric()"> | |
71887396 | 75 | <a [routerLink]="[ '/a', video.byAccount ]" class="single-link" i18n-title title="Account page"> |
b40a2193 K |
76 | <span i18n>{{ video.byAccount }}</span> |
77 | </a> | |
78 | </ng-container> | |
dd4f25ee RK |
79 | </div> |
80 | </div> | |
63347a0f | 81 | |
41eb700f | 82 | <my-subscribe-button #subscribeButton [videoChannels]="[video.channel]" size="small"></my-subscribe-button> |
2d9fea16 | 83 | </div> |
2d9fea16 | 84 | </div> |
26b7305a | 85 | |
9a18a625 | 86 | </div> |
191764f3 | 87 | |
a00056c0 | 88 | <my-video-description [video]="video" (timestampClicked)="handleTimestampClicked($event)"></my-video-description> |
adb115f5 | 89 | |
c894a1ea | 90 | <my-video-attributes [video]="video"></my-video-attributes> |
3b766e18 | 91 | |
b29bf61d RK |
92 | <my-video-comments |
93 | class="border-top" | |
94 | [video]="video" | |
95 | [user]="user" | |
96 | (timestampClicked)="handleTimestampClicked($event)" | |
97 | ></my-video-comments> | |
d1992b93 | 98 | </div> |
9a18a625 | 99 | |
6aa54148 | 100 | <my-recommended-videos |
0f7407d9 | 101 | [displayAsRow]="displayOtherVideosAsRow()" |
5c20a455 | 102 | [inputRecommendation]="{ uuid: video.uuid, tags: video.tags }" |
5c20a455 C |
103 | [playlist]="playlist" |
104 | (gotRecommendations)="onRecommendations($event)" | |
6aa54148 | 105 | ></my-recommended-videos> |
d1992b93 | 106 | </div> |
8ff3f883 | 107 | |
5196817c | 108 | <my-privacy-concerns *ngIf="video" [video]="video"></my-privacy-concerns> |
b59f12b0 | 109 | </div> |
d1992b93 | 110 | |
db5814c0 | 111 | <my-player-styles></my-player-styles> |