From ec34f0d9a208b7c54ac453e08b10695658549909 Mon Sep 17 00:00:00 2001
From: gnaegi <none@none>
Date: Tue, 14 Jun 2016 20:49:52 +0200
Subject: [PATCH] OO-2060 prevent calling of context menu on video elements

---
 .../java/org/olat/modules/video/ui/_content/video_preview.html  | 2 +-
 src/main/java/org/olat/modules/video/ui/_content/video_run.html | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/main/java/org/olat/modules/video/ui/_content/video_preview.html b/src/main/java/org/olat/modules/video/ui/_content/video_preview.html
index 4445da6917f..111f6c40380 100644
--- a/src/main/java/org/olat/modules/video/ui/_content/video_preview.html
+++ b/src/main/java/org/olat/modules/video/ui/_content/video_preview.html
@@ -1,6 +1,6 @@
 <div class="o_video_run o_block_large_bottom o_clearfix">
 	<div class="olatFlashMovieViewer">
-		<video id="$r.getId("o_vid")" width="$width" height="$height" controls  autoplay class="o_video">			
+		<video id="$r.getId("o_vid")" width="$width" height="$height" controls  autoplay preload="none" oncontextmenu="return false;" class="o_video">			
 	    	<source type="video/mp4" src="$mediaUrl/$filename" />
 		</video>
 
diff --git a/src/main/java/org/olat/modules/video/ui/_content/video_run.html b/src/main/java/org/olat/modules/video/ui/_content/video_run.html
index 075ccaea53f..bb2e7d01598 100644
--- a/src/main/java/org/olat/modules/video/ui/_content/video_run.html
+++ b/src/main/java/org/olat/modules/video/ui/_content/video_run.html
@@ -1,6 +1,6 @@
 <div class="o_video_run o_block_large_bottom o_clearfix">
 	<div class="olatFlashMovieViewer">
-		<video id="$r.getId("o_vid")" width="$width" height="$height" poster="$masterUrl/poster.jpg" controls  preload="none" #if( $autoplay ) autoplay #end class="o_video">			
+		<video id="$r.getId("o_vid")" width="$width" height="$height" poster="$masterUrl/poster.jpg" controls  preload="none" oncontextmenu="return false;" #if( $autoplay ) autoplay #end class="o_video">			
 	    	#foreach($video in $videos)
 	    		#set($position = $velocityCount - 1)
 	    		<source type="video/mp4" src="$transcodedUrl/${video.getResolution()}video.mp4" title="$displayTitles.get($position) ($r.formatBytes(${video.getSize()}))" />
-- 
GitLab