Custom React Hooks
Programmatic state control with useDriveImage, useDriveVideo, and useDriveFolder.
hooks.tsx
| 1 | import { useDriveVideo } from '@driveloader/react'; |
| 2 | |
| 3 | const { videoUrl, loading, error, metadata, thumbnailUrl } = useDriveVideo(driveUrl); |
Usage Notes
Exposes full resolution lifecycle, errors, and metadata.
