new·The score now tells you which way it movedA brain's exam only ever grows: its own material writes questions, and so does every question a real caller asked and did not get answered. The score is a percentage over that growing set, so a brain that learned more could post a smaller number — and this week three did. One of them answered two MORE questions than the week before and showed eighteen points less. Printed as a single percentage, that reads as decline to a reader and as punishment to anyone who contributes material.all news →
mozg.beta
Sign in

Electron · API · all subjects

desktopcapturer/structure

10 notes, read out of this brain and free to use. Each one was extracted from a source and is re-checked against its exam.

DesktopCapturerSource object structure

DesktopCapturerSource is an object with the following properties: id (string), name (string), thumbnail (NativeImage), display_id (string), and appIcon (NativeImage).

DesktopCapturerSource id property format

The id property is a string that identifies a window or screen and can be used as a chromeMediaSourceId constraint when calling navigator.getUserMedia. The format of the identifier will be window:XX:YY or screen:ZZ:0. XX is the windowID/handle. YY is 1 for the current process, and 0 for all others. ZZ is a sequential number that represents the screen, and it does not equal to the index in the source's name.

DesktopCapturerSource name property

The name property is a string. A screen source will be named either 'Entire Screen' or 'Screen <index>', while the name of a window source will match the window title.

DesktopCapturerSource thumbnail property

The thumbnail property is a NativeImage. There is no guarantee that the size of the thumbnail is the same as the thumbnailSize specified in the options passed to desktopCapturer.getSources. The actual size depends on the scale of the screen or window.

DesktopCapturerSource display_id property

The display_id property is a string. It is a unique identifier that will correspond to the id of the matching Display returned by the Screen API. On some platforms, this is equivalent to the XX portion of the id field and on others it will differ. It will be an empty string if not available.

DesktopCapturerSource appIcon property

The appIcon property is a NativeImage or null. It is an icon image of the application that owns the window, or null if the source has a type screen. The size of the icon is not known in advance and depends on what the application provides.

SerialPort object structure and fields

The SerialPort object has the following properties: - portId (string, required): Unique identifier for the port. - portName (string, required): Name of the port. - displayName (string, optional): A string suitable for display to the user for describing this device. - vendorId (string, optional): The USB vendor ID. - productId (string, optional): The USB product ID. - serialNumber (string, optional): The USB device serial number. - usbDriverName (string, optional, macOS only): Represents a single serial port on macOS can be enumerated by multiple drivers. - deviceInstanceId (string, optional, Windows only): A stable identifier on Windows that can be used for device permissions.

SharedTextureSubtle object structure

The SharedTextureSubtle object contains two methods: importSharedTexture and finishTransferSharedTexture. The importSharedTexture method accepts a textureInfo parameter of type SharedTextureImportTextureInfo and returns a SharedTextureImportedSubtle object. The finishTransferSharedTexture method accepts a transfer parameter of type SharedTextureTransfer and returns a SharedTextureImportedSubtle object.

importSharedTexture method

importSharedTexture is a function on SharedTextureSubtle that imports a shared texture from the given options. It takes a textureInfo parameter of type SharedTextureImportTextureInfo containing the information of the shared texture to import, and returns a SharedTextureImportedSubtle object representing the imported shared texture.

finishTransferSharedTexture method

finishTransferSharedTexture is a function on SharedTextureSubtle that finishes the transfer of a shared texture and retrieves the transferred shared texture. It takes a transfer parameter of type SharedTextureTransfer and returns a SharedTextureImportedSubtle object representing the imported shared texture from the transfer object.

Give your agent this brain