mirror of
https://github.com/Tzahi12345/YoutubeDL-Material.git
synced 2026-03-07 20:10:03 +03:00
17 lines
1.2 KiB
HTML
17 lines
1.2 KiB
HTML
<div *ngIf="playlist.length > 0; else loading">
|
|
<div [ngClass]="(type === 'audio') ? null : 'container-video'" class="container">
|
|
<div class="row">
|
|
<div [ngClass]="(type === 'audio') ? 'my-2 px-1' : null" class="col px-1">
|
|
<vg-player (onPlayerReady)="onPlayerReady($event)" [style.background-color]="(type === 'audio') ? 'transparent' : 'black'">
|
|
<video [ngClass]="(type === 'audio') ? 'audio-styles' : 'video-styles'" #media class="video-player" [vgMedia]="media" [src]="currentItem.src" id="singleVideo" preload="auto" controls>
|
|
</video>
|
|
</vg-player>
|
|
</div>
|
|
<div class="col-12 my-2">
|
|
<mat-button-toggle-group style="width: 80%; left: 9%" vertical name="videoSelect" aria-label="Video Select" #group="matButtonToggleGroup">
|
|
<mat-button-toggle *ngFor="let name of fileNames; let i = index" [checked]="currentItem.title === name" (click)="onClickPlaylistItem(playlist[i], i)" class="toggle-button" [value]="name">{{decodeURI(name)}}</mat-button-toggle>
|
|
</mat-button-toggle-group>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div> |