]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/+videos/+video-watch/video-watch.component.html
Don't stuck state when move transcoding job failed
[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
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">
7399a79f 63 <my-video-avatar-channel [video]="video" [showChannel]="!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
a00056c0 89 <my-video-description [video]="video" (timestampClicked)="handleTimestampClicked($event)"></my-video-description>
adb115f5 90
c894a1ea 91 <my-video-attributes [video]="video"></my-video-attributes>
3b766e18 92
b29bf61d
RK
93 <my-video-comments
94 class="border-top"
95 [video]="video"
96 [user]="user"
97 (timestampClicked)="handleTimestampClicked($event)"
98 ></my-video-comments>
d1992b93 99 </div>
9a18a625 100
6aa54148 101 <my-recommended-videos
0f7407d9 102 [displayAsRow]="displayOtherVideosAsRow()"
5c20a455 103 [inputRecommendation]="{ uuid: video.uuid, tags: video.tags }"
5c20a455
C
104 [playlist]="playlist"
105 (gotRecommendations)="onRecommendations($event)"
6aa54148 106 ></my-recommended-videos>
d1992b93 107 </div>
8ff3f883 108
5196817c 109 <my-privacy-concerns *ngIf="video" [video]="video"></my-privacy-concerns>
b59f12b0 110</div>
d1992b93 111
db5814c0 112<my-player-styles></my-player-styles>