
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...
04/08/2026
Dalet, a leading technology and service provider for media-rich organizations, t...
18/07/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
18/07/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
17/07/2026
In-venue and creative video staffers at the professional and collegiate level ha...
17/07/2026
Production workers at Brooklyn Bowl's Williamsburg location voted 15-1 to join IATSE Local 4. The bargaining unit covers 24 production workers at the venue,...
17/07/2026
DAZN and ADI Predictstreet have announced an exclusive global strategic partners...
17/07/2026
Zixi and Comcast Technology Solutions (CTS) have announced a strategic integrati...
17/07/2026
Professional Fighters League (PFL) has announced a multi-year partnership with E...
17/07/2026
Spectrum Business has announced Spectrum TV Control Pro, a centralized app-based...
17/07/2026
Clark Wire and Cable has announced that Rick Fernandez, Managing Director of Axxion Consulting, will serve as Independent Manufacturers Representative for Centr...
17/07/2026
TikTok, the NBA, and the WNBA have announced a multi-year global content partnership covering highlights distribution, creator access to marquee events, live-ga...
17/07/2026
Company alleges article contained false and misleading claims regarding customer data...
17/07/2026
Ratings Roundup is a rundown of recent rating news and is derived from press rel...
17/07/2026
(L-R) Edward James Olmos, Luis Valdez, Lou Diamond Phillips and Lupe Valdez attend American Pachuco: The Legend Of Luis Valdez Premiere during the 2026 Sundan...
17/07/2026
Full engine access with reduced soundset
Sonuscore have steadily been introducing a selection of reduced-cost and free versions of their flagship products r...
17/07/2026
Two new special-edition models revealed
Over the past week, Arturia have launched special-edition versions of both their premium MIDI controller and stage p...
17/07/2026
Original founder now back at the helm
In a message posted on his personal social media accounts, Dirk Ulrich has announced that both Plugin Alliance and Bra...
17/07/2026
Legendary presenter Anton Enus to sign off from SBS World News after 27 years wi...
17/07/2026
Millions rise before dawn to watch FIFA World Cup 2026 semi-finals on SBS
17 July, 2026
Media releases
England v Argentina attracted a Total TV reach of a...
17/07/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
17/07/2026
Foundry Releases SmartRoto for Nuke
Brie Clayton July 17, 2026
0 Comments
Spline-based AI powered plugin accelerates time-consuming rotoscoping, helping...
17/07/2026
A Short Documentary About a Giant Pencil Edited with DaVinci Resolve Studio
Brie Clayton July 17, 2026
0 Comments
SBIFF jury award winner finished fro...
17/07/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
17/07/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
17/07/2026
Lightware has published its second voluntary Sustainability Report, showing how energy efficiency, product longevity and responsible material use are increasing...
17/07/2026
Creative software developer Foundry today announced Griptape Enterprise, a new tier of the Griptape AI workflow orchestration platform, extended to meet the str...
17/07/2026
Creative software developer Foundry today announced the availability of SmartRoto, a new AI-powered plugin upgrade for Nuke, NukeX, Nuke Studio, and Nuke Indie ...
17/07/2026
The Final Release of Blackmagic Fairlight Live is Now Available!
Brie Clayton July 16, 2026
0 Comments
Fairlight Live is a new audio mixer designed fo...
17/07/2026
Leveraging All of Entertainment's IP
Andy Marken July 16, 2026
0 Comments
Nobody ever wins the games. Period. There are survivors. There\s no win...
17/07/2026
From intimate acoustic settings to large-scale festival stages, her focus has remained constant: preserving the true natural voice of the violin in every perfor...
17/07/2026
New and returning series, live festival broadcasts, powerful documentaries and major sporting moments headline RT Radio 1's summer schedule
RT Radio 1 is...
17/07/2026
Think of a professional athlete. What separates elite performers is what happens...
17/07/2026
Up For The Match - Live From Croke Park this Saturday at 8pm on RT One and RT ...
17/07/2026
RT Commercial has today announced DiscoverIreland.ie, as sponsor of The Traitor...
16/07/2026
Media organisations with tested plans for new products, services or revenue models can now apply for grants of up to 30,000 through the Business Innovation Syn...
16/07/2026
This recent graduate and Georgia native has turned an early fascination with live production into a growing passion for camera work
In the live-sports-video in...
16/07/2026
TNDV is marking the first anniversary of Aspiration 35, a mobile production truck built around ARRI Alexa 35 Live camera systems. Over its first year, the truck...
16/07/2026
ATSC has completed a major revision to its A/85 Recommended Practice: Techniques...
16/07/2026
FloSports has announced an exclusive global media partnership with CrossFit for the 2026 CrossFit Games, presented by Air National Guard, beginning July 21 in S...
16/07/2026
Sennheiser has released firmware version 1.4 for its Spectera wireless system and announced the Spectera Command Button (Cat. No. 701014). The update adds comma...
16/07/2026
ESPN and the Southwestern Athletic Conference (SWAC) have announced a multi-year...
16/07/2026
Audio-Technica has announced the 20 Series Control Application, a Stream Deck plug-in for compatible Audio-Technica USB microphones. The application is compatib...
16/07/2026
The fifteenth season of The Voice - La plus belle voix on TF1 used four Solid St...
16/07/2026
Gray Media and the Atlanta Hawks have announced a broadcast partnership that wil...
16/07/2026
Season 3 of Netflix's docuseries, which dropped this week, follows Jayden Da...
16/07/2026
The Texas Rangers and Rangers Sports Network presented by Progressive (RSN) have announced BZZR as the new direct-to-consumer distributor for Rangers game broad...
16/07/2026
With England's FIFA World Cup 2026 team getting ready to fly home after losi...