id
stringlengths
16
145
text
stringlengths
1
179k
title
stringclasses
1 value
Electron/web-contents8_138_0.txt
Returns: * ` event ` IpcMainEvent * ` channel ` string * ` ...args ` any[]
Electron/web-contents8_224_0.txt
* ` options ` Object * ` start ` Number (optional) - Amount to shift the start index of the current selection. * ` end ` Number (optional) - Amount to shift the end index of the current selection. Adjusts the current text selection starting and ending points in the focused frame by the given amounts. A ne...
Electron/web-contents8_266_0.txt
Toggles the developer tools. #### ` contents.inspectElement(x, y) ` ​
Electron/web-contents8_156_0.txt
const { BrowserWindow } = require('electron') const win = new BrowserWindow({ width: 800, height: 600 }) win.loadURL('https://github.com').then(() => { const currentURL = win.webContents.getURL() console.log(currentURL) }) #### ` contents.getTitle() ` ​
Electron/web-contents8_13_0.txt
When a ` webContents ` navigates to another page (as opposed to an in-page navigation ), the following events will be fired. * ` did-start-navigation ` * ` will-frame-navigate ` * ` will-navigate ` (only fired when main frame navigates) * ` will-redirect ` (only fired when a redirect happens during navigati...
Electron/Using_Screen_Capture8_62_0.txt
async function startCapture() { logElem.innerHTML = ""; try { videoElem.srcObject = await navigator.mediaDevices.getDisplayMedia(displayMediaOptions); dumpOptionsInfo(); } catch (err) { console.error(err); } } After clearing the cont...
Electron/web-contents8_278_0.txt
If you want to get the ` frameId ` of a given renderer context you should use the ` webFrame.routingId ` value. E.g. // In a renderer process console.log('My frameId is:', require('electron').webFrame.routingId)
Electron/web-contents8_347_0.txt
More * GitHub * Open Collective * Infrastructure Dashboard
Electron/web-contents8_76_0.txt
#### Event: 'responsive' ​ Emitted when the unresponsive web page becomes responsive again.
Electron/web-contents8_60_0.txt
Returns: * ` details ` Event < \ > * ` url ` string - The URL the frame is navigating to. * ` isSameDocument ` boolean - Whether the navigation happened without changing document. Examples of same document navigations are reference fragment navigations, pushState/replaceState, and same page history naviga...
Electron/Using_Screen_Capture8_27_0.txt
# Using the Screen Capture API In this article, we will examine how to use the Screen Capture API and its ` getDisplayMedia() ` method to capture part or all of a screen for streaming, recording, or sharing during a WebRTC conference session.
Electron/web-contents8_246_0.txt
Prints the window's web page as PDF. The ` landscape ` will be ignored if ` @page ` CSS at-rule is used in the web page.
Electron/recording-the-entire-desktop-in-angular-98_23_0.txt
There are problems with MediaStreams in Angular, and unfortunatelly the RecordRTC's examples are all written in JS, which is a mess of its own... I would really appreciate a detailed, working solution. All I want is: 1\. Press a button to start recording 2\. Record the desktop video with audio 3\. Press another button...
Electron/recording-the-entire-desktop-in-angular-98_46_0.txt
* Asking for help, clarification, or responding to other answers. * Making statements based on opinion; back them up with references or personal experience. To learn more, see our tips on writing great answers .
Electron/Using_Screen_Capture8_83_0.txt
This page was last modified on Dec 20, 2023 by MDN contributors . View this page on GitHub • Report a problem with this content
Electron/web-contents8_199_0.txt
Mute the audio on the current web page. #### ` contents.isAudioMuted() ` ​
Electron/web-contents8_26_0.txt
## Class: WebContents ​ > Render and control the contents of a BrowserWindow instance.
Electron/Electron_6_13.txt
` backgroundColor ` values: * Hex * #fff (shorthand RGB) * #ffff (shorthand ARGB) * #ffffff (RGB) * #ffffffff (ARGB) * RGB * rgb ( ( [ \d]+),\s _( [ \d]+),\s _ ( [ \d]+) ) * e.g. rgb(255, 255, 255) * RGBA * rgba ( ( [ \d]+),\s _( [ \d]+),\s _ ( [ \d]+),\s*( ...
Electron/web-contents8_129_0.txt
#### Event: 'will-attach-webview' ​ Returns:
Electron/web-contents8_142_0.txt
See also ` webContents.ipc ` , which provides an ` IpcMain ` -like interface for responding to IPC messages specifically from this WebContents. #### Event: 'preferred-size-changed' ​
Electron/Using_Screen_Capture8_54_0.txt
#### JavaScript There isn't all that much code needed in order to make this work, and if you're familiar with using ` getUserMedia() ` to capture video from a camera, you'll find ` getDisplayMedia() ` to be very familiar.
Electron/recording-the-entire-desktop-in-angular-98_30_0.txt
May 26, 2020 at 13:23 * Yes. But the give examples are obsolete. The getUserMedia returns the audio input and the webcam, but I don't want webcam access, but rather a screen capturing, which is provided by RecordRTC's getDisplayMedia, which is missing in Electron. I really need a working example for Angular + Electr...
Electron/Using_Screen_Capture8_3_0.txt
* CSS Code used to describe document style
Electron/recording-the-entire-desktop-in-angular-98_12_0.txt
Ask questions, find answers and collaborate at work with Stack Overflow for Teams. Explore Teams Create a free Team
Electron/Electron_3_0.txt
Skip to main content [ ![Electron homepage](/assets/img/logo.svg) ![Electron homepage](/assets/img/logo.svg) **Electron** ](/) [ Docs ](/docs/latest/) [ API ](/docs/latest/api/app) [ Blog ](/blog) Tools * [ Electron Forge ](https://electronforge.io) * [ Electron Fiddle ](/fiddle) Community * [ Governance ](/...
Electron/recording-the-entire-desktop-in-angular-98_74_0.txt
# Subscribe to RSS Question feed
Electron/web-contents8_336_0.txt
#### ` contents.debugger ` Readonly ​ A ` Debugger ` instance for this webContents.
Electron/web-contents8_182_0.txt
Overrides the user agent for this web page. #### ` contents.getUserAgent() ` ​
Electron/web-contents8_41_0.txt
* ` event ` Event * ` favicons ` string[] - Array of URLs. Emitted when page receives favicon urls.
Electron/Electron_6_18.txt
ty(opacity) ` _Windows_ _macOS_ ​ * ` opacity ` number - between 0.0 (fully transparent) and 1.0 (fully opaque) Sets the opacity of the window. On Linux, does nothing. Out of bound number values are clamped to the [ 0, 1] range. #### ` win.getOpacity() ` ​ Returns ` number ` \- between 0.0 (fully transpar...
Electron/web-contents8_183_0.txt
Returns ` string ` \- The user agent for this web page. #### ` contents.insertCSS(css[, options]) ` ​
Electron/web-contents8_115_0.txt
#### Event: 'update-target-url' ​ Returns:
Electron/web-contents8_133_0.txt
Emitted when a ` <webview> ` has been attached to this web contents. #### Event: 'console-message' ​
Electron/web-contents8_34_0.txt
* ` event ` Event * ` isMainFrame ` boolean * ` frameProcessId ` Integer * ` frameRoutingId ` Integer Emitted when a frame has done navigation.
Electron/web-contents8_91_0.txt
Note that on macOS, having focus means the ` WebContents ` is the first responder of window, so switching focus between windows would not trigger the ` focus ` and ` blur ` events of ` WebContents ` , as the first responder of each window is not changed. The ` focus ` and ` blur ` events of ` WebContents ` should only...
Electron/web-contents8_94_0.txt
#### Event: 'devtools-search-query' ​ Returns:
Electron/web-contents8_69_0.txt
When in-page navigation happens, the page URL changes but does not cause navigation outside of the page. Examples of this occurring are when anchor links are clicked or when the DOM ` hashchange ` event is triggered. #### Event: 'will-prevent-unload' ​
Electron/web-contents8_20_0.txt
Returns ` WebContents | null ` \- The web contents that is focused in this application, otherwise returns ` null ` . ### ` webContents.fromId(id) ` ​
Electron/recording-the-entire-desktop-in-angular-98_4_0.txt
* Meta Stack Overflow ### your communities
Electron/recording-the-entire-desktop-in-angular-98_0_0.txt
Skip to main content Stack Overflow
Electron/web-contents8_15_0.txt
In-page navigations don't cause the page to reload, but instead navigate to a location within the current page. These events are not cancellable. For an in- page navigations, the following events will fire in this order: * ` did-start-navigation ` * ` did-navigate-in-page `
Electron/web-contents8_282_0.txt
For example: // Main process const win = new BrowserWindow() const { port1, port2 } = new MessageChannelMain() win.webContents.postMessage('port', { message: 'hello' }, [port1]) // Renderer process ipcRenderer.on('port', (e, msg) => { const [port] = e.ports ...
Electron/recording-the-entire-desktop-in-angular-98_57_0.txt
or ask your own question . * The Overflow Blog * Upcoming research at Stack Overflow
Electron/web-contents8_247_0.txt
An example of ` webContents.printToPDF ` : const { app, BrowserWindow } = require('electron') const fs = require('node:fs') const path = require('node:path') const os = require('node:os') app.whenReady().then(() => { const win = new BrowserWindow() win.loadU...
Electron/web-contents8_212_0.txt
#### ` contents.cut() ` ​ Executes the editing command ` cut ` in web page.
Electron/Electron_4_0.txt
Skip to main content [ ![Electron homepage](/assets/img/logo.svg) ![Electron homepage](/assets/img/logo.svg) **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_128_0.txt
#### Event: 'devtools-reload-page' ​ Emitted when the devtools window instructs the webContents to reload
Electron/Electron_6_21.txt
win.setBrowserView(browserView) ` _Experimental_ ​ * ` browserView ` [ BrowserView ](/docs/latest/api/browser-view) | null - Attach ` browserView ` to ` win ` . If there are other ` BrowserView ` s attached, they will be removed from this window. #### ` win.getBrowserView() ` _Experimental_ ​ Returns ` Brow...
Electron/web-contents8_153_0.txt
const win = new BrowserWindow() win.loadFile('src/index.html') #### ` contents.downloadURL(url[, options]) ` ​
Electron/web-contents8_264_0.txt
#### ` contents.setDevToolsTitle(title) ` ​ * ` title ` string
Electron/Using_Screen_Capture8_60_0.txt
This allows us to use ` console/log() ` and ` console.error() ` to log information to the log box in the document. ##### Starting display capture
Electron/web-contents8_295_0.txt
#### ` contents.isOffscreen() ` ​ Returns ` boolean ` \- Indicates whether offscreen rendering is enabled.
Electron/recording-the-entire-desktop-in-angular-98_40_0.txt
Follow edited May 28, 2020 at 12:29
Electron/recording-the-entire-desktop-in-angular-98_43_0.txt
Add a comment | ## Your Answer
Electron/recording-the-entire-desktop-in-angular-98_68_0.txt
4 How to record video in electron that is played from my streaming server
Electron/Electron_6_5.txt
aded before other scripts run in the page. This script will always have access to node APIs no matter whether node integration is turned on or off. The value should be the absolute file path to the script. When node integration is turned off, the preload script can reintroduce Node global symbols back to the global sco...
Electron/web-contents8_139_0.txt
Emitted when the renderer process sends an asynchronous message via ` ipcRenderer.send() ` . See also ` webContents.ipc ` , which provides an ` IpcMain ` -like interface for responding to IPC messages specifically from this WebContents.
Electron/web-contents8_316_0.txt
* ` allowed ` boolean Controls whether or not this WebContents will throttle animations and timers when the page becomes backgrounded. This also affects the Page Visibility API.
Electron/web-contents8_141_0.txt
* ` event ` IpcMainEvent * ` channel ` string * ` ...args ` any[] Emitted when the renderer process sends a synchronous message via ` ipcRenderer.sendSync() ` .
Electron/web-contents8_245_0.txt
* ` options ` Object * ` landscape ` boolean (optional) - Paper orientation. ` true ` for landscape, ` false ` for portrait. Defaults to false. * ` displayHeaderFooter ` boolean (optional) - Whether to display header and footer. Defaults to false. * ` printBackground ` boolean (optional) - Whether to p...
Electron/web-contents8_340_0.txt
Edit this page Previous
Electron/web-contents8_144_0.txt
Emitted when the ` WebContents ` preferred size has changed. This event will only be emitted when ` enablePreferredSizeMode ` is set to ` true ` in ` webPreferences ` .
Electron/web-contents8_37_0.txt
#### Event: 'dom-ready' ​ Emitted when the document in the top-level frame is loaded.
Electron/web-contents8_127_0.txt
Emitted when a new frame is generated. Only the dirty area is passed in the buffer. const { BrowserWindow } = require('electron') const win = new BrowserWindow({ webPreferences: { offscreen: true } }) win.webContents.on('paint', (event, dirty, image) => { // updateBitmap(dirty,...
Electron/web-contents8_227_0.txt
After: #### ` contents.replace(text) ` ​
Electron/recording-the-entire-desktop-in-angular-98_14_0.txt
##### Collectives™ on Stack Overflow Find centralized, trusted content and collaborate around the technologies you use most.
Electron/recording-the-entire-desktop-in-angular-98_33_0.txt
May 26, 2020 at 19:44 * Here's something that could help more with that: stackoverflow.com/questions/36753288/…
Electron/web-contents8_275_0.txt
For additional reading, refer to Electron's IPC guide . #### ` contents.sendToFrame(frameId, channel, ...args) ` ​
Electron/Electron_1_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_319_0.txt
Sets the image animation policy for this webContents. The policy only affects new images, existing images that are currently being animated are unaffected. This is a known limitation in Chromium, you can force image animation to be recalculated with ` img.src = img.src ` which will result in no network traffic but wil...
Electron/web-contents8_202_0.txt
* ` factor ` Double - Zoom factor; default is 1.0. Changes the zoom factor to the specified factor. Zoom factor is zoom percent divided by 100, so 300% = 3.0.
Electron/web-contents8_234_0.txt
Starts a request to find all matches for the ` text ` in the web page. The result of the request can be obtained by subscribing to ` found-in-page ` event. #### ` contents.stopFindInPage(action) ` ​
Electron/web-contents8_140_0.txt
#### Event: 'ipc-message-sync' ​ Returns:
Electron/web-contents8_169_0.txt
Returns ` boolean ` \- Whether the browser can go back to previous web page. #### ` contents.canGoForward() ` ​
Electron/web-contents8_258_0.txt
* ` options ` Object (optional) * ` mode ` string - Opens the devtools with specified dock state, can be ` left ` , ` right ` , ` bottom ` , ` undocked ` , ` detach ` . Defaults to last used dock state. In ` undocked ` mode it's possible to dock back. In ` detach ` mode it's not. * ` activate ` boolean (opt...
Electron/Electron_1_2.txt
traParameter ` . **Note:** Parameters passed in ` extra ` , ` globalExtra ` or set with ` addExtraParameter ` have limits on the length of the keys and values. Key names must be at most 39 bytes long, and values must be no longer than 127 bytes. Keys with names longer than the maximum will be silently ignored. Key val...
Electron/web-contents8_345_0.txt
Tools * Electron Forge * Electron Fiddle
Electron/Using_Screen_Capture8_59_0.txt
js console.log = (msg) => (logElem.textContent = `${logElem.textContent}\n${msg}`); console.error = (msg) => (logElem.textContent = `${logElem.textContent}\nError: ${msg}`);
Electron/recording-the-entire-desktop-in-angular-98_70_0.txt
5 Take desktop screenshot with Electron
Electron/Using_Screen_Capture8_39_0.txt
The options object passed into ` getDisplayMedia() ` is used to set options for the resulting stream. The ` video ` and ` audio ` objects passed into the options object can also hold additional constraints particular to those media tracks. See Properties of shared screen tracks for details about additional constrai...
Electron/Electron_3_3.txt
` should be replaced with any value from [ this list ](https://developer.apple.com/documentation/appkit/nsimagename?language=objc) . ## Class: NativeImage ​ > Natively wrap images such as tray, dock, and application icons. Process: [ Main ](/docs/latest/glossary#main-process) , [ Renderer ](/docs/latest/glossary...
Electron/web-contents8_50_0.txt
Calling ` event.preventDefault() ` will prevent the navigation. #### Event: 'will-frame-navigate' ​
Electron/web-contents8_145_0.txt
#### Event: 'frame-created' ​ Returns:
Electron/web-contents8_71_0.txt
Emitted when a ` beforeunload ` event handler is attempting to cancel a page unload. Calling ` event.preventDefault() ` will ignore the ` beforeunload ` event handler and allow the page to be unloaded.
Electron/web-contents8_270_0.txt
Inspects the shared worker based on its ID. #### ` contents.getAllSharedWorkers() ` ​
Electron/recording-the-entire-desktop-in-angular-98_37_0.txt
2 This is how i've solved the problem on Angular 9. Using ngx-electron.
Electron/Using_Screen_Capture8_88_0.txt
* MDN Community * MDN Forum * MDN Chat ## Developers
Electron/web-contents8_248_0.txt
See Page.printToPdf for more information. #### ` contents.addWorkSpace(path) ` ​
Electron/web-contents8_231_0.txt
* ` text ` string Returns ` Promise<void> `
Electron/Using_Screen_Capture8_86_0.txt
* About * Blog * Careers * Advertise with us ## Support
Electron/Using_Screen_Capture8_69_0.txt
#### HTML The HTML starts with an introductory paragraph, then gets into the meat of things.
Electron/recording-the-entire-desktop-in-angular-98_29_0.txt
* Have you tried Electron desktopCapturer and getUserMedia ? – DGarvanski
Electron/Using_Screen_Capture8_12_0.txt
* CSS Learn to style content using CSS
Electron/web-contents8_320_0.txt
### Instance Properties ​ #### ` contents.ipc ` Readonly ​
Electron/web-contents8_62_0.txt
#### Event: 'did-navigate' ​ Returns:
Electron/Using_Screen_Capture8_37_0.txt
There are two types of display surface. A visible display surface is a surface which is entirely visible on the screen, such as the frontmost window or tab, or the entire screen. A logical display surface is one which is in part or completely obscured, either by being overlapped by another object to some extent, o...
Electron/recording-the-entire-desktop-in-angular-98_15_0.txt
Learn more about Collectives Teams
Electron/web-contents8_331_0.txt
A ` Integer ` representing the unique ID of this WebContents. Each ID is unique among all ` WebContents ` instances of the entire Electron application. #### ` contents.session ` Readonly ​
Electron/web-contents8_301_0.txt
Returns ` Integer ` \- If offscreen rendering is enabled returns the current frame rate. #### ` contents.invalidate() ` ​
Electron/Electron_0_2.txt
evice can then be queried with ` navigator.mediaDevices.getUserMedia ` . [ Edit this page ](https://github.com/electron/electron/edit/main/docs/api/desktop-capturer.md) [ Previous crashReporter ](/docs/latest/api/crash-reporter) [ Next dialog ](/docs/latest/api/dialog) * Methods * ` getSources ` * Caveat...