Safari Reference Library Apple Developer
Search

HTMLVideoElement Class Reference

Inherits from
Availability
Available in Safari 3.1 and later.
Available in iPhone OS 3.0 and later.

Overview

A class representing the HTML video element that plays a video or movie in a webpage. Use the HTMLAudioElement class for the HTML audio element.

Tasks

Getting and Setting Properties

Getting State

Properties

height

The height of the video element in CSS pixels.

attribute unsigned long height;
Availability

poster

The URI address of an image file that is shown when no video data is available.

attribute [ConvertNullToNullString] DOMString poster;
Availability

videoHeight

The native height of the video in CSS pixels. (read-only)

readonly attribute unsigned long videoHeight;
Discussion

If no video data is available, this property is 0.

Availability

videoWidth

The native width of the video in CSS pixels. (read-only)

readonly attribute unsigned long videoWidth;
Discussion

If no video data is available, this property is 0.

Availability

width

The width of the video element in CSS pixels.

attribute unsigned long width;
Availability



Last updated: 2010-02-24

Did this document help you? Yes It's good, but... Not helpful...