notes on conversion and availability of videos for the user added
This commit is contained in:
parent
5cea3b54da
commit
03105c4fc6
5 changed files with 79 additions and 34 deletions
|
|
@ -39,42 +39,55 @@
|
||||||
<div class="back-button" (click)="closeVideo()">
|
<div class="back-button" (click)="closeVideo()">
|
||||||
<img src="./../../../../assets/img/back.svg" alt="Back" />
|
<img src="./../../../../assets/img/back.svg" alt="Back" />
|
||||||
</div>
|
</div>
|
||||||
<div class="resolution-controls">
|
<div class="center">
|
||||||
<button
|
<div class="resolution-controls">
|
||||||
[ngClass]="{
|
<button
|
||||||
'resolution-btn': true,
|
[ngClass]="{
|
||||||
active: currentResolution === '360p',
|
'resolution-btn': true,
|
||||||
'not-available': !movieIsUploaded['360']
|
active: currentResolution === '360p',
|
||||||
}"
|
'not-available': !movieIsUploaded['360']
|
||||||
[disabled]="!movieIsUploaded['360'] || currentResolution === '360p'"
|
}"
|
||||||
(click)="changeResolution('360p')"
|
[disabled]="!movieIsUploaded['360'] || currentResolution === '360p'"
|
||||||
|
(click)="changeResolution('360p')"
|
||||||
|
>
|
||||||
|
360p
|
||||||
|
</button>
|
||||||
|
<button
|
||||||
|
[ngClass]="{
|
||||||
|
'resolution-btn': true,
|
||||||
|
active: currentResolution === '720p',
|
||||||
|
'not-available': !movieIsUploaded['720']
|
||||||
|
}"
|
||||||
|
[disabled]="!movieIsUploaded['720'] || currentResolution === '720p'"
|
||||||
|
(click)="changeResolution('720p')"
|
||||||
|
>
|
||||||
|
720p
|
||||||
|
</button>
|
||||||
|
<button
|
||||||
|
[ngClass]="{
|
||||||
|
'resolution-btn': true,
|
||||||
|
active: currentResolution === '1080p',
|
||||||
|
'not-available': !movieIsUploaded['1080']
|
||||||
|
}"
|
||||||
|
[disabled]="
|
||||||
|
!movieIsUploaded['1080'] || currentResolution === '1080p'
|
||||||
|
"
|
||||||
|
(click)="changeResolution('1080p')"
|
||||||
|
>
|
||||||
|
1080p
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
<p
|
||||||
|
*ngIf="
|
||||||
|
!movieIsUploaded['360'] ||
|
||||||
|
!movieIsUploaded['720'] ||
|
||||||
|
!movieIsUploaded['1080']
|
||||||
|
"
|
||||||
>
|
>
|
||||||
360p
|
(If a button cannot be selected, the video will be converted, which
|
||||||
</button>
|
may take a few seconds.)
|
||||||
<button
|
</p>
|
||||||
[ngClass]="{
|
|
||||||
'resolution-btn': true,
|
|
||||||
active: currentResolution === '720p',
|
|
||||||
'not-available': !movieIsUploaded['720']
|
|
||||||
}"
|
|
||||||
[disabled]="!movieIsUploaded['720'] || currentResolution === '720p'"
|
|
||||||
(click)="changeResolution('720p')"
|
|
||||||
>
|
|
||||||
720p
|
|
||||||
</button>
|
|
||||||
<button
|
|
||||||
[ngClass]="{
|
|
||||||
'resolution-btn': true,
|
|
||||||
active: currentResolution === '1080p',
|
|
||||||
'not-available': !movieIsUploaded['1080']
|
|
||||||
}"
|
|
||||||
[disabled]="!movieIsUploaded['1080'] || currentResolution === '1080p'"
|
|
||||||
(click)="changeResolution('1080p')"
|
|
||||||
>
|
|
||||||
1080p
|
|
||||||
</button>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="logo">
|
<div class="logo">
|
||||||
<img src="./../../../../assets/img/logo_ci.svg" alt="Logo" />
|
<img src="./../../../../assets/img/logo_ci.svg" alt="Logo" />
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -45,6 +45,17 @@ section {
|
||||||
transition: opacity 300ms ease-in-out;
|
transition: opacity 300ms ease-in-out;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.center {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
p {
|
||||||
|
font-size: 14px;
|
||||||
|
font-weight: 400;
|
||||||
|
color: $light-blue;
|
||||||
|
text-shadow: 1px 1px 2px $black;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.spacer {
|
.spacer {
|
||||||
margin-top: 120px;
|
margin-top: 120px;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -73,6 +73,10 @@
|
||||||
/>
|
/>
|
||||||
}
|
}
|
||||||
</div>
|
</div>
|
||||||
|
<p *ngIf="!isAnyResolutionUploaded()">
|
||||||
|
(The video is being converted)
|
||||||
|
<a (click)="backToCategory(currentMovie)">Refresh</a>
|
||||||
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -104,6 +104,21 @@ section {
|
||||||
height: 28px;
|
height: 28px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
p {
|
||||||
|
position: absolute;
|
||||||
|
bottom: -28px;
|
||||||
|
left: 0;
|
||||||
|
color: $light-blue;
|
||||||
|
text-shadow: 1px 1px 2px $black;
|
||||||
|
a {
|
||||||
|
text-decoration: none;
|
||||||
|
color: $white;
|
||||||
|
cursor: pointer;
|
||||||
|
&:hover {
|
||||||
|
color: $blue;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.filled {
|
.filled {
|
||||||
|
|
|
||||||
|
|
@ -58,6 +58,8 @@ export class HeroBannerComponent implements OnChanges {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
refreshPage(movieId: number) {}
|
||||||
|
|
||||||
toggleLikeMovie(movieId: number): void {
|
toggleLikeMovie(movieId: number): void {
|
||||||
if (this.favoriteMovies.includes(movieId)) {
|
if (this.favoriteMovies.includes(movieId)) {
|
||||||
this.favoriteMovies = this.favoriteMovies.filter((id) => id !== movieId);
|
this.favoriteMovies = this.favoriteMovies.filter((id) => id !== movieId);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue