clappr icon indicating copy to clipboard operation
clappr copied to clipboard

Introduce PLAYBACK_STOP_INTENT

Open paluh opened this issue 5 years ago • 2 comments

Thanks for creating Clappr!

Is your feature request related to a problem? Please describe. I want to be able to know what is the user current playback intent based on clappr events.

I'm trying to monitor our player playback and restore it when connection is back or our stream is up again. I'm able to track easily when a user started playback by handling PLAYBACK_PLAY_INTENT event. But when there is an playback error (like network connection problem etc.) player sends me multiple events and one of them is PLAYBACK_STOP. As far as I understand I'm not able to distinguish this event from users real "playback stop intent" (when she/he hits the stop button etc.).

Describe the solution you'd like I want to propose addition of symmetrical event PLAYBACK_STOP_INTENT so it would be possible to track not only the state of a player but also an intention of the user.

paluh avatar Oct 01 '19 12:10 paluh

Thanks for the suggestion @paluh. This seems to be actually quite useful. We're in the process of adding symmetrical events to all state transition-related events.

This should probably be added to the next feature update. We're still checking some event naming schemes to start developing this.

towerz avatar Oct 01 '19 15:10 towerz

Wow! Thanks for quick response @towerz. I'm really glad that you like the idea. I'm not sure if I can help with implementation because I'm not fluent with internals of your great project but... for sure I can test PLAYBACK_STOP_INTENT and incorporate these changes into my paluh/purescript-clappr bindings!

paluh avatar Oct 01 '19 16:10 paluh

Issue closed due to inactivity.

leaofelipe avatar Nov 25 '22 00:11 leaofelipe