DisplayCaptureSource <Filters>
Hierarchy
- Input<DisplayCaptureSourceSettings, Filters>
- DisplayCaptureSource
Index
Constructors
Properties
Accessors
Methods
Constructors
constructor
Type parameters
- Filters: SourceFilters = {}
Parameters
args: CustomInputArgs<DisplayCaptureSourceSettings, Filters>
Returns DisplayCaptureSource<Filters>
Properties
audioMonitorType
audioSyncOffset
filters
itemInstances
kind
linked
muted
name
obs
settings
Type declaration
optionalcapture_cursor?: boolean
optionalmonitor?: 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 SceneItem<DisplayCaptureSource<Filters>, Scene<{}, {}>>
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<DisplayCaptureSourceSettings>
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: { capture_cursor?: boolean; monitor?: number }
overlay: boolean = true
Returns Promise<void>
setVolume
Parameters
data: { db?: number; mul?: number }
Returns Promise<void>
toggleMuted
Returns Promise<boolean>
Set transitively in initialize if source exists Set manually in createFirstSceneItem if source doesn’t exist