2020-02-16 18:30:00 +00:00
|
|
|
<template>
|
|
|
|
<div>
|
|
|
|
<ft-loader
|
|
|
|
v-if="isLoading"
|
|
|
|
:fullscreen="true"
|
|
|
|
/>
|
|
|
|
<ft-video-player
|
2020-02-19 03:31:10 +00:00
|
|
|
v-if="!isLoading && !hidePlayer"
|
2020-02-18 20:59:01 +00:00
|
|
|
:dash-src="dashSrc"
|
2020-06-01 02:47:22 +00:00
|
|
|
:source-list="activeSourceList"
|
2020-02-18 20:59:01 +00:00
|
|
|
:caption-list="captionSourceList"
|
|
|
|
:storyboard-src="videoStoryboardSrc"
|
2020-02-19 03:31:10 +00:00
|
|
|
:format="activeFormat"
|
2020-06-01 02:47:22 +00:00
|
|
|
:thumbnail="thumbnail"
|
2020-02-16 18:30:00 +00:00
|
|
|
class="videoPlayer"
|
2020-02-18 20:59:01 +00:00
|
|
|
:class="{ theatrePlayer: useTheatreMode }"
|
2020-02-19 03:31:10 +00:00
|
|
|
ref="videoPlayer"
|
2020-05-17 20:12:58 +00:00
|
|
|
@ended="handleVideoEnded"
|
2020-02-21 18:31:32 +00:00
|
|
|
@error="handleVideoError"
|
2020-02-16 18:30:00 +00:00
|
|
|
/>
|
|
|
|
<watch-video-info
|
|
|
|
v-if="!isLoading"
|
|
|
|
:id="videoId"
|
|
|
|
:title="videoTitle"
|
|
|
|
:channel-id="channelId"
|
|
|
|
:channel-name="channelName"
|
|
|
|
:channel-thumbnail="channelThumbnail"
|
2020-06-16 21:42:38 +00:00
|
|
|
:published="videoPublished"
|
2020-02-16 18:30:00 +00:00
|
|
|
:subscription-count-text="channelSubscriptionCountText"
|
|
|
|
:like-count="videoLikeCount"
|
|
|
|
:dislike-count="videoDislikeCount"
|
|
|
|
:view-count="videoViewCount"
|
2020-02-18 20:59:01 +00:00
|
|
|
@theatreMode="toggleTheatreMode"
|
2020-02-16 18:30:00 +00:00
|
|
|
class="watchVideo"
|
2020-02-18 20:59:01 +00:00
|
|
|
:class="{ theatreWatchVideo: useTheatreMode }"
|
2020-02-16 18:30:00 +00:00
|
|
|
/>
|
|
|
|
<watch-video-description
|
|
|
|
v-if="!isLoading"
|
|
|
|
:published="videoPublished"
|
|
|
|
:description="videoDescription"
|
|
|
|
:description-html="videoDescriptionHtml"
|
|
|
|
class="watchVideo"
|
2020-02-18 20:59:01 +00:00
|
|
|
:class="{ theatreWatchVideo: useTheatreMode }"
|
2020-02-16 18:30:00 +00:00
|
|
|
/>
|
|
|
|
<watch-video-comments
|
2020-05-23 21:29:42 +00:00
|
|
|
v-if="!isLoading && !isLive"
|
2020-02-16 18:30:00 +00:00
|
|
|
:id="videoId"
|
|
|
|
class="watchVideo"
|
2020-02-18 20:59:01 +00:00
|
|
|
:class="{ theatreWatchVideo: useTheatreMode }"
|
2020-02-16 18:30:00 +00:00
|
|
|
/>
|
2020-05-23 21:29:42 +00:00
|
|
|
<watch-video-live-chat
|
|
|
|
v-if="!isLoading && isLive"
|
|
|
|
:video-id="videoId"
|
|
|
|
:channel-name="channelName"
|
|
|
|
class="watchVideoSideBar watchVideoPlaylist"
|
|
|
|
:class="{ theatrePlaylist: useTheatreMode }"
|
|
|
|
/>
|
2020-05-17 20:12:58 +00:00
|
|
|
<watch-video-playlist
|
|
|
|
v-if="watchingPlaylist"
|
|
|
|
v-show="!isLoading"
|
|
|
|
:playlist-id="playlistId"
|
|
|
|
:video-id="videoId"
|
|
|
|
ref="watchVideoPlaylist"
|
|
|
|
class="watchVideoSideBar watchVideoPlaylist"
|
|
|
|
:class="{ theatrePlaylist: useTheatreMode }"
|
|
|
|
/>
|
2020-02-16 18:30:00 +00:00
|
|
|
<watch-video-recommendations
|
|
|
|
v-if="!isLoading"
|
|
|
|
:data="recommendedVideos"
|
2020-05-17 20:12:58 +00:00
|
|
|
class="watchVideoSideBar watchVideoRecommendations"
|
|
|
|
:class="{
|
|
|
|
theatreRecommendations: useTheatreMode,
|
2020-05-23 21:29:42 +00:00
|
|
|
watchVideoRecommendationsLowerCard: watchingPlaylist || isLive,
|
|
|
|
watchVideoRecommendationsNoCard: !watchingPlaylist || !isLive
|
2020-05-17 20:12:58 +00:00
|
|
|
}"
|
2020-02-16 18:30:00 +00:00
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script src="./Watch.js" />
|
|
|
|
<style scoped src="./Watch.css" />
|