How to get Average Visualization Time of an asset in Azure Media Services v3 - azure

im currently working in a module of analysis of stadistics of videos from azure media services. I want to ask how can i get some data like average visualization time, number of visualizations and more stuff like that. im pretty sure it has to exist a very easy way to get this data but i cannot find it. I found that application insights could be useful. I have found that i may have to manually track this information. Im working on .net6. An example of code would be awesome. Thanks in advance!
pd: https://github.com/Azure-Samples/media-services-javascript-azure-media-player-application-insights-plugin/blob/master/options.md
I have found that Application Insights could be useful to my problem. Some classes like TelemetryClient (from the package Microsoft.ApplicationInsights) seems to be useful to my problem, but i cant find clear information about them.

No, there is no concept of client side analytics or viewer analytics in Azure Media Services. You have to track and log things on your own on the client side. App Insights is a good solution for this, and there are some older samples out there showing how to do that with a player application.
Take a look at this sample - https://learn.microsoft.com/en-us/samples/azure-samples/media-services-javascript-azure-media-player-application-insights-plugin/media-services-javascript-azure-media-player-application-insights-plugin/
Just WARNING: it is very old and probably very out of date. I would not use much of the code from that sample, as it is using SDK's from 4 year ago. Just use it as guidance at a high level for what the architecture might look like.
Another solution would be to look to a 3rd party service like Mux.com/Data that can plug into any player framework for client analytics.

Related

Automate Data Import to GA4

I am trying to automate refunds report to google analytics 4. I can't find good documentation on importing this data using analytics management API. I came across https://www.npmjs.com/package/#google-analytics/data which seems to be good for pulling reports from GA but couldn't get a way of doing data import.
I am writing a nodejs script and was hoping someone has encountered this scenario before and could share how they accomplished it. Any help or point in the right direction will be really appreciated.
The alternative to the UA Analytics Management api is the Google Analytics Admin API for ga4
To my knowledge it doesn't support data important at this time the API is still under development it may come in the future there is no way to know.
I would suggest looking at the measurement protocol for ga4 you may be able to use that

Design for a Cloud Native Application in Azure for ML Insights and Actions

I have an idea whereby I intend to build a cloud native application for algorithmic trading, ideally by consuming all PaaS and SaaS (no IaaS), and I'd like to get some feedback on how I intend to build it. The concept is pretty straight-forward in that I intend to consume financial trading data from an external SaaS solution via an API query, feed that data into various Azure PaaS solutions (most notably ML for modeling), and then take some action. Here is a high-level diagram I've come up with so far:
Solution Overview
As a note, while I'm familiar with Azure, I'm not a Azure cloud engineer and have limited experience in actually building solutions myself. Subsequently, I intend to use this project as a foundation to further educate myself.
When starting on the build, I immediately questioned whether I should or shouldn't use Event Hubs. Conceptually it makes sense, in that I'm decoupling the production of a data stream from the consumption of it. Presumably, this facilitates less complications when / if I need to update the data feed(s) in the future. I also thought about where the data is stored... should it be a SQL database, or more simply, an Azure Table? The idea here is that the trading data will need to be stored for regression testing as my iterate through my models. All that said, looking for some insights from anybody that may have experience in this space.
Thanks!
There's no real question in here. Take a look on the architecture reference provided by Microsoft: https://learn.microsoft.com/en-us/azure/architecture/reference-architectures/

Record stream video by Azure

I need to record a stream video (say I have an url) and save the last N minutes of it to Azure?
My guess is that I need to use Azure media service for that.
I've already created an Azure media service account.
Could anybody give me a hint where to start from.
Update:
I'd prefer to use C#
Stream can be from blob:http://ipcamlive.com/a5fe3312-2a33-4b53-8b83-42af7928abb0 or from any web camera. Currently I'm not sure about the video format
You haven't really given much info on what type of video, what language you'll use so probably best to start with Azure Media Services documentation
Here you can find a tutorial on encoding from HTTPS source using .NET
If you can give more info on what you're looking to do, you'll likely get better hints; right now this smells like an XY Problem

How can implement Flurry Analytics for RokuSG?

I was unable to find the SDK for Roku.
Please tell me whether Flurry Analytics SDK is available for RokuSG or not?
If there aren't any SDK's, then please suggest me a way to implement it without the SDK.
Roku does not support Flurry Analytics. As far as I know there are three options for analytics in Roku---
If your intention is basic analytics, Roku provides basic statistics, like installs, visits, streaming data, BrightScript crashes, buffering data etc, about published channel at developer dashboard. You can access it by clicking the “View Analytics” option for any channel seen on the Manage My Channels page of your Developer Dashboard. Remember that this information is available for public channels only. You can find more information here--
https://developer.roku.com/en-gb/develop/platform-features/analytics-support
Using Roku Analytics component library. This library implements Google Analytics, Omniture, Brightcove, and Ooyala Analytics. Its quite easy to implement. You can implement one or more of these analytics solutions. Please check Implementation details at below link--
https://developer.roku.com/en-gb/docs/developer-program/libraries/roku-analytics-component.md
Third and my favorate way is custom implementation of Analytics component, which can be implemented using REST api calls. This is best as you can decide when and for which events you want to capture analytics. Initially it will seem dificult, but once you will dirty your hand in it, you will not go for any other solution.

replace NLog in Azure

We have a running site using NLog for logs. We are not only login errors, we use it to measure things relative to business logic.
Now we are moving to Azure and that's why I'm searching for a better way to log this type of info in azure. I'm looking for something like graylog.
Things to have in mind:
What azure provides to log info is easy to read?
Can i make queries to read data?
Is there an API to log?
Check out the following stuff, which is more or less native to Azure. Also you could probably use some of the third parties, like New Relic.
Log Analytics
Application Insights
Operations Management Suite
Application Insights not only has out of the box monitoring but also provides capabilities to create your own queries.
ps. Just my 2 cents, I'd go for OMS, Microsoft is pushing it oh so hard, it is evolving rapidly, even if you are missing some capabilities they are going to be there soon and in the long run, Microsoft is really unlikely to drop OMS anytime soon, since they started forcing it like 1.5 year ago.

Resources