Add Application Insights
As an administrator, I need a way of telling how the player is performing on the user's devices so that I can gain insight into how the video is used and adjust the settings if something is going wrong.
Acceptance Criteria:
- GIVEN the video player
- WHEN the client is configuring the player
-
THEN there is an option called application-insights-instrumentation-key
for the user to provide a key to send data to Azure Application Insights
-
- WHEN the player sends data to Azure Application Insights
-
THEN the following metrics are tracked: playbackSummary
,loaded
,viewed
,ended
,playTime
,percentsPlayed
,play
,pause
,seek
,fullscreen
,error
,buffering
,bitrateQuality
, anddownloadInfo
-
AND the streamId
is captured as eitheraudio
for the Audio stream, orvideo
for the video stream
-
- WHEN the client is configuring the player
Developer Notes: This repository has a plugin for recording this information with the Azure Media Player: https://github.com/Azure-Samples/media-services-javascript-azure-media-player-application-insights-plugin