lib/onebox/engine/audio_onebox.rb in onebox-2.2.4 vs lib/onebox/engine/audio_onebox.rb in onebox-2.2.5
- old
+ new
@@ -13,10 +13,10 @@
def to_html
escaped_url = ::Onebox::Helpers.normalize_url_for_output(@url)
<<-HTML
- <audio controls>
+ <audio controls #{@options[:disable_media_download_controls] ? 'controlslist="nodownload"' : ""}>
<source src="#{escaped_url}">
<a href="#{escaped_url}">#{@url}</a>
</audio>
HTML
end