azure媒体播放器点击事件

时间:2017-12-26 07:12:06

标签: azure azure-media-services

我必须在开启视频时跟踪事件(点击大按钮)。  我显示了关于" tech-click"的结果。但它没有点击大按钮。

  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");                  
  });

1 个答案:

答案 0 :(得分:0)

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