mirror of
https://github.com/KuekHaoYang/KVideo.git
synced 2026-08-19 02:33:43 +08:00
fix(player): expand the default player viewport
Remove the extra player shell, make the inline player full width on phones, align portrait web fullscreen to the top, and bump the app version to 4.8.2. Closes #154
This commit is contained in:
+16
-14
@@ -416,20 +416,22 @@ function PlayerContent() {
|
||||
className="min-w-[240px]"
|
||||
/>
|
||||
</div>
|
||||
<VideoPlayer
|
||||
playUrl={playUrl}
|
||||
videoId={videoId || undefined}
|
||||
currentEpisode={currentEpisode}
|
||||
onBack={() => router.back()}
|
||||
totalEpisodes={videoData?.episodes?.length || 0}
|
||||
onNextEpisode={handleNextEpisode}
|
||||
isReversed={isReversed}
|
||||
isPremium={isPremium}
|
||||
videoTitle={videoData?.vod_name || title || ''}
|
||||
episodeName={videoData?.episodes?.[currentEpisode]?.name || ''}
|
||||
externalTimeRef={playerTimeRef}
|
||||
onResolutionDetected={setDetectedResolution}
|
||||
/>
|
||||
<div className="-mx-4 sm:mx-0">
|
||||
<VideoPlayer
|
||||
playUrl={playUrl}
|
||||
videoId={videoId || undefined}
|
||||
currentEpisode={currentEpisode}
|
||||
onBack={() => router.back()}
|
||||
totalEpisodes={videoData?.episodes?.length || 0}
|
||||
onNextEpisode={handleNextEpisode}
|
||||
isReversed={isReversed}
|
||||
isPremium={isPremium}
|
||||
videoTitle={videoData?.vod_name || title || ''}
|
||||
episodeName={videoData?.episodes?.[currentEpisode]?.name || ''}
|
||||
externalTimeRef={playerTimeRef}
|
||||
onResolutionDetected={setDetectedResolution}
|
||||
/>
|
||||
</div>
|
||||
<div className="hidden lg:block">
|
||||
<VideoMetadata
|
||||
videoData={videoData}
|
||||
|
||||
Reference in New Issue
Block a user