Click to return to the Reusing Browser Technology home page    
IHTMLInputImage::get_hspa...     IHTMLInputImage::get_lows...     IHTMLInputImage Interface    
Web Workshop  |  Reusing Browser Technology

IHTMLInputImage::get_loop Method


Retrieves the number of times a video loops when activated.

Syntax

HRESULT get_loop(
    VARIANT *p
);

Parameters

p
Value that specifies the number of times to loop. If this parameter receives -1 (infinite), the video will loop continuously.

Return Value

Returns S_OK if successful, or an error code otherwise.

Below are descriptions of how the loop works for some boundary cases.

<BGSOUND src="file:///c:\win95\system\msremind.wav"> once
<BGSOUND src="file:///c:\win95\system\msremind.wav" LOOP> once
<BGSOUND src="file:///c:\win95\system\msremind.wav" LOOP=> zero times
<BGSOUND src="file:///c:\win95\system\msremind.wav" LOOP=-1> infinitely
<BGSOUND src="file:///c:\win95\system\msremind.wav" LOOP=0> once

Windows CE

Windows CE Use version 2.12 and later
Minimum availability Internet Explorer 4.0

IHTMLInputImage::put_loop Method


Sets the number of times a video will loop when activated.

Syntax

HRESULT put_loop(
    VARIANT v
);

Parameters

v
Value that specifies the number of times to loop. If this parameter is -1 (infinite), the video will loop continuously.

Return Value

Returns S_OK if successful, or an error code otherwise.

Below are descriptions of how the loop works for some boundary cases.

<BGSOUND src="file:///c:\win95\system\msremind.wav"> once
<BGSOUND src="file:///c:\win95\system\msremind.wav" LOOP> once
<BGSOUND src="file:///c:\win95\system\msremind.wav" LOOP=> zero times
<BGSOUND src="file:///c:\win95\system\msremind.wav" LOOP=-1> infinitely
<BGSOUND src="file:///c:\win95\system\msremind.wav" LOOP=0> once

Windows CE

Windows CE Use version 2.12 and later
Minimum availability Internet Explorer 4.0


Back to topBack to top

Did you find this topic useful? Suggestions for other topics? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.