seekTo Method

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


Media timer: 0


Media's duration:  seconds

Time value to seekTo in object's timeline:  seconds

 

To view the source code, right-click this page and choose View Source from the shortcut menu that appears.

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