useVideoTime(): Object
Returns the current time value from the video clock.
Custom React Hooks
VCS: useVideoTime()
Developers can use Daily’s VCS SDK to build custom video layouts and add graphics to live streamed and recorded video calls.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Developers can use Daily’s VCS SDK to build custom video layouts and add graphics to live streamed and recorded video calls.
useVideoTime(): Object
Returns the current time value from the video clock.
| Type | Description |
|---|---|
Number | The current time value from the video clock. Note: This value is in seconds, not milliseconds like some JS timing APIs. |
import * as React from 'react';
import { Text } from '#vcs-react/components';
import { useVideoTime } from '#vcs-react/hooks';
const time = useVideoTime();
return <Text>Current video time: {time}</Text>;
}