Dregu / visio

Ultra fast live streaming raw h264 from Raspberry Pi to multiple browser clients with Node, websockets and Broadway
MIT License
37 stars 13 forks source link

Black background color is better #6

Open VigibotDev opened 6 years ago

VigibotDev commented 6 years ago

I found a problem on black scenes with Microsoft EDGE only. The black zone of picture #000000 are displayed as #0D0E1B (like there is a transparent video) here is the modification I do to solve this :

(root|/var/www/visio) git diff
diff --git a/visio/Player.js b/visio/Player.js
index ff2e649..a042f7f 100644
--- a/visio/Player.js
+++ b/visio/Player.js
@@ -257,7 +257,7 @@ p.decode(<binary>);
       obj.canvas = document.createElement('canvas');
       obj.canvas.width = width;
       obj.canvas.height = height;
-      obj.canvas.style.backgroundColor = "#0D0E1B";
+      obj.canvas.style.backgroundColor = "#000000";

       return obj;