seekToFrame Method

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 message. In this example, if the object is not active, the beginElement method is called to restart the object, followed by the seekToFrame method call.


Media timer: 0


Current frame:

Frame to seek to:  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.