You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
70 lines
6.6 KiB
HTML
70 lines
6.6 KiB
HTML
<div style="height: 100%" *ngIf="playlist.length > 0 && show_player">
|
|
<div style="height: 100%" [ngClass]="(currentItem.type === 'audio/mp3') ? null : 'container-video'">
|
|
<div style="max-width: 100%; margin-left: 0px; height: 100%">
|
|
<mat-drawer-container style="height: 100%" class="example-container" autosize>
|
|
<div style="height: fit-content" [ngClass]="(currentItem.type === 'audio/mp3') ? 'audio-col' : 'video-col'">
|
|
<vg-player style="height: fit-content; max-height: 75vh" (onPlayerReady)="onPlayerReady($event)" [style.background-color]="(currentItem.type === 'audio/mp3') ? postsService.theme.drawer_color : 'black'">
|
|
<video [ngClass]="(currentItem.type === 'audio/mp3') ? 'audio-styles' : 'video-styles'" #media class="video-player" [vgMedia]="$any(media)" [src]="currentItem.src" id="singleVideo" preload="auto" controls playsinline>
|
|
</video>
|
|
<app-skip-ad-button *ngIf="postsService['config']['API']['use_sponsorblock_API'] && api && playlist?.length > 0 && playlist[currentIndex]['type'] === 'video/mp4'" (setPlaybackTimestamp)="setPlaybackTimestamp($event)" [current_video]="playlist[currentIndex]" [playback_timestamp]="api.currentTime" class="skip-ad-button"></app-skip-ad-button>
|
|
</vg-player>
|
|
</div>
|
|
<div style="height: fit-content; width: 100%; margin-top: 10px;">
|
|
<div class="container">
|
|
<div class="row">
|
|
<div class="col-2 col-lg-1">
|
|
<ng-container *ngIf="db_file">{{db_file['local_view_count'] ? db_file['local_view_count']+1 : 1}} <ng-container i18n="View count label">views</ng-container></ng-container>
|
|
</div>
|
|
<div style="white-space: pre-line;" class="col-8 col-lg-9">
|
|
<ng-container *ngIf="db_file && db_file['description']">
|
|
<p>
|
|
<app-see-more [text]="db_file['description']"></app-see-more>
|
|
</p>
|
|
</ng-container>
|
|
<ng-container *ngIf="!db_file || !db_file['description']">
|
|
<p style="text-align: center;">
|
|
No description available.
|
|
</p>
|
|
</ng-container>
|
|
</div>
|
|
<div class="col-2">
|
|
<ng-container *ngIf="db_playlist">
|
|
<button (click)="downloadContent()" [disabled]="downloading" mat-icon-button><mat-icon>save</mat-icon><mat-spinner *ngIf="downloading" class="spinner" [diameter]="35"></mat-spinner></button>
|
|
<button *ngIf="(!postsService.isLoggedIn || postsService.permissions.includes('sharing')) && !auto" (click)="openShareDialog()" mat-icon-button><mat-icon>share</mat-icon></button>
|
|
</ng-container>
|
|
<ng-container *ngIf="db_file">
|
|
<button (click)="downloadFile()" [disabled]="downloading" mat-icon-button><mat-icon>cloud_download</mat-icon><mat-spinner *ngIf="downloading" class="spinner" [diameter]="35"></mat-spinner></button>
|
|
<button *ngIf="!postsService.isLoggedIn || postsService.permissions.includes('sharing')" (click)="openShareDialog()" mat-icon-button><mat-icon>share</mat-icon></button>
|
|
</ng-container>
|
|
<ng-container *ngIf="db_file || playlist[currentIndex]"></ng-container>
|
|
<button (click)="openFileInfoDialog()" *ngIf="db_file || db_playlist" mat-icon-button><mat-icon>info</mat-icon></button>
|
|
<button *ngIf="db_file && db_file.url.includes('twitch.tv')" (click)="drawer.toggle()" mat-icon-button><mat-icon>chat</mat-icon></button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div style="height: fit-content; width: 100%; margin-top: 10px;">
|
|
<mat-button-toggle-group cdkDropList [cdkDropListSortingDisabled]="true" (cdkDropListDropped)="drop($event)" style="width: 80%; left: 9%" vertical name="videoSelect" aria-label="Video Select" #group="matButtonToggleGroup">
|
|
<mat-button-toggle cdkDrag *ngFor="let playlist_item of playlist; let i = index" [checked]="currentItem.title === playlist_item.title" (click)="onClickPlaylistItem(playlist_item, i)" class="toggle-button" [value]="playlist_item.title">{{playlist_item.label}}</mat-button-toggle>
|
|
</mat-button-toggle-group>
|
|
</div>
|
|
|
|
<app-concurrent-stream *ngIf="db_file && api && postsService.config" (setPlaybackRate)="setPlaybackRate($event)" (togglePlayback)="togglePlayback($event)" (setPlaybackTimestamp)="setPlaybackTimestamp($event)" [playing]="api.state === 'playing'" [uid]="uid" [playback_timestamp]="api.time.current/1000" [server_mode]="!postsService.config.Advanced.multi_user_mode || postsService.isLoggedIn"></app-concurrent-stream>
|
|
|
|
<mat-drawer #drawer class="example-sidenav" mode="side" position="end" [opened]="db_file && db_file['chat_exists']">
|
|
<ng-container *ngIf="api_ready && db_file && db_file.url.includes('twitch.tv')">
|
|
<app-twitch-chat #twitchchat [db_file]="db_file" [current_timestamp]="api.currentTime" [sub]="subscription"></app-twitch-chat>
|
|
</ng-container>
|
|
</mat-drawer>
|
|
|
|
<!-- <div class="update-playlist-button-div" *ngIf="id && playlistChanged()">
|
|
<div class="spinner-div">
|
|
<mat-spinner *ngIf="playlist_updating" [diameter]="25"></mat-spinner>
|
|
</div>
|
|
<button color="primary" [disabled]="playlist_updating" (click)="updatePlaylist()" mat-raised-button><ng-container i18n="Playlist save changes button">Save changes</ng-container> <mat-icon>update</mat-icon></button>
|
|
|
|
</div> -->
|
|
</mat-drawer-container>
|
|
</div>
|
|
</div>
|
|
</div> |