Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const CldVideoPlayer = (props: CldVideoPlayerProps) => {
onPlay,
onEnded,
width,
} = props as CldVideoPlayerProps;
} = props;

const uniqueId = useId();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<CloudinaryVideoPlayerOptions, "cloud_name" | "autoplayMode" | "publicId" | "secure" | "showLogo" | "logoImageUrl" | "logoOnclickUrl"> & {
export type CldVideoPlayerProps = Omit<GetVideoPlayerOptions, "cloud_name" | "autoplayMode" | "publicId" | "secure" | "showLogo" | "logoImageUrl" | "logoOnclickUrl"> & {
Comment thread
colbyfayock marked this conversation as resolved.
className?: string;
config?: ConfigOptions;
id?: string;
Expand All @@ -31,4 +30,4 @@ export interface CldVideoPlayerPropsLogo {
imageUrl?: CloudinaryVideoPlayerOptionsLogo['logoImageUrl'];
logo?: boolean;
onClickUrl?: CloudinaryVideoPlayerOptionsLogo['logoOnclickUrl'];
}
}