Skip to main content
Events that fire when users interact with the video player interface.
Need to integrate events? See the Quick Start Guide for the basic integration pattern.

Interface Events

interact

Fired when the user first interacts with the player. Data:
When it fires:
  • User first clicks on the player overlay
  • Marks the beginning of user engagement

enter-fullscreen

Fired when the video enters fullscreen mode. Data:
When it fires:
  • User clicks the fullscreen button
  • Player programmatically enters fullscreen
  • Browser fullscreen API is activated

exit-fullscreen

Fired when the video exits fullscreen mode. Data:
When it fires:
  • User clicks the exit fullscreen button
  • User presses Escape key
  • Player programmatically exits fullscreen
  • Browser fullscreen API is deactivated

Complete Integration Example

Data Structure

All user events include these standard fields:
  • time: Current video playback time in seconds
  • session_id: Unique device/session identifier

Configuration

To enable these events, configure the following in your TrackPlay dashboard:
  • Fullscreen: Enable fullscreen button in controls
  • User Interaction: These events fire automatically when users interact with the player