You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/1.docs/7.options.md
+25-1Lines changed: 25 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -481,12 +481,36 @@ Sets the location of what buttons. More information about the virual gamepad but
481
481
### `EJS_controlScheme`
482
482
483
483
- Type: `string`
484
-
- Default: ``
484
+
- Default: ``
485
485
486
486
Default behaviour (when option is undefined) not changed (core name will be used).
487
487
488
488
Available control schemes: `nes``gb``gba``snes``n64``gba``nds``vb``segaMD``segaCD``sega32x``segaMS``segaGG``segaSaturn``3do``atari2600``atari7800``lynx``jaguar``arcade``mame`
489
489
490
+
### `EJS_screenCapture`
491
+
492
+
Changes the default settings and buttons in the toolbar for screenshots and video recording.
493
+
494
+
- Type: `object`
495
+
- Default/Example:
496
+
497
+
```js
498
+
EJS_screenCapture = {
499
+
photo: {
500
+
source:"canvas", // or "retroarch" (note: setting to retroarch will ignore the format and just be png)
501
+
format:"png", // can also be `jpeg` or `webp` (note: safari doesn't support webp so it will default back to png if set)
502
+
upscale:1// can also be `0` which is native, any positive # is valid (note: this will upscale the canvas & frame size by this number).
503
+
},
504
+
video: {
505
+
format:"detect", // checks in order of `mp4` then `webm` to see if it's supported in the browser (note: will default to what is first supported)
506
+
upscale:1, // any positive # is valid (note: this will upscale the canvas & frames size by this number).
507
+
fps:30, // can also be 60
508
+
videoBitrate:2621440, // can be any valid bitrate.
0 commit comments