Documentation in progress: please use the 3.4 Reference Manual.

Name

videoplayer

Synopsis

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

Superclass Chain

node (LzNode) » view (LzView) » videoplayer

Known Subclasses

Details

Properties (15)

autoplay
<attribute name="autoplay" value="false" />
public var autoplay;
borderBottom
<attribute name="borderBottom" value="5" />
public var borderBottom;
borderLeft
<attribute name="borderLeft" value="5" />
public var borderLeft;
borderRight
<attribute name="borderRight" value="5" />
public var borderRight;
borderTop
<attribute name="borderTop" value="5" />
public var borderTop;
screenWidth
<attribute name="screenWidth" value="${ this.width - (this.borderLeft + this.borderRight)}" />
public var screenWidth;
showscreen
<attribute name="showscreen" value="true" />
public var showscreen;
showslider
<attribute name="showslider" value="true" />
public var showslider;
sliderGap
<attribute name="sliderGap" value="5" />
public var sliderGap;
sliderHeight
<attribute name="sliderHeight" value="${ this.showslider ? this.sliderHeightVal : 0}" />
public var sliderHeight;
sliderHeightVal
<attribute name="sliderHeightVal" value="16" />
public var sliderHeightVal;
sliderTop
<attribute name="sliderTop" value="${ this.height - (this.borderBottom + this.sliderHeight)}" />
public var sliderTop;
type
<attribute name="type" type="string" value="http" />
public var type : String;
url
<attribute name="url" type="string" value="" />
public var url : String;
videoBottom
<attribute name="videoBottom" value="${ this.sliderTop - (this.showslider ? this.sliderGap : 0)}" />
public var videoBottom;

Methods (1)

playVideo()
<method name="playVideo" args="url, type" />
public function playVideo(url, type);

LZX Synopsis

<class name="lz.videoplayer" extends=" LzView ">
  <attribute name=" autoplay " value="false" />
  <attribute name=" borderBottom " value="5" />
  <attribute name=" borderLeft " value="5" />
  <attribute name=" borderRight " value="5" />
  <attribute name=" borderTop " value="5" />
  <attribute name=" screenWidth " value="${ this.width - (this.borderLeft + this.borderRight)}" />
  <attribute name=" showscreen " value="true" />
  <attribute name=" showslider " value="true" />
  <attribute name=" sliderGap " value="5" />
  <attribute name=" sliderHeight " value="${ this.showslider ? this.sliderHeightVal : 0}" />
  <attribute name=" sliderHeightVal " value="16" />
  <attribute name=" sliderTop " value="${ this.height - (this.borderBottom + this.sliderHeight)}" />
  <attribute name=" type " type="string" value="http" />
  <attribute name=" url " type="string" value="" />
  <attribute name=" videoBottom " value="${ this.sliderTop - (this.showslider ? this.sliderGap : 0)}" />
  <method name=" playVideo " args="url, type" />
</class>

JavaScript Synopsis

public lz.videoplayer extends  LzView  {
  public var autoplay ;
  public var borderBottom ;
  public var borderLeft ;
  public var borderRight ;
  public var borderTop ;
  public var screenWidth ;
  public var showscreen ;
  public var showslider ;
  public var sliderGap ;
  public var sliderHeight ;
  public var sliderHeightVal ;
  public var sliderTop ;
  public var type  : String;
  public var url  : String;
  public var videoBottom ;
  prototype public function playVideo (url, type);
}