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