0 out of 1 rated this helpful - Rate this topic

autoplay attribute | autoplay property

Gets or sets a value that indicates whether to start playing the media automatically.

HTML5 A vocabulary and associated APIs for HTML and XHTML, Section 4.8.9.7Internet Explorer 9

Syntax

HTML<element autoplay="p" ... >
JavaScript

p = object.autoplay

Property values

Type: Boolean

VARIANT_FALSE (false)

Default. The media is paused until play is called.

VARIANT_TRUE (true)

The media is played after it buffers enough data.

Standards information

Remarks

You can use the autoplay attribute rather than script to force the audio or video to play. The presence of the autoplay attribute, regardless of assigned value, in either the audio or video element equals true (for example, <audio autoplay=""> is true).

See also

media
audio
audio
video element
video object
autobuffer

 

 

Send comments about this topic to Microsoft

Build date: 11/27/2012

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.