Sony Pixel Power calrec Sony

Breaking the Myth of Difficult Device Integration

30/03/2022

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
LINK: https://agama.tv/breaking-the-myth-of-difficult-device-integration/...
See more stories from agama

Most recent headlines

05/01/2027

Worlds first 802.15.4ab-UWB chip verified by Calterah and Rohde & Schwarz to be demoed at CES 2026

Worlds first 802.15.4ab-UWB chip verified by Calterah and Rohde & Schwarz to be ...

09/10/2026

Dolby Expands Dolby OptiView Platform with New Capabilities at IBC 2026

September 10 2026, 06:00 (PDT) Dolby Expands Dolby OptiView Platform with New Capabilities at IBC 2026 New Sports Intelligence helps providers better unders...

07/10/2026

Dalet Flex LTS Delivers Smarter Media Operations from Ingest to Distribution

Dalet, a leading technology and service provider for media-rich organizations, today announced the latest Long-Term Supported (LTS) release of Dalet Flex. Build...

02/10/2026

NESN, SportsNet Pittsburgh Debut New-Look Scorebug, Graphics for NHL Season

Design reflects feedback on graphics introduced for MLB Red Sox and Pirates games Boston Bruins games on NESN and Pittsburgh Penguins games on SportsNet Pittsb...

02/10/2026

NBC Sports Leans Into Image Quality, Drones, Distinct Camera Positions, REMI as College-Football Slate Hits Big Stretch

NEP SS7/ST7 anchors Big Ten Saturday Night; nine Peacock games are produced from...

02/10/2026

SVG GameDay, Ep. 33: National Football Leagues Tim Tubito - Fan Entertainment at Home & Abroad

In-venue and creative video staffers at the professional and collegiate level ha...

02/10/2026

GameTime Productions Delivers National Broadcast Production for AUSL Season

GameTime Productions provided national broadcast production services for the Athletes Unlimited Softball League (AUSL) 2026 season, with coverage distributed ac...

02/10/2026

Audio-Technica Introduces HP-HBM50x Replacement Headband for ATH-M50x

Audio-Technica has introduced the HP-HBM50x, a genuine replacement headband for the ATH-M50x professional studio monitor headphones. The HP-HBM50x is compatible...

02/10/2026

ASG Helps Black Lava Studios Build 9.1.6 Immersive Audio Facility

Advanced Systems Group (ASG) has helped audio professional Steve Schatz design and build Black Lava Studios, a 9.1.6 Dolby Atmos mixing and mastering facility i...

02/10/2026

Cobalt Digitals PACIFIC Line Wins Two IBC Best of Show Awards

Cobalt Digital has received Best of Show awards from TV Tech and TVB Europe at IBC2026 for solutions from its PACIFIC compression line. TV Tech recognized the ...

02/10/2026

ESPN and TMRW Sports Extend Multi-Year U.S. Media Rights Deal for TGL

ESPN and TMRW Sports have announced a multi-year extension of their U.S. media rights agreement for TGL presented by SoFi. The 2027 TGL season will open Sunday,...

02/10/2026

Devlin Design Group and Clickspring Design Announce Strategic Alliance

Devlin Design Group (DDG) and Clickspring Design (CSD) have announced a strategic alliance combining their design capabilities for broadcast, media, workplace, ...

02/10/2026

CSMG Named Exclusive Media Rights Representative for the NCHC

The National Collegiate Hockey Conference has announced a partnership with CSMG (Collegiate Sports Management Group) making the firm the exclusive representativ...

02/10/2026

NAB NY 2026: Mediaproxy To Showcase AI Monitoring and Browser-Based Multiviewer

Mediaproxy will exhibit at NAB Show New York (Booth 561, Javits Center, October 21-22), demonstrating new AI capabilities in its LogServer compliance platform a...

02/10/2026

Mesh Broadcast Services Installs Calrec Argo M in Eclipse Mobile Production Unit

Mesh Broadcast Services has installed a Calrec Argo M console in the production area of its Eclipse 40-foot mobile unit, recently moved onto a 2025 Freightliner...

02/10/2026

Richmond AFL Deploys Vizrts Viz Libero Teams for Coaching and Content

Vizrt has announced that Richmond AFL has signed on to use Viz Libero Teams for coaching analysis and content creation. The platform provides 3D match analysis ...

02/10/2026

Oak View Group Names Cisco as Official Technology Partner for Infrastructure Management Across OVGs Venue Network

Oak View Group (OVG) has announced Cisco as an Official Technology Partner. Thro...

02/10/2026

Clear-Com Arcadia Central Station Installed at Audiovisual Training Centre in d

Clear-Com has announced that the Audiovisual Training Centre in d , Poland, has installed an Arcadia Central Station as the communications hub for its broadca...

02/10/2026

Sportel Announces Awards Jury, Highlighted by Multiple Champions

A major figure in international football, three-time French champion and three-time Ligue 1 top scorer, Sonny Anderson will chair the SPORTEL Awards 2026 Jury. ...

02/10/2026

Bantaray Mobile Sports Production Relies on AJA FiDO Converters for Niche Sports Broadcasts

California-based Bantaray Mobile Sports Production has built its mobile producti...

02/10/2026

Overtime Raises New Strategic Investment Led by Eldridge Capital Management

Overtime has announced a new strategic investment led by Eldridge Capital Management. Eldridge has investments across sports and media including the Los Angeles...

02/10/2026

Milwaukee Bucks Launch Bucks+ Streaming Service For 2026-27 Season

The Milwaukee Bucks have launched Bucks , a direct-to-consumer streaming service that expands access to Bucks games during the 2026-27 season for fans statewide...

02/10/2026

Roland update Zenology GX for iPad

v1.9.3 introduces AUv3 support Roland have just released an update that kits their free iPad-based software synth out with AUv3 support, meaning it can now ...

02/10/2026

MOTU Digital Performer 12 now available

Dolby Atmos support, AI-powered stem separation & more The latest version of MOTU's DAW software is now available, and marks a major step forward with t...

02/10/2026

iFi audio reveal the GR2 MT

Portable DAC created in collaboration with Steve Levine British hi-fi experts iFi audio have unveiled a new Master Tuned variant of their praised iDSD GR2 p...

02/10/2026

New SBS podcast How Australia Works helps migrants to navigate Australia's democracy

New SBS podcast How Australia Works helps migrants to navigate Australia's d...

02/10/2026

NFVF Announces Appointment of New Chief Executive Officer

01 October 2026 | Johannesburg, South Africa - The National Film and Video Foundation (NFVF), an entity of the Department of Sport, Arts and Culture (DSAC), is ...

02/10/2026

Inside the Pirate Ecosystem: How Illegal Streaming Devices Put Consumers at Risk

In our latest blog, Tim Pearson looks at streaming piracy from a different lens, focusing on digital trust, consumer risk, and the future of subscriber protecti...

02/10/2026

Reps. Raskin, Whitesides Call for Investigation into Trumps Taxpayer-Funded Political Ads

Share Copy link Facebook X Linkedin Bluesky Email...

02/10/2026

WHYY Completes Acquisition of Penn State's WPSU

Share Copy link Facebook X Linkedin Bluesky Email...

02/10/2026

FCC Updates EEO Rule Wording No Form 395-B

Share Copy link Facebook X Linkedin Bluesky Email...

02/10/2026

AJA Video Helps Bantaray Mobile Tap Into Niche Sports Streaming

Share Copy link Facebook X Linkedin Bluesky Email...

02/10/2026

Haymaker VFX acquires SWISS

Haymaker VFX acquires SWISS Brie Clayton October 2, 2026 0 Comments Stockholm-based, globally recognized creative team becomes part of Haymaker VFX in...

02/10/2026

Treasure & Dirt Shot with URSA Cine 17K 65

Treasure & Dirt Shot with URSA Cine 17K 65 Brie Clayton October 2, 2026 0 Comments DP Edward Goldner, ACS, relied on 65mm sensor to capture vast deser...

02/10/2026

Sonnet Announces Industry's Only Bus-Powered 10 Gigabit Ethernet Thunderbolt 5 Adapter

Sonnet Announces Industry's Only Bus-Powered 10 Gigabit Ethernet Thunderbolt...

02/10/2026

Mediaproxy brings AIdriven monitoring and browserbased multiviewing to NAB Show New York

Mediaproxy brings AI driven monitoring and browser based multiviewing to NAB Sho...

02/10/2026

Cobalt Digital's Pacific Line Wins Two Future Best of Show Awards at IBC

Cobalt Digital's Pacific Line Wins Two Future Best of Show Awards at IBC Brie Clayton October 1, 2026 0 Comments Manufacturer receives honors from...

02/10/2026

Emergent Names Tom Shelburne Head of Business Development, North America

Share Copy link Facebook X Linkedin Bluesky Email...

02/10/2026

Mesh Broadcast Services Adds Calrec Argo M Console

Share Copy link Facebook X Linkedin Bluesky Email...

02/10/2026

International Swimming League Names Gravity Media Official Broadcast Partner

Share Copy link Facebook X Linkedin Bluesky Email...

02/10/2026

Big Blue Marble Adds Live Multiview to its Cloud Video Kit

Share Copy link Facebook X Linkedin Bluesky Email...

02/10/2026

AI Independence, Interoperability Fuel IP-Based Media Production

Share Copy link Facebook X Linkedin Bluesky Email...

02/10/2026

Photo Gallery: 34th Annual Broadcasting+Cable Hall of Fame

Share Copy link Facebook X Linkedin Bluesky Email...

02/10/2026

Andres Arochi Brings ZEISS Master Primes to Lady Gagas Th...

Cinematographer Andres Arochi was on his way back from filming in Spain when he got the call that Tim Burton would be directing a music video for Lady Gaga and ...

02/10/2026

Cobalt Digitals Pacific Line Wins Two Future Best of Show...

Cobalt Digital's Pacific Line Wins Two Future Best of Show Awards at IBC Manufacturer receives honors from both TV Tech and TVB Europe for advancements in...

02/10/2026

Maxon Adds Support for Artist-Controlled Automation with...

Maxon, maker of powerful, approachable software solutions for creators working in 2D and 3D design, motion graphics, visual effects and visualization, today ann...

02/10/2026

Vizrt reimagines live production workflows with fresh Tri...

The strengthened TriCaster portfolio increases accessibility to leading media technology, drives more creative experiences, and scales with every production wit...

02/10/2026

Computer-designed protein targets immune receptor linked to inflammation at a new undruggable site

LA JOLLA, CA-To sense their environment and respond accordingly, cells enlist me...

02/10/2026

Crystal Lake, a Friday the 13th prequel series, coming to Sky & NOW on 19 October

Friday 2 October 2026 Crystal Lake, a Friday the 13th' prequel series, com...

02/10/2026

Sky VIP helps families celebrate the Christmas season with 5,000 free tickets to LEGOLAND Windsor Resort

Friday 2 October 2026 Sky VIP helps families celebrate the Christmas season wit...