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

The IVideoSource graph node interface.

This interface represents a node referencing a read-only Resource::IVideo object, which can be played back by assigning it to one or more individual Graph::IVideoSequence nodes.


Table members

Methods


GetNodeInterface()

Get the constant Graph::INode interface. This method returns a constant pointer to the node's Graph::INode interface, to be able to query common node properties such as active state, visibility or ID.

Murl.Graph.INode GetNodeInterface()

Returns
Murl.Graph.INode The constant Graph::INode interface, or null if not available

GetVideoResourceTarget()

Get a constant Graph::IVideoResourceTarget container. This method returns a constant pointer to a Graph::IVideoResourceTarget container, which allows to query the video resources referenced by a node implementing this interface.

Murl.Graph.IGenericResourceTarget.ResourceIVideo GetVideoResourceTarget()

Returns
Murl.Graph.IGenericResourceTarget.ResourceIVideo The constant Graph::IVideoResourceTarget container, or null if not available

SetBufferType(type)

Set the video node's buffer type.

Boolean SetBufferType(Murl.IEnums.BufferType type)

Parameters
typeThe buffer type.
Returns
Boolean true if successful.

GetBufferType()

Get the video node's buffer type.

Murl.IEnums.BufferType GetBufferType()

Returns
Murl.IEnums.BufferType The buffer type.

GetDuration()

Get the duration of the video.

Number GetDuration()

Returns
Number The video duration in seconds.

AcquireVideoStream()

Get a video stream.

Murl.IVideoStream AcquireVideoStream()

Returns
Murl.IVideoStream The video stream, or null if not available.

ReleaseVideoStream(stream)

Release a previously acquired video stream.

Boolean ReleaseVideoStream(Murl.IVideoStream stream)

Parameters
streamThe video stream to release
Returns
Boolean true if successful.