
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
05/01/2027
Worlds first 802.15.4ab-UWB chip verified by Calterah and Rohde & Schwarz to be ...
01/06/2026
January 6 2026, 05:30 (PST) Dolby Sets the New Standard for Premium Entertainment at CES 2026
Throughout the week, Dolby brings to life the latest innovatio...
02/05/2026
Dalet, a leading technology and service provider for media-rich organizations, t...
01/05/2026
January 5 2026, 18:30 (PST) NBCUniversal's Peacock to Be First Streamer to ...
01/04/2026
January 4 2026, 18:00 (PST) DOLBY AND DOUYIN EMPOWER THE NEXT GENERATON OF CREATORS WITH DOLBY VISION
Douyin Users Can Now Create And Share Videos With Stun...
10/03/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
10/03/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
10/03/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
10/03/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
10/03/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
10/03/2026
NVIDIA and Thinking Machines Lab announced today a multiyear strategic partnersh...
09/03/2026
Foos Gone Wild and Combate Global have teamed up to create a twist on combat sports competition, announcing the launch of a special amateur Mixed Martial Arts (...
09/03/2026
At the 2026 NAB Show, Harmonic will introduce significant enhancements to its video appliances and SaaS solutions, highlighted by a next-generation media server...
09/03/2026
ESPN's March 3 spring training matchup between Team USA and the San Francisc...
09/03/2026
Most Valuable Promotions (MVP) announces the launch of MVPW, a new global platfo...
09/03/2026
Behind The Mic provides a roundup of recent news regarding on-air talent, includ...
09/03/2026
From Super Bowl compounds to Final Four setups, the Hofstra graduate helps coord...
09/03/2026
Stamford plays a key role, but a small team in Cortina and Milan powers local presence and mixed-zone coverage...
09/03/2026
The event brings together SVG's previous Cloud Production and Content Management Forums into a single, comprehensive day of programming...
09/03/2026
Updated Mar 9, 2026
Live surround sound has been a part of the plan for Roman a...
09/03/2026
Contains all six dual-ensemble libraries
VSL's Duality Strings series offers an intriguing alternative to your average string library, capturing two str...
09/03/2026
Outstanding Contribution To UK Music
Photo: Samuel Bradley
Ahead of their upcoming MPG Awards, the Music Producers Guild (MPG) have revealed the latest win...
09/03/2026
Two new high-quality DI boxes announced
Boasting some impressive technical specifications and versatile routing options, Strymon's latest active DI boxe...
09/03/2026
Latest MPE-capable Soundbox library released
The follow-up release for Sonora Cinematic's Pure Nylon has arrived, and becomes the latest addition to the...
09/03/2026
Popular wireless mic head design revived
Sennheiser have revealed that the MD 9235, a cardioid mic head designed to pair up with their handheld wireless sys...
09/03/2026
Captures two sought-after Dumble combo amps
The latest TONEX release captures a pair of sought-after Dumble amplifiers from IK Multimedia's private amp ...
09/03/2026
Flexible all-analogue insert matrix joins line-up
HUM Audio Devices don't tend to do things by halves - even the quickest of glances at the likes of the...
09/03/2026
Captures three sought-after pianos
Rhodes latest software release brings together a collection of three virtual pianos: a concert grand, an acoustic upright...
09/03/2026
Flagship compressor gets an upgrade
Techivation's flagship compressor plug-in has just been treated to a ground-up rebuild that kits it out with some po...
09/03/2026
Profiler OS 14.0 enters open beta
Kemper's amp-modelling systems already have a great reputation, but the latest update to their systems' underlying...
09/03/2026
Procedural stems smasher & recomposition engine
Blinksonic have recently launched a new Reaktor-based tool which they say takes a radical departure from yo...
09/03/2026
13 - 15 March 2026 at University of Warwick Conference Centre
The Institute of Professional Sound (IPS) have announced that The IPS Training Weekend 2026 wi...
09/03/2026
Rohde & Schwarz and NETGEAR collaborate for next generation Wi-Fi 8 access point...
09/03/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
09/03/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
09/03/2026
Broadpeak, a leader in streaming and monetization at scale, will showcase its latest innovations for broadcasters and streaming platforms at NAB Show 2026 (boot...
09/03/2026
UKTV has agreed a new partnership deal with Samsung that makes UKTV's free linear channels available to internet-only Samsung TV viewers in the UK for the f...
09/03/2026
Monday 9 March 2026
Sky reveals first look trailer and sets premiere date for S...
09/03/2026
Monday 9 March 2026
Sky Appoints Damian Saunders as Managing Director of Sky Business
Sky has today announced the appointment of Damian Saunders as Managing D...
09/03/2026
Back to All News
The Predator of Seville premieres on Netflix on 27 March
Entertainment
09 March 2026
GlobalSpain
Link copied to clipboard
Download the im...
09/03/2026
Back to All News
Netflix Debuts the Trailer for Love is Blind: Sweden Season 3
Entertainment
09 March 2026
GlobalSweden
Link copied to clipboard
That wait...
09/03/2026
Bill O'Reilly Announces New Weekly Podcast We'll Do It LIVE! We'll Do It LIVE!' A Bold, Fresh Presentation from Bill O'Reilly
New York...
09/03/2026
MOSOLF SE & Co. KG Relies on green.screen from Arvato Systems for Strategic Ener...
09/03/2026
A powerful new national initiative supporting people living with dementia launch...
09/03/2026
AI is everywhere and accelerating everything - becoming essential infrastructure...
09/03/2026
ABB Robotics and NVIDIA today announced a breakthrough partnership that brings i...
07/03/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
06/03/2026
TNT Sports and the International Basketball Federation (FIBA) have reached a mul...
06/03/2026
OffBall and TOGETHXR, two influential young media companies in sports, announce a strategic and operational partnership in a shared push to scale and create inn...
06/03/2026
InfoComm 2026, a destination for AV, IT, broadcast, and AI-driven systems, annou...