fix: cropped square videos
Some checks are pending
V3 Preview Deployment / Deploy-Preview (push) Waiting to run

This commit is contained in:
Kentai Radiquum 2025-03-19 00:36:04 +05:00
parent 5270c50c7b
commit 7f47ca3f97
Signed by: Radiquum
GPG key ID: 858E8EE696525EED
2 changed files with 3 additions and 6 deletions

View file

@ -80,11 +80,6 @@ export default function Page(props: { children: any, className?: string }) {
<media-controller <media-controller
breakpoints="md:480" breakpoints="md:480"
defaultsubtitles="{{defaultsubtitles}}"
defaultduration="{{defaultduration}}"
gesturesdisabled="{{disabled}}"
hotkeys="{{hotkeys}}"
nohotkeys="{{nohotkeys}}"
defaultstreamtype="on-demand" defaultstreamtype="on-demand"
> >
<slot name="media" slot="media"></slot> <slot name="media" slot="media"></slot>

View file

@ -268,14 +268,16 @@ export const ReleasePlayerCustom = (props: {
/> />
</div> </div>
{playerProps.useCustom ? {playerProps.useCustom ?
<MediaThemeSutro className="w-full aspect-video"> <MediaThemeSutro className="object-none w-full aspect-video">
{playerProps.type == "hls" ? {playerProps.type == "hls" ?
<HlsVideo <HlsVideo
className="object-contain h-full aspect-video"
slot="media" slot="media"
src={playerProps.src} src={playerProps.src}
poster={playerProps.poster} poster={playerProps.poster}
/> />
: <video : <video
className="object-contain h-full aspect-video"
slot="media" slot="media"
src={playerProps.src} src={playerProps.src}
poster={playerProps.poster} poster={playerProps.poster}