File tree Expand file tree Collapse file tree 3 files changed +9
-0
lines changed
Expand file tree Collapse file tree 3 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -128,6 +128,7 @@ Add query parameters to the URL (`?parameter=value&otherparameter=value`):
128128- ` color` : (true/false) Enable or disable color.
129129- ` portrait` : (true/false) Enable or disable portrait mode.
130130- ` rate` : (integer, 100-...) Set the frame rate.
131+ - ` flip` : (true/false) Enable or disable flipping 180 degree.
131132
132133# # Tunneling
133134Tunneling with built-in Ngrok allows for streaming across different networks.
Original file line number Diff line number Diff line change @@ -28,6 +28,12 @@ function resizeVisibleCanvas() {
2828 visibleCanvas . style . width = containerWidth + "px" ;
2929 visibleCanvas . style . height = containerWidth / aspectRatio + "px" ;
3030 }
31+
32+ if ( flip ) {
33+ visibleCanvas . style . transform = "rotate(180deg)" ;
34+ } else {
35+ visibleCanvas . style . transform = "rotate(0deg)" ;
36+ }
3137}
3238function waiting ( message ) {
3339 // Clear the canvas
Original file line number Diff line number Diff line change @@ -4,6 +4,8 @@ const height = 1404;
44const rawCanvas = new OffscreenCanvas ( width , height ) ; // Define width and height as needed
55let portrait = getQueryParam ( 'portrait' ) ;
66portrait = portrait !== null ? portrait === 'true' : false ;
7+ let flip = getQueryParam ( 'flip' ) ;
8+ flip = flip !== null ? flip === 'true' : false ;
79let withColor = getQueryParam ( 'color' , 'true' ) ;
810withColor = withColor !== null ? withColor === 'true' : true ;
911let rate = parseInt ( getQueryParamOrDefault ( 'rate' , '200' ) , 10 ) ;
You can’t perform that action at this time.
0 commit comments