The timeParent property retrieves the parent time container element of the current element. This example demonstrates how to retrieve the parent time container element's duration and how to set the duration from indefinite to 30 seconds.
Note: If 30 seconds has already lapsed before you set the duration of the parent time container, the time container will end immediately.
To view the source code, right-click this page and choose View Source from the shortcut menu that appears.