Skip to content

ElectronWebContents.getMediaSourceId method

ElectronWebContents › getMediaSourceId

Unofficial

Returns the identifier of a web contents stream.

Signature:

getMediaSourceId(requestWebContents: ElectronWebContents): string

Parameters:

ParameterTypeDescription
requestWebContentsElectronWebContentsThe web contents that would access the stream.

Returns: stringThe identifier of the web contents stream.