BrowserSource <Filters>
Hierarchy
- Input<BrowserSourceSettings, Filters>
- BrowserSource
Index
Constructors
Properties
Accessors
Methods
Constructors
constructor
Type parameters
- Filters: SourceFilters = {}
Parameters
args: CustomInputArgs<BrowserSourceSettings, Filters>
Returns BrowserSource<Filters>
Properties
audioMonitorType
audioSyncOffset
filters
itemInstances
kind
linked
muted
name
obs
settings
Set transitively in initialize if source exists Set manually in createFirstSceneItem if source doesn’t exist
Type declaration
optionalheight?: number
optionalreroute_audio?: boolean
optionalurl?: string
optionalwidth?: number
volume
Type declaration
db: number
mul: number
Accessors
exists
Whether this source has at least one scene item in OBS
Returns boolean
initialized
Whether
initialize
has been called on this source yetReturns boolean
Methods
addFilter
createSceneItemObject
Parameters
scene: Scene<{}, {}>
id: number
ref: string
Returns BrowserSourceItem<BrowserSource<Filters>>
An instance of SceneItem or a class that extends it.
fetchExists
Returns Promise<boolean>
fetchProperties
Fetches the input’s mute, volume, audio sync offset and audio monitor type from OBS and assigns them to the input
Returns Promise<void>
filter
Gets a filter from the input by its ref
Type parameters
- R: string | number | symbol
Parameters
ref: R
Returns Filters[R]
getDefaultSettings
Returns Promise<BrowserSourceSettings>
getPrivateSettings
8 Get a source’s private settings. This is an UNDOCUMENTED request of obs-websocket, and SHOULD NOT be used unless you know what you’re doing.
Returns Promise<Settings>
initialize
Parameters
obs: OBS
Returns Promise<void>
remove
Returns Promise<void>
setAudioMonitorType
Parameters
type: MonitoringType
Returns Promise<void>
setAudioSyncOffset
Parameters
offset: number
Returns Promise<void>
setMuted
Parameters
muted: boolean
Returns Promise<void>
setName
Parameters
name: string
Returns Promise<void>
setPrivateSettings
Set a source’s private settings. This is an UNDOCUMENTED request of obs-websocket, and SHOULD NOT be used unless you know what you’re doing.
Parameters
settings: Settings
Returns Promise<void>
setSettings
Parameters
settings: { height?: number; reroute_audio?: boolean; url?: string; width?: number }
Returns Promise<void>
setVolume
Parameters
data: { db?: number; mul?: number }
Returns Promise<void>
toggleMuted
Returns Promise<boolean>
Warning: BrowserSource items will not have correct properties when they are initialized, as browser sources are always created with a width and height of 0. If width and height are not provided in the source’s intial settings, it’s intial item will have a width and height of 0 until item.getProperties is called, or the source’s width and height are updated.