native.newVideo()

Overview

Returns a video object that can be moved and rotated. This API supports local videos (in one of the system directories) or from a remote location (streaming).

Gotchas

This API is not available on Windows.

Native video objects are not part of the OpenGL canvas and do not obey the display object hierarchy, so they will always appear in front of normal display objects including images, text, and vector objects.

On Android, video objects do not rotate.

Syntax

native.newVideo( x, y, width, height )

x (required)

Number. The x coordinate that corresponds to the center of the video object.

y (required)

Number. The y coordinate that corresponds to the center of the video object.