Skip to content

ISourcePlayback

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

getActionAfterPlayback(): Promise<ActionAfterPlayback>

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

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>


getCuePoints(): Promise<CuePoint[]>

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

return: Promise<CuePoint[]>

Gets the set of Cue Points created for this source.

See also: #core/CuePoint Core/CuePoint

Promise<CuePoint[]>


getPlaybackDuration(): Promise<number>

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

return: Promise

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

Promise<number>


getPlaybackEndPosition(): Promise<number>

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

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>


getPlaybackPosition(): Promise<number>

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

return: Promise

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

Promise<number>


getPlaybackStartPosition(): Promise<number>

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

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>


getValue(): Promise<string | XML>

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

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 | XML>


isAudio(): Promise<boolean>

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

return: Promise

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

Promise<boolean>


isAutostartOnSceneLoad(): Promise<boolean>

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

return: Promise

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

Promise<boolean>


isForceDeinterlace(): Promise<boolean>

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

return: Promise

Checks whether Force Deinterlace is active.

Promise<boolean>


isPlaying(): Promise<boolean>

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

return: Promise

Checks if current source is playing.

Promise<boolean>


isRememberingPlaybackPosition(): Promise<boolean>

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

return: Promise

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

Promise<boolean>


isSeekable(): Promise<boolean>

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

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>


isShowingPlaybackPosition(): Promise<boolean>

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

return: Promise

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

Promise<boolean>


isVideo(): Promise<boolean>

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

return: Promise

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

Promise<boolean>


setActionAfterPlayback(value): Promise<ISourcePlayback>

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

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<ISourcePlayback>


setAutostartOnSceneLoad(value): Promise<ISourcePlayback>

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

param: (value: boolean)

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

Chainable.

boolean

Promise<ISourcePlayback>


setCuePoints(value): Promise<ISourcePlayback>

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

param: (value: CuePoint[])

Assign the specified array of Cue Points for this source.

Chainable.

See also: #core/CuePoint Core/CuePoint

CuePoint[]

Promise<ISourcePlayback>


setForceDeinterlace(value): Promise<ISourcePlayback>

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

param: (value: boolean)

Sets the Force Deinterlace setting.

Chainable.

boolean

Promise<ISourcePlayback>


setPlaybackEndPosition(value): Promise<ISourcePlayback>

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

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<ISourcePlayback>


setPlaybackPosition(value): Promise<ISourcePlayback>

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

param: (value: number)

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

Chainable.

number

Promise<ISourcePlayback>


setPlaybackStartPosition(value): Promise<ISourcePlayback>

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

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<ISourcePlayback>


setPlaying(value): Promise<ISourcePlayback>

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

param: (value: boolean)

Plays (or pauses playback for) this source.

Chainable.

boolean

Promise<ISourcePlayback>


setRememberingPlaybackPosition(value): Promise<ISourcePlayback>

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

param: (value: boolean)

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

Chainable.

boolean

Promise<ISourcePlayback>


setShowingPlaybackPosition(value): Promise<ISourcePlayback>

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

param: (value: boolean)

Sets whether this source should display its playback position.

Chainable.

boolean

Promise<ISourcePlayback>


setValue(value): Promise<any>

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

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<any>