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

seekToFrame Method

Internet Development Index

Locates a specified frame in the object.

Syntax

object.seekToFrame(iFrame)

Parameters

iFrame Required. Integer that specifies a frame in the object.

Return Value

No return value.

Remarks

If you attempt to call the seekToFrame method 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

This example demonstrates how to use the seekToFrame property. Before validating and implementing the seekToFrame value, make sure the object is active to avoid generating an error. In this example, if the object is not active the beginElement method is called to restart the object, followed by the seekToFrame method call.

<HTML xmlns:t= "urn:schemas-microsoft-com:time">
<HEAD>
<?IMPORT namespace="t" implementation="#default#time2">
<STYLE>
.time{behavior:url(#default#time2)}
</STYLE>
<SCRIPT>
function doSeekToFrame(){
//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?
//Video has a total of 597 frames.
if(isFinite(seekFrame.value) && seekFrame.value >= 1 &&
seekFrame.value < 598){
oMedia.seekToFrame(seekFrame.value);
}else{
//Input is not valid, alert user to re-enter choice.
alert("Please enter a valid integer. Possible values are 1 to" +
" 597 inclusive.");
seekFrame.value = "";
seekFrame.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:175; height:150;" id="oMedia"
src="../../common/samples/author/behaviors/media/movie.avi"/>
<BR>
Current frame: <SPAN id="oCurrFrame" class="time" dur="0.01"
repeatCount="indefinite" fill="hold"
onrepeat="innerText=parseInt(oMedia.currentFrame);"></SPAN>
<BR><BR>
<B>Frame to seek to</B>:
<INPUT type="text" value="" name="seekFrame" size="3"/>&nbsp;seconds
<BR><BR>
<BUTTON id="seekBtn" onClick="doSeekToFrame();">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.

Applies To

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

See Also

Introduction to HTML+TIME, seekActiveTime, seekSegmentTime
伊春市| 天祝| 文成县| 尼勒克县| 临沂市| 泽普县| 大兴区| 永和县| 丹东市| 嘉兴市| 崇阳县| 通河县| 马龙县| 永顺县| 庆安县| 通化市| 甘肃省| 嘉禾县| 阜平县| 霍林郭勒市| 吉隆县| 靖州| 晴隆县| 邛崃市| 长海县| 双鸭山市| 南阳市| 岢岚县| 渭源县| 巴彦县| 桃园县| 绥芬河市| 德惠市| 游戏| 富阳市| 出国| 和政县| 北碚区| 镇宁| 锡林浩特市| 玛多县|