<mediadevice>
The base class for media devices.

JavaScript: lz.mediadevice
extends <node> » lz.Eventable »

As of OpenLaszlo release 4.0, subclasses of this class are <microphone> and <camera>.

Attributes

Name (CSS property) Type (tag) Type (js) Default Category
active expression any false readonly
  Flag that tracks if there's device activity (audio sound, video motion).
allowed expression any false readonly
  Tracks whether the user has allowed device access. True after user has accepted security dialog, false if the user denies access with security dialog.
capturing expression any true read/write
  Boolean flag that controls if the media device is currently capturing input.
debug expression any false read/write
  set to true for verbose debugging messages
deviceindex expression any null read/write
  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 string String   readonly
  Name of the device.

Methods

_onActivityHandler()
mediadevice._onActivityHandler(event);
Activity event handler for as3
Parameter Name Type Description
event    

removeFromArray()
mediadevice.removeFromArray(a, obj);
Remove an object from an array.
Parameter Name Type Description
a    
obj    

showSettings()
mediadevice.showSettings();
Show the Flash player settings dialog, so the user can change the device permission and other properties.

stopDevice()
mediadevice.stopDevice();
Stops the device.

Methods inherited from lz.Eventable

destroy, setAttribute

Events

Events inherited from <node>

onconstruct, ondata, oninit

Events inherited from lz.Eventable

ondestroy