Skip to content

ElectronWebContents.getMediaSourceId method

ElectronWebContents › getMediaSourceId

Unofficial

Returns the identifier of a web contents stream.

Signature:

getMediaSourceId(requestWebContents: ElectronWebContents): string

Parameters:

Parameter Type Description
requestWebContents ElectronWebContents The web contents that would access the stream.

Returns: stringThe identifier of the web contents stream.