Skip to content

ISourceFlash

Defined in: core/source/iflash.ts:8

getAllowRightClick(): Promise<boolean>

Defined in: core/source/iflash.ts:48

return: Promise

Check if right click events are sent to the item or not.

item.getAllowRightClick().then(function(isRightClickAllowed) {
// The rest of your code here
});

Promise<boolean>


getCustomResolution(): Promise<Rectangle>

Defined in: core/source/iflash.ts:18

return: Promise

Gets the custom resolution (in pixels) for the item, if set, regardless of its layout on the mixer. Returns a (0, 0) Rectangle if no custom resolution has been set.

See also: #util/Rectangle Util/Rectangle

Promise<Rectangle>


getValue(): Promise<string | XML>

Defined in: core/source/iflash.ts:100

return: Promise

Gets the URL path of the image file used as a source

source.getValue().then(function(value) {
// Do something with the value
});

Promise<string | XML>


isSourceAvailable(): Promise<boolean>

Defined in: core/source/iflash.ts:84

return: Promise

Check if file used as source is available

item.isSourceAvailable().then(function(isAvail) {
// The rest of your code here
});

Promise<boolean>


setAllowRightClick(value): Promise<ISourceFlash>

Defined in: core/source/iflash.ts:69

param: (value:boolean)

return: Promise<Item>

Allow or disallow right click events to be sent to the item. Note that you can only catch right click events using mouseup/mousedown

Chainable

item.setAllowRightClick(true).then(function(item) {
// Promise resolves with the same Item instance
});

boolean

Promise<ISourceFlash>


setCustomResolution(value): Promise<ISourceFlash>

Defined in: core/source/iflash.ts:33

param: (value: Rectangle)

return: Promise<FlashSource>

Sets the custom resolution for the item regardless of its layout on the mixer

Chainable.

See also: #util/Rectangle Util/Rectangle

Rectangle

Promise<ISourceFlash>


setValue(value): Promise<any>

Defined in: core/source/iflash.ts:119

param: (value: string)

return: Promise<ISourcePlayback>

Set the image file to be used as source

source.setValue('C:\\SomeFolder\\SomeFile.png')
.then(function(source) {
// Promise resolves with same Source instance
});

string

Promise<any>