Zebra API Doc

zebra.ui.VideoPan Class

Extends zebra.ui.Panel

Simple video panel that can be used to play a video:

   // create canvas, add video panel to the center and
   // play video
   var canvas = zebra.ui.zCanvas(500,500).root.properties({
       layout: new zebra.layout.BorderLayout(),
       zebra.layout.CENTER: new zebra.ui.VideoPan("trailer.mpg")
   });

Constructor

zebra.ui.VideoPan

(
  • url
)

Parameters:

  • url String

    an URL to a video

Item Index

Methods

Attributes

Methods

finished

()

Called whenever a video playing has been finished

pause

()

Pause video

play

()

Start or continue playing video

Attributes

video

Video readonly

Original video DOM element that is created to play video