diff --git a/next-cloudinary/src/components/CldVideoPlayer/CldVideoPlayer.tsx b/next-cloudinary/src/components/CldVideoPlayer/CldVideoPlayer.tsx index c45bc79a..b327aa43 100644 --- a/next-cloudinary/src/components/CldVideoPlayer/CldVideoPlayer.tsx +++ b/next-cloudinary/src/components/CldVideoPlayer/CldVideoPlayer.tsx @@ -26,7 +26,7 @@ const CldVideoPlayer = (props: CldVideoPlayerProps) => { onPlay, onEnded, width, - } = props as CldVideoPlayerProps; + } = props; const uniqueId = useId(); diff --git a/next-cloudinary/src/components/CldVideoPlayer/CldVideoPlayer.types.ts b/next-cloudinary/src/components/CldVideoPlayer/CldVideoPlayer.types.ts index 0dd0b9b5..03ef6800 100644 --- a/next-cloudinary/src/components/CldVideoPlayer/CldVideoPlayer.types.ts +++ b/next-cloudinary/src/components/CldVideoPlayer/CldVideoPlayer.types.ts @@ -2,14 +2,13 @@ import { MutableRefObject } from 'react'; import { CloudinaryVideoPlayer, CloudinaryVideoPlayerOptionsLogo, - CloudinaryVideoPlayerOptions } from '@cloudinary-util/types'; -import { ConfigOptions } from "@cloudinary-util/url-loader"; +import { ConfigOptions, GetVideoPlayerOptions } from "@cloudinary-util/url-loader"; import { GetCldImageUrlOptions } from '../../helpers/getCldImageUrl'; import { GetCldVideoUrlOptions } from '../../helpers/getCldVideoUrl'; -export type CldVideoPlayerProps = Omit & { +export type CldVideoPlayerProps = Omit & { className?: string; config?: ConfigOptions; id?: string; @@ -31,4 +30,4 @@ export interface CldVideoPlayerPropsLogo { imageUrl?: CloudinaryVideoPlayerOptionsLogo['logoImageUrl']; logo?: boolean; onClickUrl?: CloudinaryVideoPlayerOptionsLogo['logoOnclickUrl']; -} \ No newline at end of file +}