Name

videoview

Synopsis

LZX: videoview
JavaScript: lz.videoview
Type: Class
Access: public
Topic: Extensions.Audio-Video
Declared in: lps/components/extensions/av/videoview.lzx

Superclass Chain

node (LzNode) » view (LzView) » videoview

Known Subclasses

Details

Properties (12)

autoplay
<attribute name="autoplay" value="false" />
public var autoplay;
If true, video will start playing as soon as url is set. Default: false.
cam
<attribute name="cam" value="null" />
public read-only var cam;
The camera object.
_clipinitdone
<attribute name="_clipinitdone" value="false" />
private var _clipinitdone;
Flag to track if the clip initialization is done.
debug
<attribute name="debug" value="false" />
public var debug;
If true, Debug.write extra stuff (this may go away).
_initcomplete
<attribute name="_initcomplete" value="false" />
private var _initcomplete;
Flag to track if initialization is complete.
mic
<attribute name="mic" value="null" />
public read-only var mic;
The microphone object.
playvolume
<attribute name="playvolume" value="1.0" />
public var playvolume;
The volume for video playback, a float from 0 to 1. Default 1.
_sound
<attribute name="_sound" value="null" />
private var _sound;
Flash Sound object to control volume of video playback.
stream
<attribute name="stream" value="null" />
public var stream;
The mediastream object.
type
<attribute name="type" type="string" value="http" />
public var type : String;
Protocol "rtmp" or "http". Default: http.
url
<attribute name="url" type="string" value="" />
public var url : String;
The url of the mediastream, maybe a relative URL, for example: "http://localhost/myvideo.flv", or simply "myvideo.flv". When type="rtmp", the url is always relative the the rtmpconnection. (Use only when you are not explicitly declaring the mediastream.)
_urldel
<attribute name="_urldel" value="null" />
private var _urldel;
Delegate to call _setPlayStream when stream starts playing.

Methods (12)

_getflashvideo()
<method name="_getflashvideo" />
private function _getflashvideo();
Return the Flash video object.
init()
<method name="init" />
private function init();
Initialize the videoview.
_setAutoplay()
<method name="_setAutoplay" args="newautoplay" />
private function _setAutoplay(newautoplay);
Setter for the "autoplay" attribute.
_setCam()
<method name="_setCam" args="cam" />
private function _setCam(cam);
Called by the camera to tell the videoview about the camera.
setHeight()
<method name="setHeight" args="h" />
private function setHeight(h);
Set the videoview height.
_setMic()
<method name="_setMic" args="mic" />
private function _setMic(mic);
Called by the microphone to tell the videoview about the microphone.
_setPlayStream()
<method name="_setPlayStream" />
private function _setPlayStream();
Set the play stream.
_setPlayVolume()
<method name="_setPlayVolume" args="newplayvolume" />
private function _setPlayVolume(newplayvolume);
Setter for the "playvolume" attribute. Sets the video playback volume.
_setStream()
<method name="_setStream" args="stream" />
private function _setStream(stream);
Called by the stream to tell the videoview about the stream.
_setType()
<method name="_setType" args="newtype" />
private function _setType(newtype);
Setter for the "type" attribute.
_setUrl()
<method name="_setUrl" args="newurl" />
private function _setUrl(newurl);
Setter for the "url" attribute.
setWidth()
<method name="setWidth" args="w" />
private function setWidth(w);
Set the videoview width.

Events (1)

onurl
<attribute name="onurl" />
private event onurl;
Event sent when url changes.

LZX Synopsis

<class name="lz.videoview" extends=" LzView ">
  <attribute name=" autoplay " value="false" />
  <attribute name=" cam " value="null" />
  <attribute name=" _clipinitdone " value="false" />
  <attribute name=" debug " value="false" />
  <attribute name=" _initcomplete " value="false" />
  <attribute name=" mic " value="null" />
  <attribute name=" playvolume " value="1.0" />
  <attribute name=" _sound " value="null" />
  <attribute name=" stream " value="null" />
  <attribute name=" type " type="string" value="http" />
  <attribute name=" url " type="string" value="" />
  <attribute name=" _urldel " value="null" />
  <method name=" _getflashvideo " />
  <method name=" init " />
  <event name=" onurl " />
  <method name=" _setAutoplay " args="newautoplay" />
  <method name=" _setCam " args="cam" />
  <method name=" setHeight " args="h" />
  <method name=" _setMic " args="mic" />
  <method name=" _setPlayStream " />
  <method name=" _setPlayVolume " args="newplayvolume" />
  <method name=" _setStream " args="stream" />
  <method name=" _setType " args="newtype" />
  <method name=" _setUrl " args="newurl" />
  <method name=" setWidth " args="w" />
</class>

JavaScript Synopsis

public lz.videoview extends  LzView  {
  public var autoplay ;
  public read-only var cam ;
  private var _clipinitdone ;
  public var debug ;
  private var _initcomplete ;
  public read-only var mic ;
  public var playvolume ;
  private var _sound ;
  public var stream ;
  public var type  : String;
  public var url  : String;
  private var _urldel ;
  prototype private function _getflashvideo ();
  prototype private function init ();
  prototype private event onurl ;
  prototype private function _setAutoplay (newautoplay);
  prototype private function _setCam (cam);
  prototype private function setHeight (h);
  prototype private function _setMic (mic);
  prototype private function _setPlayStream ();
  prototype private function _setPlayVolume (newplayvolume);
  prototype private function _setStream (stream);
  prototype private function _setType (newtype);
  prototype private function _setUrl (newurl);
  prototype private function setWidth (w);
}