TanStackT
TanStackโ€ข2y agoโ€ข
1 reply
rubber-blue

Caching audio & video requests

Is it possible to use TanStack Query as the src attribute of a <video> or <audio> element?

I'm working on a product where I have a single, top-level <audio> element, and many Playback โ–ถ๏ธ buttons that need to update the <audio> src. It's very likely that they will replay audio files, so caching each one is ideal.

Thank you ๐Ÿ™๐Ÿฟ
Was this page helpful?