<videoplayer>

JavaScript: lz.videoplayer
extends <view> » <node> » lz.Eventable »
provides standard UI controls for video playback

Attributes

Name (CSS property) Type (tag) Type (js) Default Category
aspectRatio expression any 4/3 read/write
  if non-zero, then this will be used to maintain the aspect ratio based on the width of the videoscreen. Default: 4/3
autoplay expression any false read/write
  when true, playback will start automatically without user action
border expression any 5 read/write
  the border around the video image. Default: 5
borderBottom expression any this.border read/write
  the bottom border on the video image. Default: this.border
borderLeft expression any this.border read/write
  the left border on the video image. Default: this.border
borderRight expression any this.border read/write
  the right border on the video image. Default: this.border
borderTop expression any this.border read/write
  the top border on the video image. Default: this.border
debug expression any false read/write
  true for verbose debug logging
progressColor expression any 0x00ff00 read/write
  color of the progress bar
showTimeDisplay expression any true read/write
  if true, display the current and total time
showVolumeControl expression any true read/write
  if true, display a volume control
sliderGap expression any 5 read/write
  the vertical space between the video image and the controls
starttime number Number 0 read/write
  Show the frame from this time (in seconds) whenever the url is set for video playback. Use -1 to show no frame (which will leave the image as it was when switching videos)
stream expression any vscreen.ms read/write
  a reference to the stream to enable direct control, such as vp.steam.play or vp.stream.seek(20)
type string String http read/write
  type of stream: 'http' or 'rtmp', see mediastream for details
url string String   read/write
  url of the stream to play see mediastream for details

Methods

playVideo()
videoplayer.playVideo(url, type);
starts playing audio/video from the given URL, which may be http or rtmp. If you want to play the current url, use this.stream.play()
Parameter Name Type Description
url    
type    

Methods inherited from lz.Eventable

destroy, setAttribute

Events

Events inherited from <node>

onconstruct, ondata, oninit

Events inherited from lz.Eventable

ondestroy