]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - client/src/app/+videos/+video-watch/video-watch.component.html
4c15ae3d750007a9a5695047f11250a93c463eb1
[github/Chocobozzz/PeerTube.git] / client / src / app / +videos / +video-watch / video-watch.component.html
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.
6 <br />
7 Please try again later.
8 </div>
9
10 <div id="videojs-wrapper">
11 <img class="placeholder-image" *ngIf="playerPlaceholderImgSrc" [src]="playerPlaceholderImgSrc" alt="Placeholder image" i18n-alt>
12 </div>
13
14 <my-video-watch-playlist #videoWatchPlaylist [playlist]="playlist" (videoFound)="onPlaylistVideoFound($event)"></my-video-watch-playlist>
15
16 <my-plugin-placeholder pluginId="player-next"></my-plugin-placeholder>
17 </div>
18
19 <my-video-alert [video]="video"></my-video-alert>
20
21 <!-- Video information -->
22 <div *ngIf="video" class="margin-content video-bottom">
23 <div class="video-info">
24 <div class="video-info-first-row">
25 <div>
26 <ng-template #publishedTemplate>
27 <ng-container i18n>Published <my-date-toggle [date]="video.publishedAt"></my-date-toggle></ng-container>
28
29 <my-video-views-counter [video]="video"></my-video-views-counter>
30 </ng-template>
31
32 <div class="d-block d-md-none"> <!-- only shown on medium devices, has its counterpart for larger viewports below -->
33 <h1 class="video-info-name">{{ video.name }}</h1>
34
35 <div class="video-info-date-views">
36 <ng-template *ngTemplateOutlet="publishedTemplate"></ng-template>
37 </div>
38 </div>
39
40 <div class="d-flex justify-content-between flex-direction-column">
41 <div class="d-none d-md-block">
42 <h1 class="video-info-name">{{ video.name }}</h1>
43 </div>
44
45 <div class="video-info-first-row-bottom">
46 <div class="d-none d-md-block video-info-date-views">
47 <ng-template *ngTemplateOutlet="publishedTemplate"></ng-template>
48 </div>
49
50 <my-action-buttons
51 [video]="video" [isUserLoggedIn]="isUserLoggedIn()" [videoCaptions]="videoCaptions" [playlist]="playlist"
52 [currentTime]="getCurrentTime()" [currentPlaylistPosition]="getCurrentPlaylistPosition()"
53 ></my-action-buttons>
54 </div>
55 </div>
56
57 <div class="pt-3 border-top video-info-channel d-flex">
58 <div class="video-info-channel-left d-flex">
59 <my-video-avatar-channel [video]="video" [showChannel]="!isChannelDisplayNameGeneric()"></my-video-avatar-channel>
60
61 <div class="video-info-channel-left-links ml-1">
62 <ng-container *ngIf="!isChannelDisplayNameGeneric()">
63 <a [routerLink]="[ '/c', video.byVideoChannel ]" i18n-title title="Channel page">
64 {{ video.channel.displayName }}
65 </a>
66 <a [routerLink]="[ '/a', video.byAccount ]" i18n-title title="Account page">
67 <span i18n>By {{ video.byAccount }}</span>
68 </a>
69 </ng-container>
70
71 <ng-container *ngIf="isChannelDisplayNameGeneric()">
72 <a [routerLink]="[ '/a', video.byAccount ]" class="single-link" i18n-title title="Account page">
73 <span i18n>{{ video.byAccount }}</span>
74 </a>
75 </ng-container>
76 </div>
77 </div>
78
79 <my-subscribe-button #subscribeButton [videoChannels]="[video.channel]" size="small"></my-subscribe-button>
80 </div>
81 </div>
82
83 </div>
84
85 <my-video-description [video]="video" (timestampClicked)="handleTimestampClicked($event)"></my-video-description>
86
87 <my-video-attributes [video]="video"></my-video-attributes>
88
89 <my-video-comments
90 class="border-top"
91 [video]="video"
92 [user]="user"
93 (timestampClicked)="handleTimestampClicked($event)"
94 ></my-video-comments>
95 </div>
96
97 <my-recommended-videos
98 [displayAsRow]="displayOtherVideosAsRow()"
99 [inputRecommendation]="{ uuid: video.uuid, tags: video.tags }"
100 [playlist]="playlist"
101 (gotRecommendations)="onRecommendations($event)"
102 ></my-recommended-videos>
103 </div>
104
105 <my-privacy-concerns *ngIf="video" [video]="video"></my-privacy-concerns>
106 </div>
107
108 <my-player-styles></my-player-styles>