Skip to content

VideoPlaylistItem

Defined in: core/items/videoplaylist.ts:62

The VideoPlaylistItem class represents the VideoPlaylist item that has been added to the stage.

Inherits from: #core/Item Core/Item

Implements: #core/IItemChroma Core/IItemChroma, #core/IItemColor Core/IItemColor, #core/IItemLayout Core/IItemLayout, #core/IItemTransition Core/IItemTransition, #core/ISourceConfigurable Core/ISourceConfigurable, #core/IAudio Core/IAudio

var XJS = require('xjs');
XJS.Scene.getActiveScene().then(function(scene) {
scene.getItems().then(function(items) {
for (var i in items) {
if (items[i] instanceof XJS.VideoPlaylistItem) {
// Manipulate your VideoPlaylist Item here
}
}
});
});

new VideoPlaylistItem(props?): VideoPlaylistItem

Defined in: core/items/item.ts:88

VideoPlaylistItem

Item.constructor

applyConfig: (configObj) => Promise<VideoPlaylistItem>

Defined in: core/items/videoplaylist.ts:499

See: #core/ISourceConfigurable#applyConfig applyConfig

any

Promise<VideoPlaylistItem>

ISourceConfigurable.applyConfig


bringForward: () => Promise<VideoPlaylistItem>

Defined in: core/items/videoplaylist.ts:103

See: #core/IItemLayout#bringForward bringForward

Promise<VideoPlaylistItem>

IItemLayout.bringForward

Item.bringForward


bringToFront: () => Promise<VideoPlaylistItem>

Defined in: core/items/videoplaylist.ts:108

See: #core/IItemLayout#bringToFront bringToFront

Promise<VideoPlaylistItem>

IItemLayout.bringToFront

Item.bringToFront


getActionAfterPlayback: () => Promise<ActionAfterPlayback>

Defined in: core/items/videoplaylist.ts:556

See: #core/ISourcePlayback#getActionAfterPlayback getActionAfterPlayback

Promise<ActionAfterPlayback>

ISourcePlayback.getActionAfterPlayback


getBorderColor: () => Promise<Color>

Defined in: core/items/videoplaylist.ts:255

See: #core/IItemColor#getBorderColor getBorderColor

Promise<Color>

IItemColor.getBorderColor


getBrightness: () => Promise<number>

Defined in: core/items/videoplaylist.ts:235

See: #core/IItemColor#getBrightness getBrightness

Promise<number>

IItemColor.getBrightness


getCanvasRotate: () => Promise<number>

Defined in: core/items/videoplaylist.ts:128

See: #core/IItemLayout#getCanvasRotate getCanvasRotate

Promise<number>

IItemLayout.getCanvasRotate

Item.getCanvasRotate


getChromaAntiAliasLevel: () => Promise<ChromaAntiAliasLevel>

Defined in: core/items/videoplaylist.ts:324

See: #core/IItemChroma#getChromaAntiAliasLevel getChromaAntiAliasLevel

Promise<ChromaAntiAliasLevel>

IItemChroma.getChromaAntiAliasLevel


getChromaColorKeyColor: () => Promise<Color>

Defined in: core/items/videoplaylist.ts:440

See: #core/IItemChroma#getChromaColorKeyColor getChromaColorKeyColor

Promise<Color>

IItemChroma.getChromaColorKeyColor


getChromaColorKeyExposure: () => Promise<number>

Defined in: core/items/videoplaylist.ts:430

See: #core/IItemChroma#getChromaColorKeyExposure getChromaColorKeyExposure

Promise<number>

IItemChroma.getChromaColorKeyExposure


getChromaColorKeyThreshold: () => Promise<number>

Defined in: core/items/videoplaylist.ts:420

See: #core/IItemChroma#getChromaColorKeyThreshold getChromaColorKeyThreshold

Promise<number>

IItemChroma.getChromaColorKeyThreshold


getChromaLegacyAlphaSmoothing: () => Promise<number>

Defined in: core/items/videoplaylist.ts:376

See: #core/IItemChroma#getChromaLegacyAlphaSmoothing getChromaLegacyAlphaSmoothing

Promise<number>

IItemChroma.getChromaLegacyAlphaSmoothing


getChromaLegacyBrightness: () => Promise<number>

Defined in: core/items/videoplaylist.ts:336

See: #core/IItemChroma#getChromaLegacyBrightness getChromaLegacyBrightness

Promise<number>

IItemChroma.getChromaLegacyBrightness


getChromaLegacyHue: () => Promise<number>

Defined in: core/items/videoplaylist.ts:356

See: #core/IItemChroma#getChromaLegacyHue getChromaLegacyHue

Promise<number>

IItemChroma.getChromaLegacyHue


getChromaLegacySaturation: () => Promise<number>

Defined in: core/items/videoplaylist.ts:346

See: #core/IItemChroma#getChromaLegacySaturation getChromaLegacySaturation

Promise<number>

IItemChroma.getChromaLegacySaturation


getChromaLegacyThreshold: () => Promise<number>

Defined in: core/items/videoplaylist.ts:366

See: #core/IItemChroma#getChromaLegacyThreshold getChromaLegacyThreshold

Promise<number>

IItemChroma.getChromaLegacyThreshold


getChromaRGBKeyExposure: () => Promise<number>

Defined in: core/items/videoplaylist.ts:408

See: #core/IItemChroma#getChromaRGBKeyExposure getChromaRGBKeyExposure

Promise<number>

IItemChroma.getChromaRGBKeyExposure


getChromaRGBKeyPrimaryColor: () => Promise<ChromaPrimaryColors>

Defined in: core/items/videoplaylist.ts:388

See: #core/IItemChroma#getChromaRGBKeyPrimaryColor getChromaRGBKeyPrimaryColor

Promise<ChromaPrimaryColors>

IItemChroma.getChromaRGBKeyPrimaryColor


getChromaRGBKeyThreshold: () => Promise<number>

Defined in: core/items/videoplaylist.ts:398

See: #core/IItemChroma#getChromaRGBKeyThreshold getChromaRGBKeyThreshold

Promise<number>

IItemChroma.getChromaRGBKeyThreshold


getContrast: () => Promise<number>

Defined in: core/items/videoplaylist.ts:240

See: #core/IItemColor#getContrast getContrast

Promise<number>

IItemColor.getContrast


getCropping: () => Promise<Object>

Defined in: core/items/videoplaylist.ts:133

See: #core/IItemLayout#getCropping getCropping

Promise<Object>

IItemLayout.getCropping

Item.getCropping


getCuePoints: () => Promise<CuePoint[]>

Defined in: core/items/videoplaylist.ts:606

See: #core/ISourcePlayback#getCuePoints getCuePoints

Promise<CuePoint[]>

ISourcePlayback.getCuePoints


getCustomName: () => Promise<string>

Defined in: core/items/item.ts:758

See: #core/Source#getCustomName getCustomName

Promise<string>

Item.getCustomName


getEnhancedRotate: () => Promise<number>

Defined in: core/items/videoplaylist.ts:138

See: #core/IItemLayout#getEnhancedRotate getEnhancedRotate

Promise<number>

IItemLayout.getEnhancedRotate

Item.getEnhancedRotate


getHue: () => Promise<number>

Defined in: core/items/videoplaylist.ts:245

See: #core/IItemColor#getHue getHue

Promise<number>

IItemColor.getHue


getId: () => Promise<string>

Defined in: core/items/item.ts:267

return: Promise

Get the ID of the Item

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

Promise<string>

Item.getId


getItemList: () => Promise<Item[]>

Defined in: core/items/item.ts:513

See: #core/Source#getItemList getItemList

Promise<Item[]>

Item.getItemList


getKeepLoaded: () => Promise<boolean>

Defined in: core/items/item.ts:773

See: #core/Source#getKeepLoaded getKeepLoaded

Promise<boolean>

Item.getKeepLoaded


getKeyingType: () => Promise<KeyingType>

Defined in: core/items/videoplaylist.ts:312

See: #core/IItemChroma#getKeyingType getKeyingType

Promise<KeyingType>

IItemChroma.getKeyingType


getName: () => Promise<string>

Defined in: core/items/item.ts:748

See: #core/Source#getName getName

Promise<string>

Item.getName


getPlaybackDuration: () => Promise<number>

Defined in: core/items/videoplaylist.ts:521

See: #core/ISourcePlayback#getPlaybackDuration getPlaybackDuration

Promise<number>

ISourcePlayback.getPlaybackDuration


getPlaybackEndPosition: () => Promise<number>

Defined in: core/items/videoplaylist.ts:546

See: #core/ISourcePlayback#getPlaybackEndPosition getPlaybackEndPosition

Promise<number>

ISourcePlayback.getPlaybackEndPosition


getPlaybackPosition: () => Promise<number>

Defined in: core/items/videoplaylist.ts:511

See: #core/ISourcePlayback#getPlaybackPosition getPlaybackPosition

Promise<number>

ISourcePlayback.getPlaybackPosition


getPlaybackStartPosition: () => Promise<number>

Defined in: core/items/videoplaylist.ts:536

See: #core/ISourcePlayback#getPlaybackStartPosition getPlaybackStartPosition

Promise<number>

ISourcePlayback.getPlaybackStartPosition


getPosition: () => Promise<Rectangle>

Defined in: core/items/videoplaylist.ts:143

See: #core/IItemLayout#getPosition getPosition

Promise<Rectangle>

IItemLayout.getPosition

Item.getPosition


getRotateX: () => Promise<number>

Defined in: core/items/videoplaylist.ts:153

See: #core/IItemLayout#getRotateX getRotateX

Promise<number>

IItemLayout.getRotateX

Item.getRotateX


getRotateY: () => Promise<number>

Defined in: core/items/videoplaylist.ts:148

See: #core/IItemLayout#getRotateY getRotateY

Promise<number>

IItemLayout.getRotateY

Item.getRotateY


getRotateZ: () => Promise<number>

Defined in: core/items/videoplaylist.ts:158

See: #core/IItemLayout#getRotateZ getRotateZ

Promise<number>

IItemLayout.getRotateZ

Item.getRotateZ


getSaturation: () => Promise<number>

Defined in: core/items/videoplaylist.ts:250

See: #core/IItemColor#getSaturation getSaturation

Promise<number>

IItemColor.getSaturation


getTransition: () => Promise<Transition>

Defined in: core/items/videoplaylist.ts:462

See: #core/IItemTransition#getTransition getTransition

Promise<Transition>

IItemTransition.getTransition


getTransitionTime: () => Promise<number>

Defined in: core/items/videoplaylist.ts:472

See: #core/IItemTransition#getTransitionTime getTransitionTime

Promise<number>

IItemTransition.getTransitionTime


getTransparency: () => Promise<number>

Defined in: core/items/videoplaylist.ts:230

See: #core/IItemColor#getTransparency getTransparency

Promise<number>

IItemColor.getTransparency


getType: () => Promise<ItemTypes>

Defined in: core/items/item.ts:786

See: #core/Source#getType getType

Promise<ItemTypes>

Item.getType


getValue: () => Promise<string | XML>

Defined in: core/items/item.ts:763

See: #core/Source#getValue getValue

Promise<string | XML>

ISourcePlayback.getValue

Item.getValue


getVideoNowPlaying: () => Promise<string>

Defined in: core/items/videoplaylist.ts:78

See: #core/VideoPlaylistSource#getVideoNowPlaying getVideoNowPlaying

Promise<string>

ISourceVideoPlaylist.getVideoNowPlaying


getVideoPlaylistSources: () => Promise<string[]>

Defined in: core/items/videoplaylist.ts:88

See: #core/VideoPlaylistSource#getVideoPlaylistSources getVideoPlaylistSources

Promise<string[]>

ISourceVideoPlaylist.getVideoPlaylistSources


getVolume: () => Promise<number>

Defined in: core/items/videoplaylist.ts:630

See: #core/IAudio#getVolume getVolume

Promise<number>

IAudio.getVolume


isAudio: () => Promise<boolean>

Defined in: core/items/videoplaylist.ts:620

See: #core/ISourcePlayback#isAudio isAudio

Promise<boolean>

ISourcePlayback.isAudio


isAudioAvailable: () => Promise<boolean>

Defined in: core/items/videoplaylist.ts:654

See: #core/IAudio#isAudioAvailable isAudioAvailable

Promise<boolean>

IAudio.isAudioAvailable


isAutoMute: () => Promise<boolean>

Defined in: core/items/videoplaylist.ts:636

See: #core/IAudio#isAutoMute isAutoMute

Promise<boolean>

IAudio.isAutoMute


isAutostartOnSceneLoad: () => Promise<boolean>

Defined in: core/items/videoplaylist.ts:566

See: #core/ISourcePlayback#isAutostartOnSceneLoad isAutostartOnSceneLoad

Promise<boolean>

ISourcePlayback.isAutostartOnSceneLoad


isChromaEnabled: () => Promise<boolean>

Defined in: core/items/videoplaylist.ts:302

See: #core/IItemChroma#isChromaEnabled isChromaEnabled

Promise<boolean>

IItemChroma.isChromaEnabled


isEnhancedResizeEnabled: () => Promise<boolean>

Defined in: core/items/videoplaylist.ts:123

See: #core/IItemLayout#isEnhancedResizeEnabled isEnhancedResizeEnabled

Promise<boolean>

IItemLayout.isEnhancedResizeEnabled

Item.isEnhancedResizeEnabled


isForceDeinterlace: () => Promise<boolean>

Defined in: core/items/videoplaylist.ts:576

See: #core/ISourcePlayback#isForceDeinterlace isForceDeinterlace

Promise<boolean>

ISourcePlayback.isForceDeinterlace


isFullDynamicColorRange: () => Promise<boolean>

Defined in: core/items/videoplaylist.ts:260

See: #core/IItemColor#isFullDynamicColorRange isFullDynamicColorRange

Promise<boolean>

IItemColor.isFullDynamicColorRange


isKeepAspectRatio: () => Promise<boolean>

Defined in: core/items/videoplaylist.ts:113

See: #core/IItemLayout#isKeepAspectRatio isKeepAspectRatio

Promise<boolean>

IItemLayout.isKeepAspectRatio

Item.isKeepAspectRatio


isMute: () => Promise<boolean>

Defined in: core/items/videoplaylist.ts:633

See: #core/IAudio#isMute isMute

Promise<boolean>

IAudio.isMute


isPlaying: () => Promise<boolean>

Defined in: core/items/videoplaylist.ts:526

See: #core/ISourcePlayback#isPlaying isPlaying

Promise<boolean>

ISourcePlayback.isPlaying


isPositionLocked: () => Promise<boolean>

Defined in: core/items/videoplaylist.ts:118

See: #core/IItemLayout#isPositionLocked isPositionLocked

Promise<boolean>

IItemLayout.isPositionLocked

Item.isPositionLocked


isRememberingPlaybackPosition: () => Promise<boolean>

Defined in: core/items/videoplaylist.ts:586

See: #core/ISourcePlayback#isRememberingPlaybackPosition isRememberingPlaybackPosition

Promise<boolean>

ISourcePlayback.isRememberingPlaybackPosition


isSeekable: () => Promise<boolean>

Defined in: core/items/videoplaylist.ts:506

See: #core/ISourcePlayback#isSeekable isSeekable

Promise<boolean>

ISourcePlayback.isSeekable


isShowingPlaybackPosition: () => Promise<boolean>

Defined in: core/items/videoplaylist.ts:596

See: #core/ISourcePlayback#isShowingPlaybackPosition isShowingPlaybackPosition

Promise<boolean>

ISourcePlayback.isShowingPlaybackPosition


isSourceAvailable: () => Promise<boolean>

Defined in: core/items/videoplaylist.ts:96

See: #core/VideoPlaylistSource#isSourceAvailable isSourceAvailable

Promise<boolean>

ISourceVideoPlaylist.isSourceAvailable


isStreamOnlyAudio: () => Promise<boolean>

Defined in: core/items/videoplaylist.ts:648

See: #core/IAudio#isStreamOnlyAudio isStreamOnlyAudio

Promise<boolean>

IAudio.isStreamOnlyAudio


isVideo: () => Promise<boolean>

Defined in: core/items/videoplaylist.ts:625

See: #core/ISourcePlayback#isVideo isVideo

Promise<boolean>

ISourcePlayback.isVideo


isVisible: () => Promise<boolean>

Defined in: core/items/videoplaylist.ts:452

See: #core/IItemTransition#isVisible isVisible

Promise<boolean>

IItemTransition.isVisible


loadConfig: () => Promise<any>

Defined in: core/items/videoplaylist.ts:484

See: #core/ISourceConfigurable#loadConfig loadConfig

Promise<any>

ISourceConfigurable.loadConfig


refresh: () => Promise<Source>

Defined in: core/items/item.ts:783

See: #core/Source#refresh refresh

Promise<Source>

Item.refresh


requestSaveConfig: (configObj) => Promise<VideoPlaylistItem>

Defined in: core/items/videoplaylist.ts:494

See: #core/ISourceConfigurable#requestSaveConfig requestSaveConfig

any

Promise<VideoPlaylistItem>

ISourceConfigurable.requestSaveConfig


saveConfig: (configObj) => Promise<VideoPlaylistItem>

Defined in: core/items/videoplaylist.ts:489

See: #core/ISourceConfigurable#saveConfig saveConfig

any

Promise<VideoPlaylistItem>

ISourceConfigurable.saveConfig


sendBackward: () => Promise<VideoPlaylistItem>

Defined in: core/items/videoplaylist.ts:163

See: #core/IItemLayout#sendBackward sendBackward

Promise<VideoPlaylistItem>

IItemLayout.sendBackward

Item.sendBackward


sendToBack: () => Promise<VideoPlaylistItem>

Defined in: core/items/videoplaylist.ts:168

See: #core/IItemLayout#sendToBack sendToBack

Promise<VideoPlaylistItem>

IItemLayout.sendToBack

Item.sendToBack


setActionAfterPlayback: (value) => Promise<VideoPlaylistItem>

Defined in: core/items/videoplaylist.ts:561

See: #core/ISourcePlayback#setActionAfterPlayback setActionAfterPlayback

ActionAfterPlayback

Promise<VideoPlaylistItem>

ISourcePlayback.setActionAfterPlayback


setAutoMute: (value) => Promise<VideoPlaylistItem>

Defined in: core/items/videoplaylist.ts:645

See: #core/IAudio#setAutoMute setAutoMute

boolean

Promise<VideoPlaylistItem>

IAudio.setAutoMute


setAutostartOnSceneLoad: (value) => Promise<VideoPlaylistItem>

Defined in: core/items/videoplaylist.ts:571

See: #core/ISourcePlayback#setAutostartOnSceneLoad setAutostartOnSceneLoad

boolean

Promise<VideoPlaylistItem>

ISourcePlayback.setAutostartOnSceneLoad


setBorderColor: (value) => Promise<VideoPlaylistItem>

Defined in: core/items/videoplaylist.ts:290

See: #core/IItemColor#setBorderColor setBorderColor

Color

Promise<VideoPlaylistItem>

IItemColor.setBorderColor


setBrightness: (value) => Promise<VideoPlaylistItem>

Defined in: core/items/videoplaylist.ts:270

See: #core/IItemColor#setBrightness setBrightness

number

Promise<VideoPlaylistItem>

IItemColor.setBrightness


setCanvasRotate: (value) => Promise<VideoPlaylistItem>

Defined in: core/items/videoplaylist.ts:173

See: #core/IItemLayout#setCanvasRotate setCanvasRotate

number

Promise<VideoPlaylistItem>

IItemLayout.setCanvasRotate

Item.setCanvasRotate


setChromaAntiAliasLevel: (value) => Promise<VideoPlaylistItem>

Defined in: core/items/videoplaylist.ts:329

See: #core/IItemChroma#setChromaAntiAliasLevel setChromaAntiAliasLevel

ChromaAntiAliasLevel

Promise<VideoPlaylistItem>

IItemChroma.setChromaAntiAliasLevel


setChromaColorKeyColor: (value) => Promise<VideoPlaylistItem>

Defined in: core/items/videoplaylist.ts:445

See: #core/IItemChroma#setChromaColorKeyColor setChromaColorKeyColor

Color

Promise<VideoPlaylistItem>

IItemChroma.setChromaColorKeyColor


setChromaColorKeyExposure: (value) => Promise<VideoPlaylistItem>

Defined in: core/items/videoplaylist.ts:435

See: #core/IItemChroma#setChromaColorKeyExposure setChromaColorKeyExposure

number

Promise<VideoPlaylistItem>

IItemChroma.setChromaColorKeyExposure


setChromaColorKeyThreshold: (value) => Promise<VideoPlaylistItem>

Defined in: core/items/videoplaylist.ts:425

See: #core/IItemChroma#setChromaColorKeyThreshold setChromaColorKeyThreshold

number

Promise<VideoPlaylistItem>

IItemChroma.setChromaColorKeyThreshold


setChromaEnabled: (value) => Promise<VideoPlaylistItem>

Defined in: core/items/videoplaylist.ts:307

See: #core/IItemChroma#setChromaEnabled setChromaEnabled

boolean

Promise<VideoPlaylistItem>

IItemChroma.setChromaEnabled


setChromaLegacyAlphaSmoothing: (value) => Promise<VideoPlaylistItem>

Defined in: core/items/videoplaylist.ts:381

See: #core/IItemChroma#setChromaLegacyAlphaSmoothing setChromaLegacyAlphaSmoothing

number

Promise<VideoPlaylistItem>

IItemChroma.setChromaLegacyAlphaSmoothing


setChromaLegacyBrightness: (value) => Promise<VideoPlaylistItem>

Defined in: core/items/videoplaylist.ts:341

See: #core/IItemChroma#setChromaLegacyBrightness setChromaLegacyBrightness

number

Promise<VideoPlaylistItem>

IItemChroma.setChromaLegacyBrightness


setChromaLegacyHue: (value) => Promise<VideoPlaylistItem>

Defined in: core/items/videoplaylist.ts:361

See: #core/IItemChroma#setChromaLegacyHue setChromaLegacyHue

number

Promise<VideoPlaylistItem>

IItemChroma.setChromaLegacyHue


setChromaLegacySaturation: (value) => Promise<VideoPlaylistItem>

Defined in: core/items/videoplaylist.ts:351

See: #core/IItemChroma#setChromaLegacySaturation setChromaLegacySaturation

number

Promise<VideoPlaylistItem>

IItemChroma.setChromaLegacySaturation


setChromaLegacyThreshold: (value) => Promise<VideoPlaylistItem>

Defined in: core/items/videoplaylist.ts:371

See: #core/IItemChroma#setChromaLegacyThreshold setChromaLegacyThreshold

number

Promise<VideoPlaylistItem>

IItemChroma.setChromaLegacyThreshold


setChromaRGBKeyExposure: (value) => Promise<VideoPlaylistItem>

Defined in: core/items/videoplaylist.ts:413

See: #core/IItemChroma#setChromaRGBKeyExposure setChromaRGBKeyExposure

number

Promise<VideoPlaylistItem>

IItemChroma.setChromaRGBKeyExposure


setChromaRGBKeyPrimaryColor: (value) => Promise<VideoPlaylistItem>

Defined in: core/items/videoplaylist.ts:393

See: #core/IItemChroma#setChromaRGBKeyPrimaryColor setChromaRGBKeyPrimaryColor

ChromaPrimaryColors

Promise<VideoPlaylistItem>

IItemChroma.setChromaRGBKeyPrimaryColor


setChromaRGBKeyThreshold: (value) => Promise<VideoPlaylistItem>

Defined in: core/items/videoplaylist.ts:403

See: #core/IItemChroma#setChromaRGBKeyThreshold setChromaRGBKeyThreshold

number

Promise<VideoPlaylistItem>

IItemChroma.setChromaRGBKeyThreshold


setContrast: (value) => Promise<VideoPlaylistItem>

Defined in: core/items/videoplaylist.ts:275

See: #core/IItemColor#setContrast setContrast

number

Promise<VideoPlaylistItem>

IItemColor.setContrast


setCropping: (value) => Promise<VideoPlaylistItem>

Defined in: core/items/videoplaylist.ts:178

See: #core/IItemLayout#setCropping setCropping

Object

Promise<VideoPlaylistItem>

IItemLayout.setCropping

Item.setCropping


setCroppingEnhanced: (value) => Promise<VideoPlaylistItem>

Defined in: core/items/videoplaylist.ts:183

See: #core/IItemLayout#setCroppingEnhanced setCroppingEnhanced

Object

Promise<VideoPlaylistItem>

IItemLayout.setCroppingEnhanced

Item.setCroppingEnhanced


setCuePoints: (value) => Promise<VideoPlaylistItem>

Defined in: core/items/videoplaylist.ts:611

See: #core/ISourcePlayback#setCuePoints setCuePoints

CuePoint[]

Promise<VideoPlaylistItem>

ISourcePlayback.setCuePoints


setCustomName: () => Promise<Item>

Defined in: core/items/item.ts:753

See: #core/Source#setCustomName setCustomName

Promise<Item>

Item.setCustomName


setEnhancedResizeEnabled: (value) => Promise<VideoPlaylistItem>

Defined in: core/items/videoplaylist.ts:203

See: #core/IItemLayout#setEnhancedResizeEnabled setEnhancedResizeEnabled

boolean

Promise<VideoPlaylistItem>

IItemLayout.setEnhancedResizeEnabled

Item.setEnhancedResizeEnabled


setEnhancedRotate: (value) => Promise<VideoPlaylistItem>

Defined in: core/items/videoplaylist.ts:188

See: #core/IItemLayout#setEnhancedRotate setEnhancedRotate

number

Promise<VideoPlaylistItem>

IItemLayout.setEnhancedRotate

Item.setEnhancedRotate


setForceDeinterlace: (value) => Promise<VideoPlaylistItem>

Defined in: core/items/videoplaylist.ts:581

See: #core/ISourcePlayback#setForceDeinterlace setForceDeinterlace

boolean

Promise<VideoPlaylistItem>

ISourcePlayback.setForceDeinterlace


setFullDynamicColorRange: (value) => Promise<VideoPlaylistItem>

Defined in: core/items/videoplaylist.ts:295

See: #core/IItemColor#setFullDynamicColorRange setFullDynamicColorRange

boolean

Promise<VideoPlaylistItem>

IItemColor.setFullDynamicColorRange


setHue: (value) => Promise<VideoPlaylistItem>

Defined in: core/items/videoplaylist.ts:280

See: #core/IItemColor#setHue setHue

number

Promise<VideoPlaylistItem>

IItemColor.setHue


setKeepAspectRatio: (value) => Promise<VideoPlaylistItem>

Defined in: core/items/videoplaylist.ts:193

See: #core/IItemLayout#setKeepAspectRatio setKeepAspectRatio

boolean

Promise<VideoPlaylistItem>

IItemLayout.setKeepAspectRatio

Item.setKeepAspectRatio


setKeepLoaded: (value) => Promise<Item>

Defined in: core/items/item.ts:778

See: #core/Source#setKeepLoaded setKeepLoaded

boolean

Promise<Item>

Item.setKeepLoaded


setKeyingType: (value) => Promise<VideoPlaylistItem>

Defined in: core/items/videoplaylist.ts:317

See: #core/IItemChroma#setKeyingType setKeyingType

KeyingType

Promise<VideoPlaylistItem>

IItemChroma.setKeyingType


setMute: (value) => Promise<VideoPlaylistItem>

Defined in: core/items/videoplaylist.ts:642

See: #core/IAudio#setMute setMute

boolean

Promise<VideoPlaylistItem>

IAudio.setMute


setName: (value) => Promise<Item>

Defined in: core/items/item.ts:743

See: #core/Source#setName setName

string

Promise<Item>

Item.setName


setPlaybackEndPosition: (value) => Promise<VideoPlaylistItem>

Defined in: core/items/videoplaylist.ts:551

See: #core/ISourcePlayback#setPlaybackEndPosition setPlaybackEndPosition

number

Promise<VideoPlaylistItem>

ISourcePlayback.setPlaybackEndPosition


setPlaybackPosition: (value) => Promise<VideoPlaylistItem>

Defined in: core/items/videoplaylist.ts:516

See: #core/ISourcePlayback#setPlaybackPosition setPlaybackPosition

number

Promise<VideoPlaylistItem>

ISourcePlayback.setPlaybackPosition


setPlaybackStartPosition: (value) => Promise<VideoPlaylistItem>

Defined in: core/items/videoplaylist.ts:541

See: #core/ISourcePlayback#setPlaybackStartPosition setPlaybackStartPosition

number

Promise<VideoPlaylistItem>

ISourcePlayback.setPlaybackStartPosition


setPlaying: (value) => Promise<VideoPlaylistItem>

Defined in: core/items/videoplaylist.ts:531

See: #core/ISourcePlayback#setPlaying setPlaying

boolean

Promise<VideoPlaylistItem>

ISourcePlayback.setPlaying


setPosition: (value) => Promise<VideoPlaylistItem>

Defined in: core/items/videoplaylist.ts:208

See: #core/IItemLayout#setPosition setPosition

Rectangle

Promise<VideoPlaylistItem>

IItemLayout.setPosition

Item.setPosition


setPositionLocked: (value) => Promise<VideoPlaylistItem>

Defined in: core/items/videoplaylist.ts:198

See: #core/IItemLayout#setPositionLocked setPositionLocked

boolean

Promise<VideoPlaylistItem>

IItemLayout.setPositionLocked

Item.setPositionLocked


setRememberingPlaybackPosition: (value) => Promise<VideoPlaylistItem>

Defined in: core/items/videoplaylist.ts:591

See: #core/ISourcePlayback#setRememberingPlaybackPosition setRememberingPlaybackPosition

boolean

Promise<VideoPlaylistItem>

ISourcePlayback.setRememberingPlaybackPosition


setRotateX: (value) => Promise<VideoPlaylistItem>

Defined in: core/items/videoplaylist.ts:218

See: #core/IItemLayout#setRotateX setRotateX

number

Promise<VideoPlaylistItem>

IItemLayout.setRotateX

Item.setRotateX


setRotateY: (value) => Promise<VideoPlaylistItem>

Defined in: core/items/videoplaylist.ts:213

See: #core/IItemLayout#setRotateY setRotateY

number

Promise<VideoPlaylistItem>

IItemLayout.setRotateY

Item.setRotateY


setRotateZ: (value) => Promise<VideoPlaylistItem>

Defined in: core/items/videoplaylist.ts:223

See: #core/IItemLayout#setRotateZ setRotateZ

number

Promise<VideoPlaylistItem>

IItemLayout.setRotateZ

Item.setRotateZ


setSaturation: (value) => Promise<VideoPlaylistItem>

Defined in: core/items/videoplaylist.ts:285

See: #core/IItemColor#setSaturation setSaturation

number

Promise<VideoPlaylistItem>

IItemColor.setSaturation


setShowingPlaybackPosition: (value) => Promise<VideoPlaylistItem>

Defined in: core/items/videoplaylist.ts:601

See: #core/ISourcePlayback#setShowingPlaybackPosition setShowingPlaybackPosition

boolean

Promise<VideoPlaylistItem>

ISourcePlayback.setShowingPlaybackPosition


setStreamOnlyAudio: (value) => Promise<VideoPlaylistItem>

Defined in: core/items/videoplaylist.ts:651

See: #core/IAudio#setStreamOnlyAudio setStreamOnlyAudio

boolean

Promise<VideoPlaylistItem>

IAudio.setStreamOnlyAudio


setTransition: (value) => Promise<VideoPlaylistItem>

Defined in: core/items/videoplaylist.ts:467

See: #core/IItemTransition#setTransition setTransition

Transition

Promise<VideoPlaylistItem>

IItemTransition.setTransition


setTransitionTime: (value) => Promise<VideoPlaylistItem>

Defined in: core/items/videoplaylist.ts:477

See: #core/IItemTransition#setTransitionTime setTransitionTime

number

Promise<VideoPlaylistItem>

IItemTransition.setTransitionTime


setTransparency: (value) => Promise<VideoPlaylistItem>

Defined in: core/items/videoplaylist.ts:265

See: #core/IItemColor#setTransparency setTransparency

number

Promise<VideoPlaylistItem>

IItemColor.setTransparency


setValue: (value) => Promise<Item>

Defined in: core/items/item.ts:768

See: #core/Source#setValue setValue

string | XML

Promise<Item>

ISourcePlayback.setValue

Item.setValue


setVideoNowPlaying: (value) => Promise<SourceVideoPlaylist>

Defined in: core/items/videoplaylist.ts:83

See: #core/VideoPlaylistSource#setVideoNowPlaying setVideoNowPlaying

string | number

Promise<SourceVideoPlaylist>

ISourceVideoPlaylist.setVideoNowPlaying


setVideoPlaylistSources: (fileItems) => Promise<SourceVideoPlaylist>

Defined in: core/items/videoplaylist.ts:93

See: #core/VideoPlaylistSource#setVideoPlaylistSources setVideoPlaylistSources

string[]

Promise<SourceVideoPlaylist>

ISourceVideoPlaylist.setVideoPlaylistSources


setVisible: (value) => Promise<VideoPlaylistItem>

Defined in: core/items/videoplaylist.ts:457

See: #core/IItemTransition#setVisible setVisible

boolean

Promise<VideoPlaylistItem>

IItemTransition.setVisible


setVolume: (value) => Promise<VideoPlaylistItem>

Defined in: core/items/videoplaylist.ts:639

See: #core/IAudio#setVolume setVolume

number

Promise<VideoPlaylistItem>

IAudio.setVolume


static _emitter: EventEmitter

Defined in: core/items/item.ts:85

Item._emitter


static _subscriptions: any[] = []

Defined in: core/items/item.ts:86

Item._subscriptions

duplicate(options?): Promise<Item>

Defined in: core/items/item.ts:416

param: (options: {linked?:, scene?: })

return: Promise<Item>

Duplicate an item into the current scene or to a specified scene as Linked or Unlinked.

Linked items would generally have a single source, and any changes in the property of an item would be applied to all linked items.

Chainable

// item pertains to an actual Item instance
// Sample 1
item.duplicate() // duplicate selected item to the current scene as unlinked

Duplicate the selected item to a specific scene and set it to be linked to a single source with the original item.

// Sample 2
var toScene = xjs.Scene.getById(2)
item.duplicate({linked:true, scene:toScene})

boolean

number | Scene

Promise<Item>

Item.duplicate


getFPS(): Promise<number>

Defined in: core/items/item.ts:282

return: Promise

Get the frames rendered per second of an item

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

Promise<number>

Item.getFPS


getParentItem(): Promise<Item>

Defined in: core/items/item.ts:587

return: Promise

Get the GroupItem that contains this item. This rejects if item is not a child item or non-existent

item.getParentItem()
.then(function(parentItem) {
console.log(parentItem);
});

Promise<Item>

Item.getParentItem


getSceneId(): Promise<string | number>

Defined in: core/items/item.ts:351

return: Promise<number|string>

Get (1-indexed) Scene ID where the source is loaded

source.getSceneId().then(function(id) {
// The rest of your code here
});

Promise<string | number>

Item.getSceneId


getSource(): Promise<Source>

Defined in: core/items/item.ts:530

return: Promise

Gets the Source of an item, linked items would only have 1 source.

Chainable

item.getSource().then(function(source) {
//Manipulate source here
source.setName('New Name')
})

Promise<Source>

Item.getSource


getView(): Promise<ViewTypes>

Defined in: core/items/item.ts:320

return: Promise

Get the view type of the item

item.getView().then(function(view) {
// view values:
// 0 = main view
// 1 = preview editor
// 2 = thumbnail preview
})

Promise<ViewTypes>

Item.getView


isChildItem(): Promise<boolean>

Defined in: core/items/item.ts:558

return: Promise

Checks if item is part of a group

item.isChildItem()
.then(function(isChild) {
console.log(isChild);
});

Promise<boolean>

Item.isChildItem


off(event, handler): void

Defined in: core/items/item.ts:224

param: (event: string, handler: Function)

Removes specificied event handler bound by on. Note that this can only be done for named function handlers.

let itemChange = function(...args) {
console.log('Item has changed');
}
let current;
let items;
xjs.Scene.getActiveScene()
.then( scene => {
current = scene;
return current.getItems();
}).then( list => {
items = list;
items[0].on('item-changed', itemChange);
setTimeout( ()=> {
items[0].off('item-changed', itemChange);
}, 10000);
});

string

Function

void

Item.off


on(event, handler): void

Defined in: core/items/item.ts:126

param: (event: string, handler: Function)

Allows listening to events per instance. Currently there are only two: item-changed and item-destroyed.

Item change is triggered thru any property change:

  • via js(source plugin/extension),
  • via visibility-toggling through the sources list,
  • or via the source properties dialog
let itemChange = function(...args) {
console.log('Item has changed');
}
let current;
let items;
xjs.Scene.getActiveScene()
.then( scene => {
current = scene;
return current.getItems();
}).then( list => {
items = list;
items[0].on('item-changed', itemChange);
});

Duplicate handlers are allowed.

string

Function

void

Item.on


remove(): Promise<boolean>

Defined in: core/items/item.ts:504

return: Promise

Removes selected item

item.remove()

Promise<boolean>

Item.remove


toXML(): XML

Defined in: core/items/item.ts:373

return: XML

Convert the Item object to an XML object. Use toString() to get the string version of the returned object.

var xml = item.toXML();

XML

Item.toXML


unlink(): Promise<Item>

Defined in: core/items/item.ts:486

return: Promise

Unlinks selected item.

Unlinks an item to the source of other linked items and renders its own source.

item.unlink()

Note: Once you unlink an Item, there’s still no method to reverse the process.

Promise<Item>

Item.unlink


static getAllSources(): Promise<Source[]>

Defined in: core/source/source.ts:220

return: Promise<Source[]>

Get all unique Source from every scene. Total number of Sources returned may be less than total number of items on all the scenes due to Linked items only having a single Source.

xjs.Source.getAllSources().then(function(sources) {
for(var i = 0 ; i < sources.length ; i++) {
if(sources[i] instanceof xjs.HtmlSource) {
// Manipulate HTML Source here
}
}
})

Promise<Source[]>

Item.getAllSources


static getCurrentSource(): Promise<Source>

Defined in: core/source/source.ts:108

return: Promise

Get the current source (when function is called by sources), or the source that was right-clicked to open the source properties window (when function is called from the source properties window)

xjs.Source.getCurrentSource().then(function(source) {
// This will fetch the current source (the plugin)
}).catch(function(err) {
// Handle the error here. Errors would only occur
// if we try to execute this method on Extension plugins
});

Promise<Source>

Item.getCurrentSource


static getItemList(): Promise<Item[]>

Defined in: core/items/item.ts:248

return: Promise<Item[]>

Gets the list of linked items of the current Item. Linked items are items linked to a single source.

xjs.Item.getItemList().then(function(items) {
for (var i = 0 ; i < items.length ; i++) {
// Manipulate each item here
items[i].setKeepAspectRatio(true);
}
})

This is simply a shortcut to: xjs.Item.getCurrentSource() -> source.getItemList()

Promise<Item[]>

Item.getItemList