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