Add onPlay and onPause callback on Player
yoginth.lens 🌸
It would be good to have
onPlay
and onPause
callback, it helps us to do some FE ops during the callbackExample: in hey.xyz we want to track user telemetry events on play and pause for some analytics 🙇🏼
Hunter Hillman
Thanks for this request! Couple of reactions:
- Chase Adams, this seems like something we should support? Maybe we already do?
- yoginth.lens 🌸 what specific information are you trying to track? If it's watch duration, you can already get this from the Engagement API: https://docs.livepeer.org/developers/guides/get-engagement-analytics-via-api