From 5516156cc9c8c80bcc2be0e7543a225027d114b5 Mon Sep 17 00:00:00 2001 From: Baroshem Date: Tue, 29 Aug 2023 08:19:58 +0200 Subject: [PATCH] feat-#145: hide context menu --- src/runtime/components/CldVideoPlayer.vue | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/runtime/components/CldVideoPlayer.vue b/src/runtime/components/CldVideoPlayer.vue index a21db90..37d537a 100644 --- a/src/runtime/components/CldVideoPlayer.vue +++ b/src/runtime/components/CldVideoPlayer.vue @@ -19,6 +19,7 @@ export interface CloudinaryVideoPlayerOptions { publicId: string; secure?: boolean; transformation?: Array | object; + hideContextMenu: boolean; } export interface CloudinaryVideoPlayerOptionsColors { @@ -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; @@ -96,6 +103,7 @@ const { version, quality, width, + hideContextMenu, } = props as CldVideoPlayerProps; const playerTransformations = Array.isArray(transformation) @@ -182,6 +190,7 @@ const handleOnLoad = () => { secure: true, transformation: playerTransformations, ...logoOptions, + hideContextMenu, }; if (typeof colors === "object") {