# HG changeset patch # User Sebastien Jodogne # Date 1605778173 -3600 # Node ID e4589378ad8bee132eadc7b439529f3e74fc447a # Parent 05b55b89a134e9dec93b746932fc82d1ea5e3757 warning message about unsupported videos diff -r 05b55b89a134 -r e4589378ad8b Applications/StoneWebViewer/WebApplication/app.js --- a/Applications/StoneWebViewer/WebApplication/app.js Thu Nov 19 10:21:20 2020 +0100 +++ b/Applications/StoneWebViewer/WebApplication/app.js Thu Nov 19 10:29:33 2020 +0100 @@ -89,8 +89,8 @@ } } else if (newVal.type == stone.ThumbnailType.VIDEO) { - // TODO - console.warn('Videos are not supported yet by the Stone Web viewer'); + this.status = 'video'; + console.warn('Videos are not supported by the Stone Web viewer yet'); } } }, diff -r 05b55b89a134 -r e4589378ad8b Applications/StoneWebViewer/WebApplication/index.html --- a/Applications/StoneWebViewer/WebApplication/index.html Thu Nov 19 10:21:20 2020 +0100 +++ b/Applications/StoneWebViewer/WebApplication/index.html Thu Nov 19 10:29:33 2020 +0100 @@ -592,11 +592,12 @@ - + +
@@ -617,7 +618,7 @@
diff -r 05b55b89a134 -r e4589378ad8b Applications/StoneWebViewer/WebApplication/pdf-viewer.js --- a/Applications/StoneWebViewer/WebApplication/pdf-viewer.js Thu Nov 19 10:21:20 2020 +0100 +++ b/Applications/StoneWebViewer/WebApplication/pdf-viewer.js Thu Nov 19 10:29:33 2020 +0100 @@ -168,6 +168,7 @@ this.pdfDoc.getPage(pageNum).then(function(page) { var viewport = page.getViewport({scale: that.scale}); + that.canvas.style['background-color'] = 'white'; // avoids flickering while the page changes that.canvas.height = viewport.height; that.canvas.width = viewport.width;