diff options
| author | Dan Allen <dan.j.allen@gmail.com> | 2019-09-09 23:57:49 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-09-09 23:57:49 -0600 |
| commit | b263dce45e0f8cdcd8963771cda87c26745e3529 (patch) | |
| tree | b1a262cc047fcc4376c2911a6d4eaf79a2851903 /lib | |
| parent | 0eeec59e28762cb4f37cf83a73d70007dc10bbff (diff) | |
resolves #3408 add support for muted option on self-hosted video (PR #3411)
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/asciidoctor/converter/html5.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/asciidoctor/converter/html5.rb b/lib/asciidoctor/converter/html5.rb index 5089166d..72f8f7e8 100644 --- a/lib/asciidoctor/converter/html5.rb +++ b/lib/asciidoctor/converter/html5.rb @@ -1089,7 +1089,7 @@ Your browser does not support the audio tag. time_anchor = (start_t || end_t) ? %(#t=#{start_t || ''}#{end_t ? ",#{end_t}" : ''}) : '' %(<div#{id_attribute}#{class_attribute}>#{title_element} <div class="content"> -<video src="#{node.media_uri(node.attr 'target')}#{time_anchor}"#{width_attribute}#{height_attribute}#{poster_attribute}#{(node.option? 'autoplay') ? (append_boolean_attribute 'autoplay', xml) : ''}#{(node.option? 'nocontrols') ? '' : (append_boolean_attribute 'controls', xml)}#{(node.option? 'loop') ? (append_boolean_attribute 'loop', xml) : ''}#{preload_attribute}> +<video src="#{node.media_uri(node.attr 'target')}#{time_anchor}"#{width_attribute}#{height_attribute}#{poster_attribute}#{(node.option? 'autoplay') ? (append_boolean_attribute 'autoplay', xml) : ''}#{(node.option? 'muted') ? (append_boolean_attribute 'muted', xml) : ''}#{(node.option? 'nocontrols') ? '' : (append_boolean_attribute 'controls', xml)}#{(node.option? 'loop') ? (append_boolean_attribute 'loop', xml) : ''}#{preload_attribute}> Your browser does not support the video tag. </video> </div> |
