File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -135,24 +135,28 @@ private string CreateDocument()
135135 {
136136 const string TEMPLATE_VIDEO_BODY = @"
137137<div class='media-panel'>
138- <video id='currentMedia' class='media-video' preload='metadata' controls>
138+ <video id='currentMedia' class='media-video' title='###MEDIA_TOOLTIP###' preload='metadata' controls>
139139 <source src='###VIDEO_URI###' type='video/mp4'/>
140140 </video>
141141</div>
142142" ;
143143 html += TEMPLATE_VIDEO_BODY
144- . Replace ( "###VIDEO_URI###" , WebUtility . HtmlEncode ( media . VideoUrl ) ) ;
144+ . Replace ( "###VIDEO_URI###" , WebUtility . HtmlEncode ( media . VideoUrl ) )
145+ . Replace ( "###MEDIA_TOOLTIP###" , WebUtility . HtmlEncode ( media . TooltipText ) ) ;
145146 }
146147 else
147148 {
148149 const string TEMPLATE_IMAGE_BODY = @"
149150<div class='media-panel media'>
150- <div id='currentMedia' class='media-image' style='background-image: url(###IMAGE_URI###)'>
151+ <div id='currentMedia' class='media-image'
152+ role='img' title='###MEDIA_TOOLTIP###'
153+ style='background-image: url(###IMAGE_URI###)'>
151154 </div>
152155</div>
153156" ;
154157 html += TEMPLATE_IMAGE_BODY
155- . Replace ( "###IMAGE_URI###" , WebUtility . HtmlEncode ( Uri . EscapeUriString ( media . FullSizeImageUrl ?? media . ThumbnailImageUrl ?? "" ) ) ) ;
158+ . Replace ( "###IMAGE_URI###" , WebUtility . HtmlEncode ( Uri . EscapeUriString ( media . FullSizeImageUrl ?? media . ThumbnailImageUrl ?? "" ) ) )
159+ . Replace ( "###MEDIA_TOOLTIP###" , WebUtility . HtmlEncode ( media . TooltipText ) ) ;
156160 }
157161
158162 return html ;
You can’t perform that action at this time.
0 commit comments