Skip to content

Commit 3e4f57f

Browse files
authored
add EJS_screenCapture (#62)
* add `EJS_screenCapture` * clarify docs * random c * rename to upscale
1 parent fdd838e commit 3e4f57f

File tree

1 file changed

+25
-1
lines changed

1 file changed

+25
-1
lines changed

content/1.docs/7.options.md

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -481,12 +481,36 @@ Sets the location of what buttons. More information about the virual gamepad but
481481
### `EJS_controlScheme`
482482

483483
- Type: `string`
484-
- Default: ``
484+
- Default: ` `
485485

486486
Default behaviour (when option is undefined) not changed (core name will be used).
487487

488488
Available control schemes: `nes` `gb` `gba` `snes` `n64` `gba` `nds` `vb` `segaMD` `segaCD` `sega32x` `segaMS` `segaGG` `segaSaturn` `3do` `atari2600` `atari7800` `lynx` `jaguar` `arcade` `mame`
489489

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.
509+
audioBitrate: 196608 // can be any valid bitrate.
510+
}
511+
}
512+
```
513+
490514
### `EJS_Buttons`
491515

492516
#### Version 4.2.1 and earlier

0 commit comments

Comments
 (0)