Details
Properties (5)
-
active
-
<attribute name="active" value="false" />
public read-only var active;
Flag that tracks if there's device activity (audio sound, video motion).
-
allowed
-
<attribute name="allowed" />
public read-only var allowed;
Shared flag defined in mediadevice.prototype that
tracks whether the user has allowed device access.
Default: false.
True after user has accepted security dialog,
false if the user denies access with security dialog.
Note: allowed is not defined in objects, but in the prototype.
Initialized in the script at the end of the file.
-
capturing
-
<attribute name="capturing" value="true" />
Boolean flag that controls if the media device
is currently capturing input.
-
deviceindex
-
<attribute name="deviceindex" value="null" />
Zero-based index of the device, or null for user's default device.
Default is null, which selects the default device.
When the default device is initialized, deviceindex is updated to
its actual index.
-
devicename
-
<attribute name="devicename" type="string" value="" />
public read-only var devicename : String;
Methods (3)
-
removeFromArray()
-
<method name="removeFromArray" args="a, obj" />
public function removeFromArray(a, obj);
Remove an object from an array.
-
showSettings()
-
<method name="showSettings" />
public function showSettings();
Show the Flash player settings dialog, so the
user can change the device permission and
other properties.
-
stopDevice()
-
<method name="stopDevice" />
public function stopDevice();
LZX Synopsis
<class name="
mediadevice" extends="
LzNode
">
<attribute name="
active
" value="
false" />
<attribute name="
capturing
" value="
true" />
<attribute name="
devicename
" type="
string" value="
" />
</class>
JavaScript Synopsis
public
mediadevice extends
LzNode
{
}