HTML5 Video

A video element represents a video or video stream.


Supported Platform(s)

- BlackBerry OS 6.0+
- BlackBerry PlayBook 1.0+
- BlackBerry 10
- Ripple Emulator
View Supported Platform Table
APIBB5.0BB6.0BB7.0PB1.0PB2.0BB10Ripple
document.createElement("video")     Y Y Y YY
height     Y Y Y YY
poster     Y Y Y YY
videoHeight     Y Y Y YY
videoWidth     Y Y Y YY
width     Y Y Y YY

Configuration Document Settings

To use all of the API described for this object, you must ensure the following settings are in your configuration document:

This API does not require a <feature> element to be declared in the configuration document of your BlackBerry WebWorks Application.

Permission Elements (PlayBook and BlackBerry 10+)
This API does not require a <permission> element to be declared in the configuration document of your BlackBerry WebWorks Application.

Constructors

document.createElement("video")


Creates an HTMLVideoElement


Supported Platforms
 - BlackBerry OS 7.0+
 - BlackBerry PlayBook 1.0+
 - BlackBerry 10
 - Ripple Emulator


Code Example:
var video = document.createElement('video');
video.src = 'video.avi';
video.controls = true;
document.body.appendChild(video);

Properties

Number height


Height of the video area.


Supported Platforms
 - BlackBerry OS 7.0+
 - BlackBerry PlayBook 1.0+
 - BlackBerry 10
 - Ripple Emulator

String poster


The address of an image file that the user agent can show while no video data is available. If present, must contain a valid non-empty URL potentially surrounded by spaces.


Supported Platforms
 - BlackBerry OS 7.0+
 - BlackBerry PlayBook 1.0+
 - BlackBerry 10
 - Ripple Emulator

readonly Number videoHeight


videoHeight must return the intrinsic height of the video in CSS pixels.


Supported Platforms
 - BlackBerry OS 7.0+
 - BlackBerry PlayBook 1.0+
 - BlackBerry 10
 - Ripple Emulator

readonly Number videoWidth


videoWidth must return the intrinsic width of the video in CSS pixels.


Supported Platforms
 - BlackBerry OS 7.0+
 - BlackBerry PlayBook 1.0+
 - BlackBerry 10
 - Ripple Emulator

Number width


Width of the video area.


Supported Platforms
 - BlackBerry OS 7.0+
 - BlackBerry PlayBook 1.0+
 - BlackBerry 10
 - Ripple Emulator

Documentation generated by JsDoc Toolkit 2.4.0 on Sun Dec 30 2012 18:15:39 GMT-0500 (EST)