
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, ...
19/11/2025
NEW YORK Short-form vertical video has exploded across platforms like TikTok, Instagram and YouTube, but a new survey commissioned by Media.net, a provider of c...
19/11/2025
NEW YORK YES Network, the regional sports network home of the New York Yankees and Brooklyn Nets, and CAMB.AI have struck a partnership they said will leverage ...
19/11/2025
WASHINGTON The Federal Communications Commission has issued detailed guidance on filings that were disrupted by the government shutdown. While many of those fil...
19/11/2025
NEW YORK The popularity of NFL games is largely responsible for continued seasonal momentum in TV viewership into October (measured Sept. 29-Oct. 26), according...
19/11/2025
DirecTV has announced that its MyFree DirecTV streaming service has added seven new channels. Those include four sports services, NBA FAST, Red Bull TV, DAZN Ri...
19/11/2025
SURREY, U.K. Mark Roberts Motion Control (MRMC) has launched Flair Bridge, a compact device that transforms how operators control the company's motion-contr...
19/11/2025
WASHINGTON The Federal Communications Commission, which is continuing to rapidly ramp up its operations after the end of the federal government shutdown, has se...
19/11/2025
IRVING, Texas Nexstar Media Group and Tegna filed applications on Nov. 18 with the Federal Communications Commission (FCC) seeking its consent to transfer broad...
19/11/2025
Scripps Research scientists receive $1.1 million to advance AI modeling for HIV vaccine development New AI system helps scientists rapidly pinpoint the most pro...
18/11/2025
Independent media across Central America are operating under intensifying financial pressure, yet there is a clear appetite for models that can sustain both ind...
18/11/2025
NBA Debuts New Comms Infrastructure and Systems for RefereesTwo-phase rollout is intended to improve game flow, enhance officiating accuracyBy Dan Daley, Audio ...
18/11/2025
Platinum White Paper: How Aggreko Delivers Certainty For Broadcasters On The Wor...
18/11/2025
Kiswe Extends DTC Products With Kiswe Core Cloud-Based Tool for Distributing Con...
18/11/2025
Spanish Basketball Federation partners with ScorePlay to power digital transform...
18/11/2025
HBS selects BBright encoders and decoders to connect ST 2110 live production wor...
18/11/2025
Ashes to Ashes: Inside TNT Sports' hybrid and maverick' production plan...
18/11/2025
SVG All-Stars: Mimi Fotopoulos, Director, Talent and Production Operations, Tenn...
18/11/2025
SVG LIVE! Conference Explores the Tech Side of Sports and Entertainment ConvergenceLive sports and music productions increasingly share gear and infrastructureB...
18/11/2025
LPGA Ups Its Production Game in 2026 With 50% More Cameras, SSMO's & Drones,...
18/11/2025
ESPN's Dunk the Halls Real-Time Animated NBA Game Set to Return for Christma...
18/11/2025
By Jessica Herndon
When Chilean filmmakers Diego C spedes and Giancarlo Nasi ar...
18/11/2025
Earlier this year, we announced the BAPE x SPOTIFY x SYNA by Central Cee (aka Cench) capsule collection, a collaboration that blends sound, style, and street c...
18/11/2025
Our mission to make Spotify the ultimate home for all things audio continues. St...
18/11/2025
SGL Carbon and the renowned Link ping University inaugurated an advanced coating...
18/11/2025
CANBERRA, Australia, Nov. 18, 2025 - L3Harris Technologies (NYSE: LHX) has launched a new, next-generation software device called NETCASTER - the NETwork Contr...
18/11/2025
Pictured are L3Harris ISR President Jason Lambert and Waleid Al Mesmari, EDGE President-Space & Cyber Technologies, signing with Carlo Igniades, L3Harris Region...
18/11/2025
During October, streaming's share of TV viewing in Mexico settled at 23.7%, a marginal shift of -0.8 share points from the previous month.
Disclaimer: YUMI...
18/11/2025
Broadcast Builds On Lead Over Cable, Driven by Football and Drama Programming Ga...
18/11/2025
CINCINNATI E.W. Scripps has issued a statement responding to news that Sinclair has acquired about 8.2% of the outstanding class A (nonvoting) shares in the com...
18/11/2025
TYSONS, Va. Tegna has announced that its shareholders have voted overwhelmingly to approve the proposed $6.2 billion merger with Nexstar Media Group....
18/11/2025
NEW YORK Short-form vertical video has exploded across platforms like TikTok, Instagram, and YouTube, but a new survey commissioned by Media.net, a provider of ...
18/11/2025
SHENZHEN, China DJI today unveiled the Osmo Action 6, an all-in-one action camera featuring a variable aperture with a range from f/2.0 to f/4.0, the company...
18/11/2025
In the high-stakes world of film sound, there's no room for second chances. When an actor whispers a line with the weight of an entire scene, or lets loose ...
18/11/2025
Sonnet Technologies is having a sale on a selection of popular products, including a Thunderbolt 4 dock, an eGPU chassis, SATA and M.2 SSD PCIe cards, and mor...
18/11/2025
Amagi, a cloud-based SaaS technology solutions provider for broadcast and streaming TV, today announced the launch of 4Fangs, a new Free Ad-Supported Streaming ...
18/11/2025
Women In Media (WiM) announces its honorees for the 2025 Holiday Toast. The annual celebration recognizes legendary creatives whose work uplifts and inspires th...
18/11/2025
Cinematographer Adam Newport-Berra ( Good Fortune , The Bear , Euphoria ) emerged from the 2025 Emmy season with a statuette celebrating his Outstanding Cinem...
18/11/2025
Atlanta-based gaffer and lighting programmer Quinton Thomas brings the same practical, problem-solving instinct of a board op to every set he walks onto. With a...
18/11/2025
Suitelife Systems, a division of NFB Consulting Group, headquartered in California, has announced the appointments of Charles Sotto as Director of Media Technol...
18/11/2025
Sound Director and Audio Product Manager Scott Kramer has built a career around shaping stories through audio, guiding projects across film, television and stre...
18/11/2025
iWedia, a global leader in software solutions for connected TV devices, announces its participation at the APAC TV Summit 2025, taking place November 18 20 in B...
18/11/2025
Mark Roberts Motion Control (MRMC) is proud to announce the launch of Flair Bridge, a groundbreaking solution that redefines how operators control MRMC's in...
18/11/2025
Over the summer, world famous musician and rapper Drake continued the rollout of his new album Iceman, by live streaming the second and third episodes of a seri...
18/11/2025
KEIZER, Ore. Municipal broadcaster Keizer City Television, K23 TV, has deployed four Telycam PTZ cameras to upgrade the visual quality of its live meeting cover...
18/11/2025
STAMFORD, Conn. NBC Sports and Peacock have announced that they are working for the second consecutive year with the National Football League, EA Sports and Gen...
18/11/2025
LONDON A new Ampere Analysis study finds that familiar franchises are successfully driving kids' TV consumption on Netflix and that the streamers big bet on...
18/11/2025
PORTSMOUTH, N.H. TV viewers continue to find it challenging to find relevant programs in the fragmented universe of streaming content, according to new findings...
18/11/2025
20 Bob Dylan Songs That Reflect a Legacy of A-Changin On the heels of Bob Dylan receiving a Berklee honorary doctorate, we take stock of one of the most singu...
18/11/2025
Timed with the Microsoft Ignite conference running this week, NVIDIA is expandin...