
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 ...
07/10/2026
Dalet, a leading technology and service provider for media-rich organizations, today announced the latest Long-Term Supported (LTS) release of Dalet Flex. Build...
06/09/2026
June 9 2026, 23:00 (PDT) Dolby and MagentaTV Bring Fans Closer to the FIFA Worl...
05/08/2026
Thomson's Climate Crisis Toolkit for Media in Tanzania is being included in a new virtual library designed to ensure accurate and engaging storytelling arou...
05/08/2026
RSNs, teams, leagues, and streamers explore the present and future of local spor...
05/08/2026
As sports-production workflows generate larger volumes of unstructured data and ...
05/08/2026
Three aspiring broadcasters will contribute on-camera and inside the production ...
05/08/2026
Adam Meeks attends the premiere of his film Union County, an official selection of the 2026 Sundance Film Festival. (Photo by Jemal Countess/Sundance Institut...
05/08/2026
Major discounts, updates & remakes of early VST plug-ins
Steinberg are currently celebrating two significant anniversaries, with this week marking the 30th ...
05/08/2026
Flagship monitor range gains wireless remote control
KRK's flagship studio monitor range has just been upgraded, with three new fifth-generation models ...
05/08/2026
Rohde & Schwarz launches next phase of Airways New Zealand Air Traffic Control s...
05/08/2026
Rohde & Schwarz presents the R&S MP007, a man-portable tactical direction findin...
05/08/2026
Advertisers invested $53.6 million in the retirement sector in the last 12 month...
05/08/2026
Nielsen CMI and Ad Intel data reveals who's visiting IKEA, where else they s...
05/08/2026
Media buyers and sellers can now compare deduplicated campaign reach across computer, mobile, connected TV and linear TV across all measurable CTV publishers in...
05/08/2026
Stranger Things' Leads All Streaming Titles with 23.3 Billion Minutes in Fir...
05/08/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
05/08/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
05/08/2026
QuickLink, the leading provider of award-winning video production and remote guest integration solutions, announces the appointment of Kane Peterson to its Nort...
05/08/2026
XR research reveals marketers believe they have control over production costs, yet budget overruns, campaign delays and creative cutbacks remain commonplace
Se...
05/08/2026
Game On Live Studio Uses Blackmagic Design to Stream Tropical 7s
Brie Clayton August 4, 2026
0 Comments
Every match of world's largest youth rugby...
05/08/2026
Chris Fitzgerald to Head TDC's Experiential Growth
Brie Clayton August 4, 2026
0 Comments
Technical Direction Company promotes Chris Fitzgerald to...
05/08/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
05/08/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
05/08/2026
Profuz Digital is set to launch a powerful upgrade to its Profuz LAPIS digital media management platform at IBC this year at Stand 8.A88. France Galop, Canal+ F...
05/08/2026
KRK, a Gibson brand and leader in professional studio monitoring for nearly four decades, launches its new V Series Five Studio Monitors, the latest evolution o...
05/08/2026
Network expansion, continued customer growth and stable financial performance characterized Magyar Telekoms business results for the first half and second quart...
05/08/2026
Wednesday 5 August 2026
The Sky Foundation launches new bursary programme to su...
05/08/2026
Charlie Sheen Launches Mostly Sheenius in Partnership with Red Seat Ventures After Decades as One of the World's Most Recognizable and Interviewed Celebr...
04/08/2026
Live production in the cloud is a growing trend across the industry, and Major L...
04/08/2026
LAFC co-managing owner will succeed Don Garber on Jan. 1, 2027, as league prepar...
04/08/2026
In 2022, when the PGA TOUR was breaking ground on its new, state-of-the-art broa...
04/08/2026
Provided by POVORA, the new camera angle offers a dealer's-eye view of the c...
04/08/2026
Spiideo will provide the camera setup, with NEP handling broadcast integration and off-site video operations...
04/08/2026
Production team streamed more than 750 youth rugby matches using ATEM switchers,...
04/08/2026
Agreement gives KTC early access to NDI's Advanced SDK for integration across commercial displays, digital signage, and interactive panels...
04/08/2026
Twelve projects across four categories recognize collaborative work in productio...
04/08/2026
Multi-year agreement will introduce SkeleTRACK, semi-automated offside, automate...
04/08/2026
Three mc 56 consoles, dual A__UHD Core engines, RAVENNA networking, and HOME management supported live sound, monitoring, and international broadcast production...
04/08/2026
New contribution products support ultra-low-latency video transport across fixed, remote, and mobile production environments...
04/08/2026
Company will showcase updates across PRIME, Chyron LIVE, Paint, virtual production, newsroom workflows, and venue control...
04/08/2026
Exhibit will feature SilverBack, VersaBrix, VersaFrame, VF-9100, and FiberSaver-10G platforms...
04/08/2026
Platform updates target cloud-based production, high-density ST 2110 monitoring,...
04/08/2026
Live Media Group will take control of Gravity Media's U.S. mobile-unit fleet...
04/08/2026
Amp-modelling rigs get major upgrade
HeadRush have recently released a major firmware update that brings some powerful new features to their Prime, Core and...
04/08/2026
Generate a choir from a single voice track
Following years of development, Am I Audio have just officially launched their debut plug-in. Created in collabor...
04/08/2026
Official EMT-endorsed reverbs now available to all
Two more of Universal Audio's renowned UAD plug-ins have just gained new native versions that can be ...
04/08/2026
SBS helps Australians understand why every Census counts
Media releases
As Australia prepares for the 2026 Census on Tuesday 11 August, SBS is helping ensur...
04/08/2026
Canada invests in the future of HF communications with Rohde & Schwarz solutions After selection by the Canadian Department of National Defence (DND) as the p...
04/08/2026
Blendkit Expands Beyond Blender
Brie Clayton August 4, 2026
0 Comments
Popular 3D Asset Library Launches Alpha Plugins for Maya, Godot, and Rhino
Blend...