1. API
  2. User



In this section, we'll look at ways to track user actions with Vidstack Player.


This page is a work in progress.


All media events can be traced back to their origin, the event that started it all. The native isTrusted event property will indicate whether the action was performed by a user:


📖 See request events for further reading.


User seeking can be tracked by waiting for the media-seeking-request and media-seek-request events to fire, and then checking whether their origin is trusted:



The user idle state indicates whether the user has been inactive for a set period of time (default is 2s). It can be tracked by subscribing to the userIdle property on the media store like so: