Murl Engine Lua Addon API  Version 1.0 beta
Murl.Graph.IPlayable

The IPlayable property interface.

This interface provides basic properties of a "playable" object, e.g. an audio or video sequence.


Table members

Methods


SetEndlessLoopEnabled(enabled)

Enable/disable endless looping. If set to true, the playable keeps looping through its source objects even when the timeline's actual time value is beyond the end of the sequence duration.

Boolean SetEndlessLoopEnabled(Boolean enabled)

Parameters
enabledIf true, endless looping is enabled.
Returns
Boolean true if successful.

IsEndlessLoopEnabled()

Check if endless looping is enabled.

Boolean IsEndlessLoopEnabled()

Returns
Boolean true if endless looping is enabled.

SetTimelineStallingEnabled(enabled)

Enable/disable timeline stalling. If set to true, the playable can stall the currently active timeline when e.g. there is no input data available or the decoding process lags behind. This is useful if other animations shall be synchronized to e.g. audio or video playback.

Boolean SetTimelineStallingEnabled(Boolean enabled)

Parameters
enabledIf true, timeline stalling is enabled.
Returns
Boolean true if successful.

IsTimelineStallingEnabled()

Check if timeline stalling is enabled.

Boolean IsTimelineStallingEnabled()

Returns
Boolean true if timeline stalling is enabled.

GetTotalDuration()

Get the total duration of the playable.

Number GetTotalDuration()

Returns
Number The total duration in seconds.