Skip to content

Commit 88b13b5

Browse files
ghostdevvheronet
andauthored
fix: video player aspect ratio (#109)
Co-authored-by: heronet <sirat4757@gmail.com>
1 parent b671b6a commit 88b13b5

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

packages/svelte-cloudinary/src/components/CldVideoPlayer.svelte

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@
157157
muted,
158158
publicId,
159159
secure: true,
160+
aspectRatio: `${width}:${height}`,
160161
transformation: playerTransformations,
161162
...logoOptions
162163
};

packages/svelte-cloudinary/src/types/player.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ export interface CloudinaryVideoPlayerOptions {
1212
muted?: boolean;
1313
publicId: string;
1414
secure?: boolean;
15+
aspectRatio?: string;
1516
transformation?: Array<object> | object;
1617
}
1718

0 commit comments

Comments
 (0)