id stringlengths 16 145 | text stringlengths 1 179k | title stringclasses 1
value |
|---|---|---|
Electron/web-contents8_265_0.txt | Changes the title of the DevTools window to ` title ` . This will only be
visible if DevTools is opened in ` undocked ` or ` detach ` mode.
#### ` contents.toggleDevTools() ` â | |
Electron/web-contents8_188_0.txt |
const win = new BrowserWindow()
win.webContents.on('did-finish-load', async () => {
const key = await win.webContents.insertCSS('html, body { background-color: #f00; }')
win.webContents.removeInsertedCSS(key)
})
#### ` contents.executeJavaScript(code[, userGestu... | |
Electron/Using_Screen_Capture8_73_0.txt | css
#video {
border: 1px solid #999;
width: 98%;
max-width: 860px;
}
#log {
width: 25rem;
height: 15rem;
border: 1px solid black;
padding: 0.5rem;
overflow: scroll;
}
| |
Electron/web-contents8_332_0.txt | A ` Session ` used by this webContents.
#### ` contents.navigationHistory ` Readonly â | |
Electron/web-contents8_80_0.txt | #### Event: 'input-event' â
Returns: | |
Electron/recording-the-entire-desktop-in-angular-98_73_0.txt | more hot questions
Question feed | |
Electron/web-contents8_49_0.txt | This event will not emit when the navigation is started programmatically with
APIs like ` webContents.loadURL ` and ` webContents.back ` .
It is also not emitted for in-page navigations, such as clicking anchor links
or updating the ` window.location.hash ` . Use ` did-navigate-in-page ` event
for this purpose. | |
Electron/Electron_6_14.txt | nds of the normal state
**Note:** whatever the current state of the window : maximized, minimized or
in fullscreen, this function always returns the position and size of the
window in normal state. In normal state, getBounds and getNormalBounds returns
the same [ Rectangle ](/docs/latest/api/structures/rectangle) .
#... | |
Electron/Using_Screen_Capture8_24_0.txt | Filter sidebar Clear filter input
## In this article | |
Electron/recording-the-entire-desktop-in-angular-98_64_0.txt | 0
How to record desktop screen video using recordRTC node module of selected
screen area? | |
Electron/web-contents8_222_0.txt | Scrolls to the top of the current ` webContents ` .
#### ` contents.scrollToBottom() ` â | |
Electron/web-contents8_151_0.txt | Returns ` Promise<void> ` \- the promise will resolve when the page has
finished loading (see ` did-finish-load ` ), and rejects if the page fails to
load (see ` did-fail-load ` ).
Loads the given file in the window, ` filePath ` should be a path to an HTML
file relative to the root of your application. For instance... | |
Electron/Using_Screen_Capture8_6_0.txt | * Web APIs
Interfaces for building web applications | |
Electron/web-contents8_230_0.txt | Executes the editing command ` replaceMisspelling ` in web page.
#### ` contents.insertText(text) ` â | |
Electron/recording-the-entire-desktop-in-angular-98_45_0.txt | * Please be sure to answer the question . Provide details and share your research!
But avoid … | |
Electron/web-contents8_178_0.txt | #### ` contents.isCrashed() ` â
Returns ` boolean ` \- Whether the renderer process has crashed. | |
Electron/Electron_6_6.txt | faults to ` Times New Roman ` .
* ` serif ` string (optional) - Defaults to ` Times New Roman ` .
* ` sansSerif ` string (optional) - Defaults to ` Arial ` .
* ` monospace ` string (optional) - Defaults to ` Courier New ` .
* ` cursive ` string (optional) - Defaults to ` Script ` .
... | |
Electron/Using_Screen_Capture8_15_0.txt | * Plus Plus
* Overview
A customized MDN experience | |
Electron/recording-the-entire-desktop-in-angular-98_79_0.txt | ##### Stack Exchange Network
* Technology
* Culture & recreation
* Life & arts
* Science
* Professional
* Business
* API
* Data | |
Electron/Using_Screen_Capture8_5_0.txt | * HTTP
Protocol for transmitting web resources | |
Electron/web-contents8_83_0.txt | * ` event ` Event
* ` input ` Object - Input properties.
* ` type ` string - Either ` keyUp ` or ` keyDown ` .
* ` key ` string - Equivalent to KeyboardEvent.key .
* ` code ` string - Equivalent to KeyboardEvent.code .
* ` isAutoRepeat ` boolean - Equivalent to KeyboardEvent.repeat .
... | |
Electron/web-contents8_181_0.txt | #### ` contents.setUserAgent(userAgent) ` â
* ` userAgent ` string | |
Electron/Using_Screen_Capture8_18_0.txt | * Documentation
Learn how to use MDN Plus | |
Electron/1941460_10_0.txt | * electronMain:openScreenSecurity
* electronMain:getScreenAccess | |
Electron/web-contents8_150_0.txt | #### ` contents.loadFile(filePath[, options]) ` â
* ` filePath ` string
* ` options ` Object (optional)
* ` query ` Record < string, string\ > (optional) - Passed to ` url.format() ` .
* ` search ` string (optional) - Passed to ` url.format() ` .
* ` hash ` string (optional) - Passed to ` url.... | |
Electron/web-contents8_96_0.txt | #### Event: 'devtools-opened' â
Emitted when DevTools is opened. | |
Electron/Electron_5_0.txt | Skip to main content
[   **Electron** ](/) [ Docs ](/docs/latest/) [
API ](/docs/latest/api/app) [ Blog ](/blog)
Tools
* [ Electron Forge ](https://electronforge.io)
* [ Electron Fiddle ](/fiddle)
Community
* [ Governance ](/... | |
Electron/web-contents8_104_0.txt | #### Event: 'login' â
Returns: | |
Electron/recording-the-entire-desktop-in-angular-98_51_0.txt | Name
Email | |
Electron/web-contents8_165_0.txt | Returns ` boolean ` \- Whether the web page is waiting for a first-response
from the main resource of the page.
#### ` contents.stop() ` â | |
Electron/web-contents8_51_0.txt | Returns:
* ` details ` Event < \ >
* ` url ` string - The URL the frame is navigating to.
* ` isSameDocument ` boolean - This event does not fire for same document navigations using window.history api and reference fragment navigations. This property is always set to ` false ` for this event.
* ` isM... | |
Electron/web-contents8_12_0.txt | Several events can be used to monitor navigations as they occur within a `
webContents ` .
### Document Navigations â | |
Electron/web-contents8_109_0.txt | Emitted when media starts playing.
#### Event: 'media-paused' â | |
Electron/1941460_20_0.txt | Language Language settings Support
© 2006–2024, Habr | |
Electron/web-contents8_342_1.txt | setDevToolsTitle `
* ` toggleDevTools `
* ` inspectElement `
* ` inspectSharedWorker `
* ` inspectSharedWorkerById `
* ` getAllSharedWorkers `
* ` inspectServiceWorker `
* ` send `
* ` sendToFrame `
* ` postMessage `
* ` enableDeviceEmulation `
* ` disab... | |
Electron/web-contents8_226_0.txt | For a call of ` win.webContents.adjustSelection({ start: 1, end: 5 }) `
Before: | |
Electron/Using_Screen_Capture8_41_0.txt | While display capture is in effect, the machine which is sharing screen
contents will display some form of indicator so the user is aware that sharing
is taking place.
Note: For privacy and security reasons, screen sharing sources are not
enumerable using ` enumerateDevices() ` . Related to this, the `
devicechange... | |
Electron/recording-the-entire-desktop-in-angular-98_35_0.txt | Add a comment |
## 1 Answer 1 | |
Electron/Using_Screen_Capture8_66_0.txt |
function stopCapture(evt) {
let tracks = videoElem.srcObject.getTracks();
tracks.forEach((track) => track.stop());
videoElem.srcObject = null;
}
##### Dumping configuration information | |
Electron/web-contents8_286_0.txt | * ` inputEvent ` MouseInputEvent | MouseWheelInputEvent | KeyboardInputEvent
Sends an input ` event ` to the page. Note: The ` BrowserWindow `
containing the contents needs to be focused for ` sendInputEvent() ` to work. | |
Electron/web-contents8_157_0.txt | Returns ` string ` \- The title of the current web page.
#### ` contents.isDestroyed() ` â | |
Electron/web-contents8_56_0.txt | Emitted when any frame (including main) starts navigating.
#### Event: 'will-redirect' â | |
Electron/web-contents8_250_0.txt |
const { BrowserWindow } = require('electron')
const win = new BrowserWindow()
win.webContents.on('devtools-opened', () => {
win.webContents.addWorkSpace(__dirname)
})
#### ` contents.removeWorkSpace(path) ` â | |
Electron/Using_Screen_Capture8_68_0.txt |
function dumpOptionsInfo() {
const videoTrack = videoElem.srcObject.getVideoTracks()[0];
console.log("Track settings:");
console.log(JSON.stringify(videoTrack.getSettings(), null, 2));
console.log("Track constraints:");
console.log(JSON.stringify(videoTrack.getConstraint... | |
Electron/Using_Screen_Capture8_64_0.txt | If any of that fails, the ` catch() ` clause outputs an error message to the
log box.
##### Stopping display capture | |
Electron/web-contents8_23_0.txt | Returns ` WebContents | undefined ` \- A WebContents instance with the given WebFrameMain, or ` undefined ` if there is no WebContents associated with the given WebFrameMain.
### ` webContents.fromDevToolsTargetId(targetId) ` â | |
Electron/web-contents8_22_0.txt | ### ` webContents.fromFrame(frame) ` â
* ` frame ` WebFrameMain | |
Electron/web-contents8_233_0.txt | * ` text ` string - Content to be searched, must not be empty.
* ` options ` Object (optional)
* ` forward ` boolean (optional) - Whether to search forward or backward, defaults to ` true ` .
* ` findNext ` boolean (optional) - Whether to begin a new text finding session with this request. Should be ` tr... | |
Electron/web-contents8_289_0.txt | The ` dirtyRect ` is an object with ` x, y, width, height ` properties that
describes which part of the page was repainted. If ` onlyDirty ` is set to `
true ` , ` image ` will only contain the repainted area. ` onlyDirty `
defaults to ` false ` .
#### ` contents.endFrameSubscription() ` â | |
Electron/web-contents8_0_0.txt | Skip to main content
Electron Docs API Blog | |
Electron/Electron_6_17.txt | ss (e.g. ` http:// ` ) or a path to a local
HTML file using the ` file:// ` protocol.
To ensure that file URLs are properly formatted, it is recommended to use
Node's [ ` url.format `
](https://nodejs.org/api/url.html#url_url_format_urlobject) method:
const { BrowserWindow } = require('electron')
... | |
Electron/Electron_6_2.txt | the visibility
state is ` hidden ` in order to minimize power consumption.
## Platform notices â
* On macOS modal windows will be displayed as sheets attached to the parent window.
* On macOS the child windows will keep the relative position to parent window when parent window moves, while on Windows and Li... | |
Electron/web-contents8_184_0.txt | * ` css ` string
* ` options ` Object (optional)
* ` cssOrigin ` string (optional) - Can be 'user' or 'author'. Sets the cascade origin of the inserted stylesheet. Default is 'author'.
Returns ` Promise<string> ` \- A promise that resolves with a key for the
inserted CSS that can later be used to remove t... | |
Electron/web-contents8_125_0.txt |
const { app, BrowserWindow } = require('electron')
let win = null
app.whenReady().then(() => {
win = new BrowserWindow({ width: 800, height: 600 })
win.webContents.on('select-bluetooth-device', (event, deviceList, callback) => {
event.preventDefault()
... | |
Electron/web-contents8_305_0.txt | Setting the WebRTC IP handling policy allows you to control which IPs are
exposed via WebRTC. See BrowserLeaks for more details.
#### ` contents.getWebRTCUDPPortRange() ` â | |
Electron/Using_Screen_Capture8_65_0.txt | The ` stopCapture() ` method is called when the "Stop Capture" button is
clicked. It stops the stream by getting its track list using `
MediaStream.getTracks() ` , then calling each track's ` stop() ` method. Once
that's done, ` srcObject ` is set to ` null ` to make sure it's understood by
anyone interested that the... | |
Electron/web-contents8_216_0.txt | Copy the image at the given position to the clipboard.
#### ` contents.paste() ` â | |
Electron/web-contents8_171_0.txt | * ` offset ` Integer
Returns ` boolean ` \- Whether the web page can go to ` offset ` . | |
Electron/web-contents8_6_0.txt | * Custom DOM Elements
* Chromium and Node.js | |
Electron/web-contents8_174_0.txt | #### ` contents.goForward() ` â
Makes the browser go forward a web page. | |
Electron/recording-the-entire-desktop-in-angular-98_62_0.txt | 1
Save captured video to file in Electron | |
Electron/recording-the-entire-desktop-in-angular-98_32_0.txt | * It is literally nothing written about how to start, stop the recording, and what to do (and how) with the captured blob data. It is too bad... I searching the net since two days. I've even managed to do the job with RecordRTC in Chrome, with getDIsplayMedia, but off course it doesn't work inside Electron...
– us... | |
Electron/recording-the-entire-desktop-in-angular-98_16_0.txt | Q&A for work
Connect and share knowledge within a single location that is structured and
easy to search. | |
Electron/1941460_6_0.txt | Since Electron's ` desktopCapturer ` API doesn't provide a desktop picker
dialog, you need to implement it yourself.
Disclaimer: I don't want to focus on the UI part, so you can use whatever you
prefer, such as React, Vue, etc. You can find a simple HTML UI layout in my `
index.html ` file. | |
Electron/recording-the-entire-desktop-in-angular-98_49_0.txt | Sign up using Facebook
Sign up using Email and Password | |
Electron/web-contents8_121_0.txt | Emitted when there is a new context menu that needs to be handled.
#### Event: 'select-bluetooth-device' â | |
Electron/Using_Screen_Capture8_9_0.txt | * Guides Guides
* Overview / MDN Learning Area
Learn web development | |
Electron/Electron_6_0.txt | Skip to main content
[   **Electron** ](/) [ Docs ](/docs/latest/) [
API ](/docs/latest/api/app) [ Blog ](/blog)
Tools
* [ Electron Forge ](https://electronforge.io)
* [ Electron Fiddle ](/fiddle)
Community
* [ Governance ](/... | |
Electron/Electron_0_0.txt | Skip to main content
[   **Electron** ](/) [ Docs ](/docs/latest/) [
API ](/docs/latest/api/app) [ Blog ](/blog)
Tools
* [ Electron Forge ](https://electronforge.io)
* [ Electron Fiddle ](/fiddle)
Community
* [ Governance ](/... | |
Electron/web-contents8_84_0.txt | To only prevent the menu shortcuts, use ` setIgnoreMenuShortcuts ` :
const { BrowserWindow } = require('electron')
const win = new BrowserWindow({ width: 800, height: 600 })
win.webContents.on('before-input-event', (event, input) => {
// For example, only enable applica... | |
Electron/web-contents8_334_0.txt | A ` WebContents ` instance that might own this ` WebContents ` .
#### ` contents.devToolsWebContents ` Readonly â | |
Electron/web-contents8_297_0.txt | #### ` contents.stopPainting() ` â
If offscreen rendering is enabled and painting, stop painting. | |
Electron/web-contents8_323_0.txt | 1. ` contents.mainFrame.handle(channel) `
2. ` contents.handle(channel) `
3. ` ipcMain.handle(channel) `
A handler or event listener registered on the WebContents will receive IPC
messages sent from any frame, including child frames. In most cases, only the
main frame can send IPC messages. However, if the ` nod... | |
Electron/web-contents8_163_0.txt | Returns ` boolean ` \- Whether web page is still loading resources.
#### ` contents.isLoadingMainFrame() ` â | |
Electron/web-contents8_259_0.txt | When ` contents ` is a ` <webview> ` tag, the ` mode ` would be ` detach ` by
default, explicitly passing an empty ` mode ` can force using last used dock
state.
On Windows, if Windows Control Overlay is enabled, Devtools will be opened
with ` mode: 'detach' ` . | |
Electron/web-contents8_194_0.txt | #### ` contents.setIgnoreMenuShortcuts(ignore) ` â
* ` ignore ` boolean | |
Electron/web-contents8_5_0.txt | * Main Process Modules
* app
* autoUpdater
* BaseWindow
* BrowserView
* BrowserWindow
* clipboard
* contentTracing
* crashReporter
* desktopCapturer
* dialog
* globalShortcut
* inAppPurchase
* ipcMain
* Menu
* MessageChannelMain
* Messag... | |
Electron/web-contents8_251_0.txt | * ` path ` string
Removes the specified path from DevTools workspace. | |
Electron/web-contents8_19_0.txt | Returns ` WebContents[] ` \- An array of all ` WebContents ` instances. This
will contain web contents for all windows, webviews, opened devtools, and
devtools extension background pages.
### ` webContents.getFocusedWebContents() ` â | |
Electron/web-contents8_241_0.txt | #### ` contents.print([options], [callback]) ` â
* ` options ` Object (optional)
* ` silent ` boolean (optional) - Don't ask user for print settings. Default is ` false ` .
* ` printBackground ` boolean (optional) - Prints the background color and image of the web page. Default is ` false ` .
* ` d... | |
Electron/Electron_2_1.txt | start({ submitURL: 'https://your-domain.com/url-to-submit' })
For setting up a server to accept and process crash reports, you can use
following projects:
* [ socorro ](https://github.com/mozilla-services/socorro)
* [ mini-breakpad-server ](https://github.com/electron/mini-breakpad-server)
> **Note:** Ele... | |
Electron/web-contents8_92_0.txt | #### Event: 'devtools-open-url' â
Returns: | |
Electron/Using_Screen_Capture8_82_0.txt | Yes No
Learn how to contribute . | |
Electron/web-contents8_39_0.txt | * ` event ` Event
* ` title ` string
* ` explicitSet ` boolean
Fired when page title is set during navigation. ` explicitSet ` is false when
title is synthesized from file url. | |
Electron/web-contents8_45_0.txt | Returns:
* ` window ` BrowserWindow
* ` details ` Object
* ` url ` string - URL for the created window.
* ` frameName ` string - Name given to the created window in the ` window.open() ` call.
* ` options ` BrowserWindowConstructorOptions \- The options used to create the BrowserWindow. They are m... | |
Electron/web-contents8_79_0.txt | #### Event: 'destroyed' â
Emitted when ` webContents ` is destroyed. | |
Electron/Using_Screen_Capture8_23_0.txt | * English (US)
* Español
* æ¥æ¬èª
* Ð ÑÑÑкий | |
Electron/web-contents8_74_0.txt | * ` event ` Event
* ` details ` RenderProcessGoneDetails
Emitted when the renderer process unexpectedly disappears. This is normally
because it was crashed or killed. | |
Electron/Electron_4_3.txt | ](/assets/img/openjsf_logo.svg)  ](https://openjsf.org/)
Copyright © 2023 OpenJS Foundation and Electron contributors.
Hosting and infrastructure graciously provided by
   ` when there is a
presentation event.
The ` image ` is an instance of NativeImage that stores the captured frame. | |
Electron/Using_Screen_Capture8_40_0.txt | None of the constraints are applied in any way until after the content to
capture has been selected. The constraints alter what you see in the resulting
stream. For example, if you specify a ` width ` constraint for the video,
it's applied by scaling the video after the user selects the area to share. It
doesn't estab... | |
Electron/Electron_6_11.txt | de it immediately.
#### ` win.simpleFullScreen ` â
A ` boolean ` property that determines whether the window is in simple (pre-
Lion) fullscreen mode.
#### ` win.fullScreen ` â
A ` boolean ` property that determines whether the window is in fullscreen
mode.
#### ` win.focusable ` _Windows_ _macOS_ â
A ` ... | |
Electron/recording-the-entire-desktop-in-angular-98_2_0.txt | Loading…
1. ### current community | |
Electron/web-contents8_43_0.txt | * ` event ` Event
* ` bounds ` Rectangle \- requested new content bounds
Emitted when the page calls ` window.moveTo ` , ` window.resizeTo ` or related
APIs. | |
Electron/Using_Screen_Capture8_20_0.txt | * Curriculum New
* Blog
* Play
* AI Help Beta
Search MDN Clear search input Search | |
Electron/web-contents8_98_0.txt | #### Event: 'devtools-focused' â
Emitted when DevTools is focused / opened. | |
Electron/web-contents8_217_0.txt | Executes the editing command ` paste ` in web page.
#### ` contents.pasteAndMatchStyle() ` â | |
Electron/web-contents8_284_0.txt | Enable device emulation with the given parameters.
#### ` contents.disableDeviceEmulation() ` â | |
Electron/web-contents8_53_0.txt | This event will not emit when the navigation is started programmatically with
APIs like ` webContents.loadURL ` and ` webContents.back ` .
It is also not emitted for in-page navigations, such as clicking anchor links
or updating the ` window.location.hash ` . Use ` did-navigate-in-page ` event
for this purpose. | |
Electron/Electron_5_1.txt | .Mac) , meaning you don't need any
special setup to make it work. For server-side requirements, you can read [
Server Support ](https://github.com/Squirrel/Squirrel.Mac#server-support) .
Note that [ App Transport Security
](https://developer.apple.com/library/content/documentation/General/Reference/InfoPlistKeyReferenc... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.