לבני מלכה
לבני מלכה

Reputation: 16261

azure media player click event

I have to track event when turn on the video(click on big button). I show result about "tech-click" but it's not click on the big button.

  player = amp(randomId, <any>{
                techOrder: ["azureHtml5JS", "flashSS", "html5FairPlayHLS", "silverlightSS", "html5"],
                "nativeControlsForTouch": false,
                "logo": { "enabled": false },
                controls: true,
                width: attrs.width,
                height: attrs.height,
                autoplay: scope.autoplay,
                poster
            });


  player.addEventListener("tech-click", () => {
        appInsights.trackEvent("homeVideo");                  
  });

Upvotes: 0

Views: 737

Answers (1)

לבני מלכה
לבני מלכה

Reputation: 16261

document.getElementsByClassName("vjs-big-play-button[0]
.addEventListener("click", () => {
                            appInsights.trackEvent("homeVideo");
                        });

Upvotes: 0

Related Questions