Skip to content

SourcePlayback

Defined in: core/source/iplayback.ts:276

new SourcePlayback(): SourcePlayback

SourcePlayback

getActionAfterPlayback(): Promise<ActionAfterPlayback>

Defined in: core/source/iplayback.ts:482

return: Promise

Gets the specified action after playback for this source is done (either playback reaches the end of the video, or the specified playback end position.)

See also: #core/ActionAfterPlayback Core/ActionAfterPlayback

Promise<ActionAfterPlayback>

ISourcePlayback.getActionAfterPlayback


getCuePoints(): Promise<CuePoint[]>

Defined in: core/source/iplayback.ts:677

return: Promise<CuePoint[]>

Gets the set of Cue Points created for this source.

See also: #core/CuePoint Core/CuePoint

Promise<CuePoint[]>

ISourcePlayback.getCuePoints


getPlaybackDuration(): Promise<number>

Defined in: core/source/iplayback.ts:346

return: Promise

Gets the total playback duration of this source in seconds. Precision is up to 100ns units.

Promise<number>

ISourcePlayback.getPlaybackDuration


getPlaybackEndPosition(): Promise<number>

Defined in: core/source/iplayback.ts:443

return: Promise

Gets the specified end position in seconds for this source, with precision up to 100ns. If playback reaches the end position, this source will then execute the specified action after playback (rewind, loop, etc.)

Promise<number>

ISourcePlayback.getPlaybackEndPosition


getPlaybackPosition(): Promise<number>

Defined in: core/source/iplayback.ts:307

return: Promise

Gets the playback position of this source in seconds. The system can store precision up to 100ns.

Promise<number>

ISourcePlayback.getPlaybackPosition


getPlaybackStartPosition(): Promise<number>

Defined in: core/source/iplayback.ts:404

return: Promise

Gets the specified start position in seconds for this source, with precision up to 100ns. If this source loops or is set to rewind, the playback position will return to the start position.

Promise<number>

ISourcePlayback.getPlaybackStartPosition


getValue(): Promise<string>

Defined in: core/source/iplayback.ts:763

return: Promise

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

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

Promise<string>

ISourcePlayback.getValue


isAudio(): Promise<boolean>

Defined in: core/source/iplayback.ts:725

return: Promise

Checks if this source’s file type is an audio file type.

Promise<boolean>

ISourcePlayback.isAudio


isAutostartOnSceneLoad(): Promise<boolean>

Defined in: core/source/iplayback.ts:521

return: Promise

Checks whether this source is set to start playback when the application switches to this source’s scene.

Promise<boolean>

ISourcePlayback.isAutostartOnSceneLoad


isForceDeinterlace(): Promise<boolean>

Defined in: core/source/iplayback.ts:560

return: Promise

Checks whether Force Deinterlace is active.

Promise<boolean>

ISourcePlayback.isForceDeinterlace


isPlaying(): Promise<boolean>

Defined in: core/source/iplayback.ts:365

return: Promise

Checks if current source is playing.

Promise<boolean>

ISourcePlayback.isPlaying


isRememberingPlaybackPosition(): Promise<boolean>

Defined in: core/source/iplayback.ts:599

return: Promise

Check whether this source should retain its playback position when switching scenes.

Promise<boolean>

ISourcePlayback.isRememberingPlaybackPosition


isSeekable(): Promise<boolean>

Defined in: core/source/iplayback.ts:288

return: Promise

Determines if it is possible to move the playback position of this media source. It is possible for some video formats to not allow seeking of the playback position.

Promise<boolean>

ISourcePlayback.isSeekable


isShowingPlaybackPosition(): Promise<boolean>

Defined in: core/source/iplayback.ts:638

return: Promise

Checks if this source is set to display its playback position.

Promise<boolean>

ISourcePlayback.isShowingPlaybackPosition


isVideo(): Promise<boolean>

Defined in: core/source/iplayback.ts:744

return: Promise

Checks if this source’s file type is a video file type.

Promise<boolean>

ISourcePlayback.isVideo


setActionAfterPlayback(value): Promise<SourcePlayback>

Defined in: core/source/iplayback.ts:501

param: (value: ActionAfterPlayback)

Sets the action to be executed on this source once playback is done (either playback reaches the end of the video, or the specified playback end position.)

Chainable.

See also: #core/ActionAfterPlayback Core/ActionAfterPlayback

ActionAfterPlayback

Promise<SourcePlayback>

ISourcePlayback.setActionAfterPlayback


setAutostartOnSceneLoad(value): Promise<SourcePlayback>

Defined in: core/source/iplayback.ts:540

param: (value: boolean)

Specifies whether this source is set to start playback when the application switches to this source’s scene.

Chainable.

boolean

Promise<SourcePlayback>

ISourcePlayback.setAutostartOnSceneLoad


setCuePoints(cuePoints): Promise<SourcePlayback>

Defined in: core/source/iplayback.ts:704

param: (value: CuePoint[])

Assign the specified array of Cue Points for this source.

Chainable.

See also: #core/CuePoint Core/CuePoint

CuePoint[]

Promise<SourcePlayback>

ISourcePlayback.setCuePoints


setForceDeinterlace(value): Promise<SourcePlayback>

Defined in: core/source/iplayback.ts:579

param: (value: boolean)

Sets the Force Deinterlace setting.

Chainable.

boolean

Promise<SourcePlayback>

ISourcePlayback.setForceDeinterlace


setPlaybackEndPosition(value): Promise<SourcePlayback>

Defined in: core/source/iplayback.ts:462

return: Promise

Sets the specified end position in seconds for this source, with precision up to 100ns. If playback reaches the end position, this source will then execute the specified action after playback (rewind, loop, etc.)

Chainable.

number

Promise<SourcePlayback>

ISourcePlayback.setPlaybackEndPosition


setPlaybackPosition(value): Promise<SourcePlayback>

Defined in: core/source/iplayback.ts:326

param: (value: number)

Sets the playback position of this source. Parameter is in seconds, up to a precision level of 100ns.

Chainable.

number

Promise<SourcePlayback>

ISourcePlayback.setPlaybackPosition


setPlaybackStartPosition(value): Promise<SourcePlayback>

Defined in: core/source/iplayback.ts:423

return: Promise

Sets the specified start position in seconds for this source, with precision up to 100ns. If this source loops or is set to rewind, the playback position will return to the start position.

Chainable.

number

Promise<SourcePlayback>

ISourcePlayback.setPlaybackStartPosition


setPlaying(value): Promise<SourcePlayback>

Defined in: core/source/iplayback.ts:384

param: (value: boolean)

Plays (or pauses playback for) this source.

Chainable.

boolean

Promise<SourcePlayback>

ISourcePlayback.setPlaying


setRememberingPlaybackPosition(value): Promise<SourcePlayback>

Defined in: core/source/iplayback.ts:618

param: (value: boolean)

Sets whether this source should retain its playback position when switching scenes.

Chainable.

boolean

Promise<SourcePlayback>

ISourcePlayback.setRememberingPlaybackPosition


setShowingPlaybackPosition(value): Promise<SourcePlayback>

Defined in: core/source/iplayback.ts:657

param: (value: boolean)

Sets whether this source should display its playback position.

Chainable.

boolean

Promise<SourcePlayback>

ISourcePlayback.setShowingPlaybackPosition


setValue(filename): Promise<SourcePlayback>

Defined in: core/source/iplayback.ts:783

param: (value: string)

return: Promise<ISourcePlayback>

Set the media file to be used as source

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

string

Promise<SourcePlayback>

ISourcePlayback.setValue