Skip to content
Snippets Groups Projects
Commit ec34f0d9 authored by gnaegi's avatar gnaegi
Browse files

OO-2060 prevent calling of context menu on video elements

parent cdbba681
No related branches found
No related tags found
No related merge requests found
<div class="o_video_run o_block_large_bottom o_clearfix"> <div class="o_video_run o_block_large_bottom o_clearfix">
<div class="olatFlashMovieViewer"> <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" /> <source type="video/mp4" src="$mediaUrl/$filename" />
</video> </video>
......
<div class="o_video_run o_block_large_bottom o_clearfix"> <div class="o_video_run o_block_large_bottom o_clearfix">
<div class="olatFlashMovieViewer"> <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) #foreach($video in $videos)
#set($position = $velocityCount - 1) #set($position = $velocityCount - 1)
<source type="video/mp4" src="$transcodedUrl/${video.getResolution()}video.mp4" title="$displayTitles.get($position) ($r.formatBytes(${video.getSize()}))" /> <source type="video/mp4" src="$transcodedUrl/${video.getResolution()}video.mp4" title="$displayTitles.get($position) ($r.formatBytes(${video.getSize()}))" />
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment