
Agama has a long history when it comes to device integrations. For more than a decade we've dealt with projects of all sizes/lengths. With every completed milestone, and even more with every obstacle, we've been steadily building up the knowledge required to succeed.
What are the plugins?One of the key parts of understanding the satisfaction of your users is to assess the quality of experience for the services they consume, their engagement, the type of content they like to watch etc. Agama has an excellent track record in providing such insights, in fact, this is the core of what we do.
The implementations of these important KPIs historically included, among others, the following steps: agreement on the desired metrics set, investigation of the available metrics in the target platform, and integration of these metrics towards the Agama core agent. A lot of these steps were unique for every integration. This was partially due to different wishes from different customers, but mostly due to the unique characteristics of each of the target platforms.
With the growing popularity of OTT platforms and the rise of players such as ExoPlayer, Shaka Player or AV Player, the target platforms became increasingly similar between integrations. The shift from everything is custom to common platforms and players enabled Agama to step outside its domain. We started actively investigating players and platforms, gathering knowledge about them, assessing what could be possible and feasible, and defining an absolute base of metrics that would benefit every customer. These are all implemented in what we call 'Player plugins .
The player plugins follow a few basic principles:
Agama develops and maintains the plugins
The plugins provide a good set of metrics, making them usable directly
No Agama domain knowledge is required for plugin integration - just a few, stable APIs are necessary
Ability to pass custom metrics to the plugin
Agama develops and maintains player plugins for most of the popular players, such as ExoPlayer, Shaka Player, AVPlayer, and for platforms such as Android, FireOS, iOS, tvOS, Chromecast, Browsers, WebOS, Tizen etc.
While the complete list of metrics differs slightly between plugins, they all share most of the metrics. Some of the features they have in common are:
QoS and QoE metrics
Device properties
Ability to understand asset consumption
Ability to understand playback errors (for instance, DRM errors)
Integration keep it simpleLet's take a closer look at what it takes to integrate Agama into your application. To make it as realistic as possible, let's use ExoPlayer as the target player and Android as the target platform.
ExoPlayer is currently one of the most popular players for Android. It is extremely customizable and flexible, yet easy to start with. Therefore, it comes as no surprise that it is used by everyone, from hobby enthusiasts to video operators and even YouTube.
RequirementsLet's start by describing what requirements and dependencies are needed to use the plugin in the first place. Players evolve quickly and so do their capabilities and APIs, and this truly applies to the ExoPlayer. Therefore, the plugin comes in multiple variants associated with various ExoPlayer minor versions. By using a relatively modern version, plugin-player compatibility should not be a problem.
Some metrics implemented by the plugin can be subject to platform permissions. These are not critical to have in any sense, but more on the good-to-have side and will only be included if permissions are granted. Also related to privacy issues, the plugin can be configured to skip certain sensitive metrics. Such information can be, for example, the collection of the device's longitude and latitude position.
Lastly, the plugin is to be included in the project as any other 3rd party library. And the empclient must be included in the same way as well.
Initialization and configuration stepsInitialize the plugin as early as possible. The plugin's lifetime shall reflect the application's lifetime. To initialize it, one needs an Agama configuration string. It is passed on to the Agama core agent - empclient, and includes information such as report heartbeat and the operator id. The configuration string is typically provided by Agama. The application properties such as the applications name and version are needed during initialization.
String agamaConfig =
emp_service=https://cdm1.company123.se/report;report_interval=60;id_report_interval=240;operator_id=fooSoo; ;
String appName = Company 123 Play App ;
String appVersion= 2.1 ;
// Initialize the plugin
EmpStats.getInstance().init(agamaConfig, Definitions.LogLevel.DEBUG, appName, appVersion, ExoPlayerLibraryInfo.VERSION, getApplicationContext());
Once the plugin instance is created, an account associated with the user should be set as well. This will enable (among other things) to find the customer in the Agama system by its account id.
// Set user account id for user John Doe
EmpStats.getInstance().setUserAccountId( johdo28 );
Monitoring videoNow the plugin is initialized, configured and sending data to the Agama backend. It's time to start monitoring the consumed assets. The user has switched to a new channel, started up an asset from the catchup library or simply opened a new episode of their favorite TV series. Opening any new asset shall be signaled to the plugin.
// Load asset & play
String assetUri= https://demo.agamatech.se/Manifest.m3u8 ;
EmpStats.getInstance().sessionOpen(assetUri, Definitions.AssetType.VOD, Sintel , player);
URI uri = uri.parse(assetUri);
player.setMediaItem(MediaItem.fromUri(uri), false);
player.prepare();
Analog to signaling the intent to start playing content, one needs to signal playback termination as well. There are two common ways of doing this: t
Most recent headlines
11/12/2025
Dalet, a leading provider of cloud-native, end-to-end media workflow solutions, ...
17/11/2025
The worlds online population grew by more than 240 million people in 2025, according to Facts and Figures 2025 released today by the International Telecommunica...
17/11/2025
ASB GlassFloor, the leading provider in LED sports flooring, today announced the opening of Athletes Lab 2.0, a premier athletic training facility designed to e...
17/11/2025
SmallHD today announced the release of its popular Camera Control for Canon cinema cameras. This new integration enables filmmakers to adjust critical camera se...
17/11/2025
Luxury is in the details, and no one captures that better than the creative team at Samuel & Sons. As the visionaries behind iconic photography and advertising ...
16/11/2025
L3Harris to deliver advanced electronic warfare systems quickly for worldwide F-16 programs...
16/11/2025
Upgrading your Apogee Symphony MKII from TB2 to TB3: Need to Knows Upgrading your Apogee interface to Thunderbolt 3 isn't difficult - but it's not a cas...
16/11/2025
Apogee Electronics Acquired by Dirk Ulrich's Rockforce Tech Holding, Parent ...
15/11/2025
BURBANK, Calif. The Walt Disney Company and YouTube TV have reached a new multi-year distribution agreement, ending a carriage dispute that had blacked out ABC,...
15/11/2025
PLYMOUTH, Wis. A group of about 20 TV technology vendors supporting NextGen TV are wrapping up their ATSC 3.0 Interop here at Heartland Video Systems headquarte...
15/11/2025
NEW YORK NBCUniversal has announced that it will be launching NBC Sports Network (NBCSN), a 24/7 linear network featuring a wide range of marquee sporting event...
15/11/2025
WASHINGTON The Federal Communications Commission has released an updated agenda for its Open Meeting on Thursday, November 20, 2025, which is scheduled to comme...
15/11/2025
JERSEY CITY, N.J. OpenVault has released new data showing that DOCSIS 3.1 and higher services are driving significant across-the-board increases in speed and co...
15/11/2025
ATLANTA Gray Media has concluded an agreement with the Ohio Valley Conference ( OVC ) to broadcast OVC college basketball games across 20 Gray markets in five s...
15/11/2025
NEW BERN, N.C. Wheatstone has named company veteran Darrin Paley vice president of business accounts, effective immediately....
15/11/2025
Back to All News
Netflix Serves Up the Trailer for Dining with the Kapoors'...
14/11/2025
Op-Ed: The Automation Imperative - Why AI Is the Only Scalable Defense Against L...
14/11/2025
FutureSPORT 2025: Caretta Research on why streaming won't save broadcasters By Jo Ruddock
Monday, November 10, 2025 - 14:37
Print This Story
Caretta R...
14/11/2025
Daneysse Daniels, Emmy-Winning Production Manager and Beloved Teammate at TNT Sp...
14/11/2025
The NBA 2K League Returns as an Immersive Entertainment Ecosystem' With Non...
14/11/2025
Inaugural SVG LIVE! Conference Brings 250 Top Sports and Entertainment Producti...
14/11/2025
(L-R) Suzette Quintanilla, Isabel Castro, and Chris P rez attend the 2025 Sundan...
14/11/2025
This week, Casa Spotify lit up Las Vegas with an unforgettable celebration of Latin music and culture ahead of the 26th Annual Latin Grammy Awards. Hosted at th...
14/11/2025
Boston Conservatory Orchestra to Perform at Carnegie Hall for United Nations Gen...
14/11/2025
Berklee Alum Lewis Pickett Wins Record of the Year at Latin Grammy Awards Pickett, a 2009 graduate, was nominated six times across three categories at this ye...
14/11/2025
PLYMOUTH, Wisc. A group of about 20 TV technology vendors supporting NextGen TV are wrapping up their ATSC 3.0 Interop here at Heartland Video Services headquar...
14/11/2025
What if your idle operations centers, inactive cloud time, staff or you as a freelancer could start generating revenue tomorrow?
NECF Corporation today announc...
14/11/2025
Dalet, a leading provider of cloud-native, end-to-end media workflow solutions, today announced that it has been recognized as a Major Player in the IDC MarketS...
14/11/2025
The recent ADAC RAVENOL 24h Race at Germany's legendary N rburgring circuit marked a milestone for live broadcast production, and Clear-Com played a pivota...
14/11/2025
Streaming tech companies M2A Media and Unified Streaming provided key software components that enabled the world's leading sports entertainment platform, DA...
14/11/2025
Lightware, an industry leader in signal management solutions, is strengthening its commitment to sustainability through a series of people-focused ESG (Environm...
14/11/2025
WASHINGTON As the federal government shut down comes to an end, the Federal Communications Commission has further extended some filing deadlines and issued some...
14/11/2025
STAMFORD, Conn. In the run-up to being spun off from Comcast, Versant has announced that USA Sports will be the new brand and division name for the company'...
14/11/2025
Friday 14 November 2025
Documentary short, Children No More, comes to Sky this December
Following its world premiere at DOC NYC yesterday, Sky today announces...
14/11/2025
Friday 14 November 2025
Sky to remain the home of Ryder Cup and DP World Tour through 2029
Sky and the DP World Tour have today announced a four-year partners...
14/11/2025
Rohde & Schwarz redefines border security with comprehensive signals intelligenc...
14/11/2025
Rohde & Schwarz, together with Samsung, first to validate 3GPP NR-NTN conformanc...
14/11/2025
Back to All News
Netflix Unveils the Trailer of City of Shadows
Entertainment
14 November 2025
GlobalSpain
Link copied to clipboard
PREMIERING ON NETFLIX ...
14/11/2025
Today's AI workloads are data-intensive, requiring more scalable and afforda...
14/11/2025
The Late Late Toy Show blasts off!
RT launches The Late Late Toy Show's of...
14/11/2025
Scripps Research study reveals how uterine contractions are regulated by stretch and pressure during childbirth Molecular insights could lead to improved labor ...
13/11/2025
Versant Announces USA Sports as New Brand for Sports PortfolioBy SVG Staff
Thursday, November 13, 2025 - 6:15 am
Print This Story | Subscribe
Story Highli...
13/11/2025
SVG Campus Shot Callers: Mike Szlamowicz, Assistant Athletics Director, Sport an...
13/11/2025
REMI Realities: Finding Success in Switching, Replay, Graphics, Commentary, and ...
13/11/2025
SVG Sit-Down: E1's Laurence Boyd Shares the Tech Challenges of the 2025 Race...
13/11/2025
Versant's USA Sports Inks Five-Year Rights Deal With New Pac-12 ConferencePac-12 Enterprises will produce all USA Network games in partnership with USA Spor...
13/11/2025
NBCU To Launch New NBC Sports Network on Nov. 17By SVG Staff
Thursday, November 13, 2025 - 10:40 am
Print This Story | Subscribe
Story Highlights
NBCUniv...
13/11/2025
2025 Sports Broadcasting Hall of Fame: Glenn Adamo, Artist of StorytellingBy Ken Kerschbaumer, Editorial Director
Thursday, November 13, 2025 - 11:29 am
Pri...
13/11/2025
(L-R) Jessica Hargrave, Tig Notaro, Stef Willen, Ryan White, Megan Falley, and A...
13/11/2025
By Roni Jo Draper
My father was born and raised in the Yurok village of Weitpus, in what is now considered Northern California. There at the fork of the Klamat...