Load events for displaying my own spinner icon when video is loading

Hello,
Is there a way to access the loading/buffering event when the spinner is being shown? I want to implement my own spinner and will have to listen to the load/buffer event in order to show it. How should I go about this? Thanks!

@gideon.keyson Hi, I am trying to solve the same problem. Have you been able to find a solution?

Have you tried using the loadstart() event to detect when loading begins and play()/progress() events to tell when playback has started?

See Stream Player API ยท Cloudflare Stream docs

Can I use the API with a React component?