View counts & putting a logo when streaming audio from media services RRS feed

  • Question

  • 1.I would want to know if i share a link of a streaming video from media services, where do i find analytics of the number of people who viewed that video and geographical location if possible as well.

    2.Is there a way of putting a company logo on the background(in place of a black screen), when streaming audio from Media services.

    Monday, May 11, 2020 12:28 PM


All replies

  • The backend tracking that Azure Media Services provides is telemetry.  The overview of this is at https://docs.microsoft.com/en-us/azure/media-services/previous/media-services-telemetry-overview.  However, this is a summary view of what’s happening at the streaming endpoint level and is a rollup of all users on that endpoint.  While adaptive streaming has very significant advantages for video playback the fact that there is no persistent connection oriented relationship between the client and server makes it extremely difficult to track the exact actions of a single client.  Add to that fact that typically the CDN is used in front of the streaming endpoint.  This means that the streaming endpoint only sees requests for fragments that are cache misses from the CDN.  Often this means that the streaming endpoint only sees a fraction of the actual client load.

    The CDN also provides information on the general bandwidth, cache hit ratio, and cache status for the linked Media Services streaming endpoint via the Verizon CDN Core Reports.  See https://docs.microsoft.com/en-us/azure/cdn/cdn-analyze-usage-patterns for more information.  This is similar to Media Services telemetry also giving summary information of all users.

    The best option for getting client playback experience and statistics is to use Azure Media Player’s plugin model with one of the analytics plugins.  The plugins are listed on https://amp.azure.net/libs/amp/latest/docs/PLUGINS.html.  These utilize the Azure Media Player API events to feed a database with the playback metrics.  For more information on the Application Insights plugin see https://azure.microsoft.com/en-us/blog/player-analytics-azure-media-player-plugin/.

    On the image question, you can just use the 'poster' parameter as per https://amp.azure.net/libs/amp/latest/samples/videotag_progressiveAudio.html

    Monday, May 11, 2020 4:48 PM
  • Thanks David, for your quite comprehensive response. I will greatly appreciate if  you can guide me on the steps i need to  follow on how how to to set up the 'poster' parameter. Thanks.

    Wednesday, May 13, 2020 6:39 AM
  • As per the link I provided at https://amp.azure.net/libs/amp/latest/samples/videotag_progressiveAudio.html the HTML code below includes the 'poster' parameter.  

        <audio id="azuremediaplayer" class="azuremediaplayer amp-default-skin amp-big-play-centered" controls autoplay width="640" height="400" poster="//download.blender.org/ED/cover.jpg" data-setup='{}' tabindex="0">
            <source src="//amssamples.streaming.mediaservices.windows.net/bddc6db2-3f95-4137-872a-b62a6c19e891/ElephantsDreamAudio.mp3" type="audio/mp3" />
            <p class="amp-no-js">To view this video please enable JavaScript, and consider upgrading to a web browser that supports HTML5 video</p>

    Note that this is just an HTML5 parameter, not something specific to Azure Media Player.  See https://www.w3schools.com/TAgs/att_video_poster.asp for more info.

    Wednesday, May 13, 2020 1:47 PM