I am using
cloudflare/stream-react library and looking for a way to store the user’s preference for selected captions/text. It’s expected to work the same as the video playback speed - it’s persistent when the user plays different videos hosted on Cloudflare Stream.
defaultTextTrack property works great for setting initial captions/text but I can’t find a way to catch an event when the user selects/changes the caption so I can’t even store it on my own.
How to make it persistent?