2020-02-16 19:30:00 +01:00
|
|
|
<template>
|
2020-06-04 16:30:01 +02:00
|
|
|
<ft-card class="watchVideoInfo">
|
|
|
|
<div>
|
|
|
|
<p
|
|
|
|
class="videoTitle"
|
2020-02-16 19:30:00 +01:00
|
|
|
>
|
2020-06-04 16:30:01 +02:00
|
|
|
{{ title }}
|
|
|
|
</p>
|
|
|
|
<div
|
|
|
|
class="channelInformation"
|
2020-02-16 19:30:00 +01:00
|
|
|
>
|
2020-06-04 16:30:01 +02:00
|
|
|
<div
|
|
|
|
class="profileRow"
|
|
|
|
>
|
|
|
|
<div>
|
|
|
|
<img
|
|
|
|
:src="channelThumbnail"
|
|
|
|
class="channelThumbnail"
|
|
|
|
@click="goToChannel"
|
|
|
|
>
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<div
|
|
|
|
class="channelName"
|
|
|
|
@click="goToChannel"
|
|
|
|
>
|
|
|
|
{{ channelName }}
|
|
|
|
</div>
|
|
|
|
<ft-button
|
|
|
|
:label="subscribedText"
|
|
|
|
class="subscribeButton"
|
|
|
|
background-color="var(--primary-color)"
|
2020-08-24 04:56:33 +02:00
|
|
|
text-color="var(--text-with-main-color)"
|
2020-06-04 16:30:01 +02:00
|
|
|
@click="handleSubscription"
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2020-02-16 19:30:00 +01:00
|
|
|
</div>
|
2020-06-04 16:30:01 +02:00
|
|
|
<div>
|
2020-06-19 15:43:08 +02:00
|
|
|
<div class="datePublished">
|
2020-10-31 15:57:51 +01:00
|
|
|
{{ publishedString }} {{ dateString }}
|
2020-06-19 15:43:08 +02:00
|
|
|
</div>
|
|
|
|
<div class="viewCount">
|
2020-06-04 16:30:01 +02:00
|
|
|
{{ parsedViewCount }}
|
2020-06-19 15:43:08 +02:00
|
|
|
</div>
|
2022-02-01 16:24:14 +01:00
|
|
|
<div
|
|
|
|
v-if="!hideVideoLikesAndDislikes"
|
|
|
|
class="likeBarContainer"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="likeSection"
|
|
|
|
>
|
|
|
|
<div>
|
|
|
|
<span class="likeCount"><font-awesome-icon icon="thumbs-up" /> {{ parsedLikeCount }}</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!--
|
|
|
|
// Uncomment if suitable solution for bringing back dislikes is introduced
|
2020-11-23 20:28:38 +01:00
|
|
|
<div
|
|
|
|
v-if="!hideVideoLikesAndDislikes"
|
2020-11-24 03:57:03 +01:00
|
|
|
class="likeBarContainer"
|
2020-11-23 20:28:38 +01:00
|
|
|
>
|
2020-06-04 16:30:01 +02:00
|
|
|
<div
|
2020-06-16 18:11:23 +02:00
|
|
|
class="likeSection"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="likeBar"
|
|
|
|
:style="{ background: `linear-gradient(to right, var(--accent-color) ${likePercentageRatio}%, #9E9E9E ${likePercentageRatio}%` }"
|
2020-06-19 22:20:06 +02:00
|
|
|
/>
|
2020-06-17 13:37:36 +02:00
|
|
|
<div>
|
2021-10-06 23:09:08 +02:00
|
|
|
<span class="likeCount"><font-awesome-icon icon="thumbs-up" /> {{ parsedLikeCount }}</span>
|
|
|
|
<span class="dislikeCount"><font-awesome-icon icon="thumbs-down" /> {{ parsedDislikeCount }}</span>
|
2020-06-17 13:37:36 +02:00
|
|
|
</div>
|
2020-06-04 16:30:01 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
2022-02-01 16:24:14 +01:00
|
|
|
-->
|
2020-06-16 18:11:23 +02:00
|
|
|
<div class="videoOptions">
|
2021-01-15 00:03:23 +01:00
|
|
|
<ft-icon-button
|
|
|
|
v-if="!isUpcoming"
|
|
|
|
:title="$t('Video.Save Video')"
|
|
|
|
icon="star"
|
|
|
|
class="option"
|
|
|
|
:theme="favoriteIconTheme"
|
|
|
|
@click="toggleSave"
|
|
|
|
/>
|
2021-06-13 17:31:43 +02:00
|
|
|
<ft-icon-button
|
|
|
|
v-if="externalPlayer !== ''"
|
|
|
|
:title="$t('Video.External Player.OpenInTemplate').replace('$', externalPlayer)"
|
|
|
|
icon="external-link-alt"
|
|
|
|
class="option"
|
|
|
|
theme="secondary"
|
|
|
|
@click="handleExternalPlayer"
|
|
|
|
/>
|
2020-10-08 21:01:46 +02:00
|
|
|
<ft-icon-button
|
|
|
|
v-if="!isUpcoming && downloadLinks.length > 0"
|
|
|
|
:title="$t('Video.Download Video')"
|
|
|
|
class="option"
|
|
|
|
theme="secondary"
|
|
|
|
icon="download"
|
|
|
|
:dropdown-names="downloadLinkNames"
|
|
|
|
:dropdown-values="downloadLinkValues"
|
2022-01-30 18:49:16 +01:00
|
|
|
:related-video-title="title"
|
|
|
|
@click="downloadMedia"
|
2020-10-08 21:01:46 +02:00
|
|
|
/>
|
2020-06-16 18:11:23 +02:00
|
|
|
<ft-icon-button
|
2020-09-16 04:07:54 +02:00
|
|
|
v-if="!isUpcoming"
|
2020-08-07 02:20:42 +02:00
|
|
|
:title="$t('Change Format.Change Video Formats')"
|
2020-06-16 18:11:23 +02:00
|
|
|
class="option"
|
|
|
|
theme="secondary"
|
|
|
|
icon="file-video"
|
|
|
|
:dropdown-names="formatTypeNames"
|
|
|
|
:dropdown-values="formatTypeValues"
|
|
|
|
@click="handleFormatChange"
|
|
|
|
/>
|
2020-06-17 15:36:44 +02:00
|
|
|
<ft-share-button
|
|
|
|
:id="id"
|
2020-09-12 05:20:26 +02:00
|
|
|
:get-timestamp="getTimestamp"
|
2021-05-25 19:39:34 +02:00
|
|
|
:playlist-id="playlistId"
|
2020-06-19 22:20:06 +02:00
|
|
|
class="option"
|
2020-06-17 15:36:44 +02:00
|
|
|
/>
|
2020-06-16 18:11:23 +02:00
|
|
|
</div>
|
2020-02-16 19:30:00 +01:00
|
|
|
</div>
|
|
|
|
</ft-card>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script src="./watch-video-info.js" />
|
2020-06-04 16:30:01 +02:00
|
|
|
<style scoped src="./watch-video-info.sass" lang="sass" />
|