loop property
Gets or sets a flag that specifies whether playback should restart after it completes. Playback restarts when this flag is present on an element, or set to true on an object. Playback doesn't restart when this flag is absent from an element, or set to false on an object.
![]() ![]() |
Syntax
HRESULT value = object.put_loop( v);HRESULT value = object.get_loop(* p);
Property values
Type: VARIANT_BOOL
In a video or audio element, this attribute is true by its presence, false by its absence.
Standards information
- HTML5 A vocabulary and associated APIs for HTML and XHTML, Section 4.8.9.6
Remarks
The presence of the loop attribute, regardless of assigned value, in either the audio or video element equals true (for example, <audio loop=""> is true).
Build date: 11/12/2012

