Skip to content

Commit

Permalink
Merge pull request #148 from nuxt-modules/feat/#145
Browse files Browse the repository at this point in the history
feat-#145: hide context menu
  • Loading branch information
Baroshem authored Oct 10, 2023
2 parents 1807e80 + 5516156 commit 684d2ad
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/runtime/components/CldVideoPlayer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export interface CloudinaryVideoPlayerOptions {
publicId: string;
secure?: boolean;
transformation?: Array<object> | object;
hideContextMenu: boolean;
}
export interface CloudinaryVideoPlayerOptionsColors {
Expand All @@ -41,7 +42,13 @@ export interface CldVideoPlayerPropsLogo {
export type CldVideoPlayerProps = Pick<
CloudinaryVideoPlayerOptions,
"colors" | "controls" | "fontFace" | "loop" | "muted" | "transformation"
| "colors"
| "controls"
| "fontFace"
| "loop"
| "muted"
| "transformation"
| "hideContextMenu"
> & {
autoPlay?: string;
className?: string;
Expand Down Expand Up @@ -96,6 +103,7 @@ const {
version,
quality,
width,
hideContextMenu,
} = props as CldVideoPlayerProps;
const playerTransformations = Array.isArray(transformation)
Expand Down Expand Up @@ -182,6 +190,7 @@ const handleOnLoad = () => {
secure: true,
transformation: playerTransformations,
...logoOptions,
hideContextMenu,
};
if (typeof colors === "object") {
Expand Down

0 comments on commit 684d2ad

Please sign in to comment.