最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

seekActiveTime Method

Internet Development Index

Locates a specified point on the element's active timeline and begins playing from that point.

Syntax

object.seekActiveTime(iSeconds)

Parameters

iSeconds Required. Integer that specifies a point on the element's active timeline. The element's timeline immediately begins playing from the specified point. Legal values range from 0 to activeDur.

Return Value

No return value.

Remarks

If you attempt to seek to a time on an object that is not currently active, an error is generated. To prevent this, check the object's status using the isActive property.

Not all media types support seeking. In cases where seeking is not supported by the player, calls to seek methods are ignored.

Example

The following example demonstrates how to use the seekActiveTime method. Before validating and implementing the seekActiveTime value, make sure the object is active or an error may be generated. In this example, if the object is not active the beginElement method is called to restart the object, followed by the seekActiveTime method request.

<HTML xmlns:t= "urn:schemas-microsoft-com:time">
<HEAD>
<TITLE>seekActiveTime Method</TITLE>
<?IMPORT namespace="t" implementation="#default#time2">
<STYLE>
.time{behavior:url(#default#time2)}
</STYLE>
<SCRIPT>
function doSeekActiveTime(){
//Is media object active?
//Yes, continue and do seek.
//No, restart element using the beginElement method.
if(!oMedia.currTimeState.isActive){
oMedia.beginElement();
}
//Is user input valid and within the media's duration boundaries?
if(isFinite(seekActiveTimeInput.value) && seekActiveTimeInput.value
<= oMedia.mediaDur && seekActiveTimeInput.value > 0){
oMedia.seekActiveTime(seekActiveTimeInput.value);
}else{
//Input is not valid, alert user to re-enter choice.
alert("Please enter a valid integer. Value must be greater than 0" +
" seconds and less than the media's duration (" +
oMedia.mediaDur + " seconds).");
seekActiveTimeInput.focus();
}
}
</SCRIPT>
</HEAD>
<BODY>
<CENTER>
<B>Media timer:</B>
<SPAN id="Timer2" class="time" dur=".01" repeatCount="indefinite" fill="hold"
onrepeat="innerText=parseInt(oMedia.currTimeState.activeTime);">0</SPAN>
<BR><BR>
<t:video style="width:175px; height:150px;" id="oMedia"
src="../../common/samples/author/behaviors/media/movie.avi"
onmediacomplete="oMediaDur.innerText=oMedia.mediaDur;" />
<BR>
Media's duration: <SPAN id="oMediaDur"></SPAN>&nbsp;seconds
<BR><BR>
<B>Enter value for seekActiveTime</B>:
<INPUT type="text" value="" name="seekActiveTimeInput" size="3"/>&nbsp;seconds
<BR><BR>
<BUTTON id="seekBtn" onClick="doSeekActiveTime();">Click to seek</BUTTON>&nbsp;
<BUTTON onClick="oMedia.beginElement()">Restart</BUTTON>
</CENTER>
</BODY>
</HTML>
This feature requires Microsoft?Internet Explorer 5.5 or later. Click the following icon to install the latest version. Then reload this page to view the sample.

Standards Information

This method is a Microsoft extension to Synchronized Multimedia Integration Language (SMIL) Non-Microsoft link.

Applies To

t:TRANSITIONFILTER, t:ANIMATE, t:ANIMATECOLOR, t:ANIMATEMOTION, t:ANIMATION, t:AUDIO, t:IMG, t:MEDIA, t:PAR, t:REF, t:SEQ, t:SET, time2, t:VIDEO

See Also

Introduction to HTML+TIME, seekSegmentTime, seekTo
卓尼县| 海安县| 沾益县| 疏附县| 永嘉县| 大方县| 崇信县| 长宁县| 苗栗市| 饶河县| 北安市| 全州县| 平顶山市| 达州市| 吴旗县| 广州市| 甘孜| 房产| 龙游县| 扎兰屯市| 莱芜市| 金川县| 吉木萨尔县| 淳化县| 镶黄旗| 岗巴县| 深圳市| 丽江市| 安溪县| 兰州市| 浦东新区| 齐河县| 麦盖提县| 湖南省| 财经| 新野县| 陈巴尔虎旗| 民县| 军事| 赣榆县| 屏东市|