Uncaught TypeError: this.reset is not a function at Object.j [as MediaTracker] (matomo.js:84)

I’m trying to set up custom video player tracking for my app since my requirements are somewhat unique and the default player tracking will not work.

Calling

    this.tracker = Matomo
      .MediaAnalytics
      .MediaTracker('myVideoPlayer', Matomo.MediaAnalytics.mediaType.VIDEO, this.data.mediaResource);

results in the following error

matomo.js:84 Uncaught TypeError: this.reset is not a function
    at Object.j [as MediaTracker] (matomo.js:84)
    at new MyVideoPlayer (my_video_player.js:7)
    at show.js:14

Hi @brandonc
Sorry for for the delay. Were you meanwhile able to fix the problem yourself?

You can find some details on how to integrate a custom video player for tracking on this page:
https://developer.matomo.org/guides/media-analytics/custom-player

If you already followed this guide but you are experiencing the error nevertheless, we maybe need to see more of your code to be able to find the source. If you don’t want to share the code here you can also reach out to our support at https://matomo.org/support/