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 ...

23/10/2026

CBS Sports Adds U.S. Spanish-Language Rights for Concacaf Champions Cup on Paramount+

CBS Sports will be the exclusive U.S. Spanish-language rights holder for the Con...

23/10/2026

Fubo Closes Seven New RSN Distribution Agreements for 2026-27 NBA Season

Fubo has announced new distribution agreements for carriage of seven regional sports networks for the 2026-27 NBA season. Through those agreements, the Fubo str...

23/10/2026

CBC/Radio-Canada Selects Dalet Pyramid to Modernize News Operations

CBC/Radio-Canada has selected Dalet to modernize its news operations across Canada, deploying Dalet Pyramid across the organization. CBC/Radio-Canada operates 2...

23/10/2026

EZDRM Granted Patent for DRM Delivery Over WebRTC

EZDRM has been granted US patent 12,659,532 for a method of delivering DRM-protected content over low-latency WebRTC (Web Real-Time Communication) infrastructur...

23/10/2026

Audio-Technica Acquires Hollywood Facility to Expand West Coast Presence

Audio-Technica has acquired a new facility in the Hollywood Media District in Hollywood, California, expanding its U.S. operations. The 8,966-square-foot, two-s...

23/10/2026

Audio-Technica to Exhibit Microphones and Headphones at AES Show Nashville 2026

Audio-Technica (booth 514) will display its studio and live sound microphones and headphones at AES Show Nashville 2026, taking place Saturday, Oct. 31, and Sun...

23/10/2026

Stephen Arnold Music Details Role of Sonic Branding as Teams Take Over Local Sports Broadcasts

As regional sports networks (RSNs) decline, teams and leagues are producing more...

23/10/2026

ACC Study: More Americans Would Take Pride in Visitors Feeling Welcome at LA28 Than in Team USA Winning the Most Medals

Acceleration Community of Companies (ACC) has released The People's Games: W...

23/10/2026

GameTime Productions Uses Stripe TV's Lightbox and Telestripe for Portable Telestration

GameTime Productions is using Stripe TV's Lightbox and Telestripe wireless t...

23/10/2026

CLOUDflex Broadcast Integrates ZoomISO Cloud Into Its Platform

CLOUDflex Broadcast has announced a direct integration with ZoomISO Cloud, Zoom's remote contribution solution for cloud-based media production systems. Dev...

23/10/2026

TMRW Sports Names Chris Zaber SVP of Ticketing and Venue Experience

TMRW Sports has appointed Chris Zaber senior vice president of ticketing and venue experience as the company continues to build out its portfolio of sports prop...

23/10/2026

Wheelhouse and Omaha Productions Invest in BBQ World Cup & Expo

The BBQ World Cup & Expo has announced an investment from Wheelhouse, the content, talent and investment company founded by Brent Montgomery, and Omaha Producti...

23/10/2026

Bally's and BKB Launch Bally's Fightnight by BKB Franchise With ForceIQ Punch Data

BKB Bare Knuckle Boxing and Bally's Corporation have unveiled Bally's Fi...

23/10/2026

Yahoo Sports Launches Perfect 5 Fantasy Game for NBA on Prime Broadcasts

Yahoo Sports has launched Perfect 5, a free-to-play fantasy basketball game tied to each week's marquee NBA on Prime matchups. It is designed to run alongsi...

23/10/2026

NEP Connected Solutions' Steve Grigely on Continued Remote Production Expansion

At the SVG Remote Production Summit at Techwood Studios in Atlanta, Steve Grigel...

23/10/2026

Dirtcam, Expanded Specialty Cameras Highlight Fox Sports World Series Production

Fox Sports will broadcast game one of the 122nd World Series tonight from Milwaukee as the Milwaukee Brewers and Tampa Bay Rays square off. And with a crew of 4...

23/10/2026

Prime Video Tips Off Second NBA Season With AI-Driven Prime 360 Photorealistic Virtual Camera System

Emmy-winning Culver City studio, bicoastal Game Creek Video mobile units return ...

23/10/2026

FOX Sports Gives Series Sound a Refresh With New People on the Audio Team, New Parabolics

A playoff season featuring three series sweeps allows broadcast crews extra time...

23/10/2026

fedDSP launch ECO delay plug-in

Creative and versatile echo effect fedDSP have released ECO, a delay plug-in designed to cover everything from straightforward repeats to more experimental ...

23/10/2026

UJAM release DETUNICORN

A FREE hypersaw synth in time for Halloween UJAM have announced Detunicorn, a free collectable synthesizer plug-in designed to produce the thick, detuned hy...

23/10/2026

Adhoc notification: SGL Carbon sells its former Carbon Fiber facility in Moses Lake (USA)

(4:10 PM) Wiesbaden, October 23, 2026. As part of the restructuring of the forme...

23/10/2026

SMPTE to Hold Tech Summit in Conjunction With NAB Show NY Starting in 2027

Share Copy link Facebook X Linkedin Bluesky Email...

23/10/2026

DirecTV to Showcase Unique Sport Equinox on Oct. 26

Share Copy link Facebook X Linkedin Bluesky Email...

23/10/2026

Territory Group Launches Lux Meridian, New AI-Native Film and Television Production Studio

Territory Group Launches Lux Meridian, New AI-Native Film and Television Product...

23/10/2026

SipRadius provides rapid response to PHP concerns

SipRadius, widely recognized for making content processing and connectivity secure and seamless, has responded promptly to the global issue of PHP vulnerabiliti...

23/10/2026

Comcast Plans Restructure, Layoffs

Share Copy link Facebook X Linkedin Bluesky Email...

23/10/2026

Locality Appoints Saul Stetson as SVP, Head of Product

Share Copy link Facebook X Linkedin Bluesky Email...

23/10/2026

University of North Florida Athletics, Cox Media Sign Multiyear Broadcast Deal

Share Copy link Facebook X Linkedin Bluesky Email...

23/10/2026

CBC/Radio Canada Taps Dalet to Modernize News Operations

Share Copy link Facebook X Linkedin Bluesky Email...

23/10/2026

SWIT Introduces Compact, Gold Mount Batteries

Share Copy link Facebook X Linkedin Bluesky Email...

23/10/2026

Hearst Television VP, Finance Stanley Herriott Sets Retirement

Share Copy link Facebook X Linkedin Bluesky Email...

23/10/2026

Ayrton Launches Falconer

A Brand New, Ultra-high-performance Remote Followspot Control System Ayrton has released Falconer, a brand-new, ultra-high-performance remote followspot system...

23/10/2026

Scripps Research Nobel laureates Ardem Patapoutian and K. Barry Sharpless among first honored by new Wertheim Laureate Prize

LA JOLLA, CA-The newly launched Wertheim Laureate Prize invites Nobel laureates ...

23/10/2026

Vegas Pro Delivers Professional Color Management and Faster Renders

Vegas Pro Delivers Professional Color Management and Faster Renders Jessie Electa Petrov October 22, 2026 0 Comments The 2027 release from Boris FX st...

23/10/2026

Blackmagic Design Announces Price Increases Due to Rising Memory Costs

Blackmagic Design Announces Price Increases Due to Rising Memory Costs Brie Clayton October 22, 2026 0 Comments New prices across a range of products ...

23/10/2026

Berklee Welcomes Marcus Gilmore for Signature Series Performance

Berklee Welcomes Marcus Gilmore for Signature Series Performance The two-time Grammy Award-winning drummer, composer, producer, and bandleader will also lead ...

23/10/2026

Season 30 of The Voice Features a Record Number of Berklee Alumni

Season 30 of The Voice Features a Record Number of Berklee Alumni Learn more about Dakota Cohen, Brandon Diaz, Nina Howland, and Zalissa Stewart, plus how the...

23/10/2026

The Dyers Caravan Park: A Merry Elfing Christmas (w/t) coming to Sky and NOW

Can Danny and Dani's grand plans save Christmas, or are they heading for a festive fiasco?Friday 23 October 2026 The Dyers' Caravan Park: A Merry Elfin...

23/10/2026

Matchday Ready: Ella Toone & Keely Hodgkinson Star in New WSL Series

Friday 23 October 2026 Matchday Ready: Ella Toone & Keely Hodgkinson Star in New WSL Series Sky Sports has launched Minus 1, a new social series that pairs th...

23/10/2026

iPhone Duo arrives at Apple Store locations worldwide - PHOTOS - Posted on 23 October 2026

On Friday, October 23, the highly anticipated iPhone Duo made its debut at Apple...

22/10/2026

Router Control Strategy: UCP Panels, WebPanel, and NBOSS

Router Control Strategy: UCP Panels, WebPanel, and NBOSS Selecting a broadcast router control system is far more than a panel procurement exercise. The control ...

22/10/2026

BeckTV, Beam Dynamics, Providius Connect System Design, Asset Intelligence, and Live Monitoring

BeckTV, Beam Dynamics, and Providius have announced a collaboration linking Beck...

22/10/2026

NETGEAR Enterprise Extends Professional Services to NDI AV-over-IP Workflows

NETGEAR Enterprise has extended its Professional Services program beyond the network layer to cover AV-over-IP workflows, with NDI as the first ecosystem partne...

22/10/2026

USSI Global Promotes Ted Korte to Chief Technology Officer

USSI Global has promoted Ted Korte to Chief Technology Officer (CTO). The promotion follows the recent appointment of Ed McGivern as Chief Revenue Officer as th...

22/10/2026

Calrec Appoints Video Progetti as Italian Distribution Partner

Calrec has appointed Video Progetti, a Rome- and Milan-based broadcast distributor and AV system integrator, as its distribution partner for Italy. Video Proget...

22/10/2026

NHL Tonight to Celebrate 5,000th Episode on Oct. 27

NHL Network's NHL Tonight will mark its 5,000th episode on Tuesday, Oct. 27, at 7 p.m. ET. The milestone covers episodes since the show began broadcasting f...

22/10/2026

CURE Insurance Arena Installs New Daktronics Displays

CURE Insurance Arena in Trenton, New Jersey, has partnered with Daktronics to install a five-display centerhung system and three entrance displays. Installed th...

22/10/2026

Arkona Adds Native Integration With Bitfocus Buttons

Arkona technologies has announced native integration between its BLADE//runner AT300 platform and Bitfocus Buttons, the control system from Bitfocus. The arkona...

22/10/2026

U2 to Headline Halftime Show at NFL Thanksgiving Eve Game on Netflix

U2 will perform at halftime of the NFL Thanksgiving Eve Game on Netflix, celebrating the band's 50th anniversary. The game, the first NFL Thanksgiving footb...