
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
09/11/2025
Dalet today announced a transformative leap forward for media operations: Agentic Artificial Intelligence (AI) that unifies the Dalet ecosystem under one natura...
07/11/2025
PARIS Ateme said it has been working with Spain-based multinational telco Telef nica to deploy a cloud-native media processing platform for next-generation vide...
07/11/2025
The Society of Motion Picture and Television Engineers has announced it will hold its annual meeting on Wednesday, Dec. 10, via a Zoom webinar at 11 a.m. ET....
07/11/2025
NEW YORK The Coalition for Innovative Media Measurement (CIMM) and TVB have released a study examining how local viewing is measured across television, mobile d...
07/11/2025
LONG ISLAND CITY, N.Y. Altice USA announced it will change its corporate name to Optimum Communications Inc., effective Nov. 7. The company will cease trading u...
07/11/2025
07 11 2025 - Media release Screen Australia announces Gillian Moody-Ardler as Head of First Nations Content
Gillian Moody-Ardler. Photo credit: Sally Flegg. ...
06/11/2025
Media organisations from across the globe are uniting to promote media and information literacy (MIL) to help ensure their future survival and win back the trus...
06/11/2025
SVG Sit-Down: Athlos NYC CEO Kayla Green on Building the Brand of the Young Trac...
06/11/2025
ESPN Exits ESPN BET Deal With PENN, Goes Into Business With DraftKingsDraftKings will integrate innovative fan experiences' across ESPN platforms and DTC s...
06/11/2025
SVG New Sponsor Spotlight: Voyage Audio's Colin Ritchie on How the Spatial M...
06/11/2025
Ben Whishaw at the premiere of Peter Hujar's Day (photo by Robin Marshall / Shutterstock for Sundance Film Festival)
By Bailey Pennick
The premise is si...
06/11/2025
At Spotify, we're always finding new ways to bring you closer to the music that moves you, turning sound into something personal. From the playlists that ma...
06/11/2025
O mundo est ouvindo a Am rica Latina. Os artistas da regi o est o constantement...
06/11/2025
The world is listening to Latin America. The region's artists are consistent...
06/11/2025
El mundo est escuchando a Latinoam rica. Los artistas de la regi n marcan const...
06/11/2025
After nine months of fiscal year 2025, SGL Carbon generated sales of 652.9 million, down 16.5% on the previous year (9M 2024: 781.9 million). This is attribut...
06/11/2025
Contact information:
Miriam Johnson, Website Lead, Fotoware Group
miriam.johnson@fotoware.com
Oslo, October 2025: As part of our brand unification, the Pic...
06/11/2025
Calrec's 36-fader Argo M in Steiger Media's newly equipped OB truck parked outside the venue will showcase a live remote workflow connected to the Calre...
06/11/2025
With nearly 50% of streamers willing to cancel a service based on difficulty fin...
06/11/2025
BRISTOL, Conn., and BOSTON ESPN and DraftKings today announced an agreement naming DraftKings the sports programmer's exclusive official sportsbook and odds...
06/11/2025
MELVILLE, N.Y. Canon USA has launched the CR-N400 and CR-N350, two new Pan-Tilt-Zoom (PTZ) cameras designed to deliver high image quality, versatile connectivit...
06/11/2025
NEW YORK Fox Sports said its coverage of the Los Angeles Dodgers' win over the Toronto Blue Jays in the decisive Game 7 of the 2025 World Series delivered 2...
06/11/2025
NEW YORK DoubleVerify and Roku, Inc. are reporting that they have seen a marked reduction in fraudulent ad requests imitating Roku device traffic across the s...
06/11/2025
CAMBRIDGE, England Faced with rising inflation and worries that the economy is weakening, consumers are prioritizing their spending on popular streaming service...
06/11/2025
STAMFORD, Conn. NBC Sports is mounting mics in unconventional places to bring the sounds of NASCAR into the living rooms of sports fans....
06/11/2025
BRANSON, Mo. Link Electronics has partnered with Aberdeen Broadcast Services to provide a real-time, dual-stream translation and captioning service....
06/11/2025
Venture will deploy and commercialize Level-4 autonomous driving technologies
P...
06/11/2025
Strategic execution and operational optimization lay foundation for sustainable growth
Space Services returns to growth following Thuraya-4 start of operations...
06/11/2025
06 Nov 2025
VEON Appoints Sebastian Rice as General Counsel Vitaly Shmakov promoted to the newly created Chief Investment Officer role
Dubai, November 6, 2025...
06/11/2025
Telos Alliance Partners to Showcase Professional Audio Processing and Next-Gen ...
06/11/2025
The prequel to the Sky Original mob crime saga is a six-part drama tracking the ...
06/11/2025
The six-part drama, set in a close-knit Welsh town fractured by an unspeakable c...
06/11/2025
Rohde & Schwarz at productronica 2025: Innovation and production - hand in hand As a trusted partner for electronics manufacturing, Rohde & Schwarz will prese...
06/11/2025
Back to All News
Mystery Thriller The Price of Confession' Starring Jeon D...
06/11/2025
The company will highlight its recent ecosystem expansions and strategic innovat...
06/11/2025
Red Seat Ventures Announces Partnership with Renowned Entrepreneur, Author and M...
06/11/2025
We're delighted to announce the appointment of Max Mehta and Mark Fannon as Junior Systems Engineers, further strengthening our growing Technology team.
Ma...
06/11/2025
RT Announces Alex Walden as General Manager of the
RTE Concert Orchestra
Alex Walden, renowned orchestra manager, most recently for the BBC Concert Orche...
06/11/2025
Actors Steve Coogan and anna Hardwicke will be on the Late Late Show this week ...
06/11/2025
In the third episode of The 2 Johnnies Late Night Lock In actor Danny O'Carr...
06/11/2025
NVIDIA founder and CEO Jensen Huang and chief scientist Bill Dally were honored ...
06/11/2025
Editor's note: This blog has been updated to reflect the correct launch date for Call of Duty: Black Ops 7', November 14.
A crisp chill's in the...
06/11/2025
Scripps Research team identifies sugar molecules that trigger placental formation Study reveals how sugar-protein interactions are critical for the placenta dur...
05/11/2025
College Hoops Preview 2025: ESPN Remote-Ops Team Preps for Massive Slate of Men&...
05/11/2025
University of Iowa Centralizes Video Production With Dual Control Rooms at Carve...
05/11/2025
On Monday night, Ed Sheeran and Spotify lit up The Royal Dublin Society in Dublin for a one-night-only performance. The occasion? The third installment of Billi...
05/11/2025
Cumbia has long been woven into daily life in Argentina, and its popularity on S...
05/11/2025
La cumbia forma parte del d a a d a de los argentinos desde siempre, y su popula...
05/11/2025
Earlier this year, our in-house publishing imprint, Spotify Audiobooks, put out ...
05/11/2025
SBS showcases next generation of pro cyclists in extended broadcast deal with Pr...