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

09/12/2025

FCC Delays Implementation of Foreign Sponsorship Rules

WASHINGTON The Federal Communications Commission's Media Bureau has once again delayed implementation of sponsorship identification requirements for foreign...

09/12/2025

#GALSNGEAR Announces 2026 Leadership Retreats

WASHINGTON #GALSNGEAR has announced two major leadership retreats in early 2026 that the group said are designed to equip women in media, entertainment, and tec...

09/12/2025

Cox Media Group, Verizon Trade Barbs Over Possible Blackout

WASHINGTON With a Dec. 15 deadline looming for a new retransmission consent and carriage deal between Cox and Verizon, the two parties have started trading barb...

09/12/2025

Samba TV Secures New Funding of up to $60 Million

SAN FRANCISCO Samba TV has announced that it has secured new financing from Horizon Technology Finance Corporation, an affiliate of Monroe Capital, with an init...

09/12/2025

Survey: 75% of Cord-Cutters Ditched a Streaming Subscription in 2025

Many cord-cutters looking to reduce their monthly cable or satellite bills are also cutting back on streaming costs, according to new research from All About Co...

09/12/2025

Shure Takes Center Stage at CMAs, Latin Grammys

LAS VEGAS and NASHVILLE, Tenn. Shure technology played a critical role during the broadcast productions of the 59th Annual CMA Awards at the Bridgestone Arena i...

09/12/2025

Nixer to address AV market demands for speed visibility a...

Unveiling of new CV1, web-browser workflows and Milan roadmap for mission-critical AV environments Nixer Pro Audio will return to Integrated Systems Europe (IS...

09/12/2025

December 08, 2025

An easier approach to recreate the powerful nerve-blocking molecule found in shellfish A Scripps Research-led study resolves the challenge of synthesizing saxit...

08/12/2025

SVG Summit 2025 Technology Exhibits Preview, Part 1

SVG Summit 2025 Technology Exhibits Preview, Part 1By SVG Staff Monday, December 8, 2025 - 6:56 am Print This Story | Subscribe Story Highlights The 2025...

08/12/2025

2025 Sports Broadcasting Hall of Fame: Bill Rasmussen, the Entrepreneur Who Dreamed Sports Into a New World

2025 Sports Broadcasting Hall of Fame: Bill Rasmussen, the Entrepreneur Who Drea...

08/12/2025

SVG Summit 2025 Preview: Live Production Innovation Workshop Goes Deep on ST 2110, MXL, AR/XR, and More

SVG Summit 2025 Preview: Live Production Innovation Workshop Goes Deep on ST 211...

08/12/2025

#GALSNGEAR Announces East, West Leadership Retreats for 2026

#GALSNGEAR Announces East, West Leadership Retreats for 2026By Ken Kerschbaumer Monday, December 8, 2025 - 9:10 am Print This Story | Subscribe Story High...

08/12/2025

MediaKind Acquiring Harmonic's Video Business to Create New Streaming-Video Heavyweight

MediaKind Acquiring Harmonic's Video Business to Create New Streaming-Video ...

08/12/2025

Platinum White Paper: Sony HDR/SDR Camera Shading Techniques for Live Production Applications

Platinum White Paper: Sony HDR/SDR Camera Shading Techniques for Live Production...

08/12/2025

SVG Sit-Down: NESN's Kenny Elcock and Harmonic's Jean Macher Talk Next-Gen Distribution for Live Sports

SVG Sit-Down: NESN's Kenny Elcock and Harmonic's Jean Macher Talk Next-G...

08/12/2025

Monsters Funday Football,' ESPN's Latest Live Animation Effort, Advances the Altcast Art Form Again

Monsters Funday Football,' ESPN's Latest Live Animation Effort, Advances...

08/12/2025

SVG Sit-Down: ESPN Director Jeff Nelson on Calling the (Animated) Action on Monsters Funday Football'

SVG Sit-Down: ESPN Director Jeff Nelson on Calling the (Animated) Action on Mon...

08/12/2025

Monsters Funday Football': Louisiana Philharmonic Delivers Again With Orchestral Mashup of MNF' Theme and Monsters, Inc.' Score

Monsters Funday Football': Louisiana Philharmonic Delivers Again With Orches...

08/12/2025

Always Was, Always Will Be Strength, Survival and Pride this January 26 on NITV, SBS and SBS On Demand

Always Was, Always Will Be Strength, Survival and Pride this January 26 on NITV,...

08/12/2025

Nielsen Audience Segments Now Available in Amazon DSP & Amazon Marketing Cloud

Nielsen's robust data offering enables marketers to connect with their target audience more effectively and drive better results throughout Amazon's adv...

08/12/2025

Paramount Launches Hostile Bid for Warner Bros. Discovery

LOS ANGELES and NEW YORK Paramount has launched a hostile takeover bid for Warner Bros. Discovery with an all-cash tender offer to acquire all of the outstandin...

08/12/2025

ASG Names Macky Beheshti Director, Enterprise Storage and Systems

EMERYVILLE, Calif. Media and entertainment technology and services provider Advanced Systems Group has named Macky Beheshti as director, enterprise storage and ...

08/12/2025

MediaKind to Acquire Harmonic's Video Business for $145M

DENVER MediaKind, a global provider of cloud-based video streaming technology announced today that it is acquiring the video business of Harmonic Inc. for appro...

08/12/2025

Nielsen Audience Segments Now Available in Amazon Ads Marketplace

NEW YORK Nielsen has announced that its Audience Segments from Nielsen Marketing Cloud (NMC) are now available across the Amazon Ads marketplace, including the ...

08/12/2025

Marshall Electronics Highlights CV355 27X ND3 Camera With...

Marshall Electronics showcases the CV355-27X-ND3 Optical Zoom NDI (NDI HX2, NDI HX3) Camera at ISE 2026 (Booth 4N900). Designed for users seeking high-quality ...

08/12/2025

Cinnafilm Launches Tachyon LIVE and IPx LIVE - Real-Time...

Cinnafilm today announced the immediate availability of IPx LIVE and Tachyon LIVE, delivering broadcast-grade, real-time IP video transcoding and motion-compens...

08/12/2025

Hiltron Sees Expanding Demand for Satcom Systems Througho...

Following a successful 45th anniversary year in 2024, Hiltron reports increasing demand for its wide range of satellite communication equipment manufacturing, p...

08/12/2025

Another record year for The Late Late Toy Show as it captivates audiences at home and abroad

Over 1.7 million people watched across the weekend Another record-breaking year...

08/12/2025

Your Holiday Checklist Essentials

When was the last time you updated your default playlist(s)? A default playlist keeps your station(s) on the air should your team ever miss a step in sending mu...

08/12/2025

VEON's Beeline Kazakhstan Breaks Ground for Hyper Cloud Data Center to Offer Sovereign Enterprise, AI and Digital Services

08 Dec 2025 VEON's Beeline Kazakhstan Breaks Ground for Hyper Cloud Data Ce...

08/12/2025

Netflix ISP Speed Index for November 2025

Back to All News Netflix ISP Speed Index for November 2025 Product 08 December 2025 Global Link copied to clipboard This month marks 15 years of the Netfl...

08/12/2025

Another Exciting Chapter in Our Book-to-Screen Journey and What's to Come

Back to All News Another Exciting Chapter in Our Book-to-Screen Journey and What's to Come Entertainment 08 December 2025 Global Link copied to clipboa...

08/12/2025

Harmonic Announces Pending Sale of Its Video Business to MediaKind

Strategic and transformative transaction would sharpen Harmonic's focus on its core Broadband business and advance its growth initiatives Ensures continued...

08/12/2025

N-Series elevates performances at one-of-a kind jazz gastropub - The Epicurus

Copenhagen's The Epicurus is a one-of-a-kind Jazz Gastropub that presents exclusive performances curated by Jazz Pianist and Producer Sir Niels Lan Doky. Fe...

08/12/2025

Arvato Systems receives gematik approval for TI-Messenger tim+

Arvato Systems Receives gematik-approval for TI-Messenger tim Approval secured for TI Messenger tim - paving the way for secure and interoperable communicat...

08/12/2025

Eurovision legend Niamh Kavanagh revealed as first contestant for Dancing with the Stars 2026

Eurovision winner Niamh Kavanagh is the first celebrity to be revealed for the s...

08/12/2025

The RT Toy Show Appeal raises over 30 million in 6 Years

Changing children's lives for good: A staggering 4.6 million raised in the 2025 appeal The people of Ireland and people all over the world have once again...

08/12/2025

Daddy's dancing: Paudie Moloney revealed as second contestant for Dancing with the Stars 2026

It's murder on the dancefloor as The Traitors Ireland legend Paudie Moloney ...

07/12/2025

Netflix Takes Over the Oslo Skyline With Celebratory 'Troll 2' Light Show

Back to All News Netflix Takes Over the Oslo Skyline With Celebratory Troll 2 L...

06/12/2025

L3Harris Chair and CEO Appears on CNBC at Reagan National Defense Forum

In a live broadcast from the Reagan National Defense Forum, L3Harris Chair and CEO Christopher Kubasik joined Morgan Brennan on CNBCs Closing Bell: Overtime. Ku...

06/12/2025

Survey: M&E Embraces Horizontally Integrated Media Archiving Approach

FORT LAUDERDALE, Fla. A new survey from Pixitmedia by Datacore revealed a major shift in the Media & Entertainment industry in media archiving, with 85% of resp...

06/12/2025

Czech TV Deploys LiveU Solutions in 10 OB Vans

HACKENSACK, N.J. LiveU has announced that the national public broadcaster Czech Television has completed one of the largest LiveU live production deployments fo...

06/12/2025

NATAS Celebrates 76th Technology & Engineering Emmy Award Honorees

NEW YORK The National Academy of Television Arts and Sciences (NATAS) presented the Excellence in Production Technology Emmy Award to NASA+ and Dr. Tom Leight...

05/12/2025

2025 Sports Broadcasting Hall of Fame: Curt Gowdy Jr. - Master Storyteller, Nationally and Regionally

2025 Sports Broadcasting Hall of Fame: Curt Gowdy Jr. - Master Storyteller, Nati...

05/12/2025

SVG Sit-Down: Veritone's Sean King on the Power of Mining Video, Audio Data

SVG Sit-Down: Veritone's Sean King on the Power of Mining Video, Audio DataThe company's Data Refinery offers users total control and governance over da...

05/12/2025

Platinum White Paper: Inside the Nashville Predators' Unified, Flexible, Scalable Production System with Ross Video

Platinum White Paper: Inside the Nashville Predators' Unified, Flexible, Sca...

05/12/2025

Netflix Reaches Agreement To Acquire Warner Bros. Following Planned WBD Split

Netflix Reaches Agreement To Acquire Warner Bros. Following Planned WBD SplitThe deal does not include WBDs sports assets like TNT Sports (US, UK, LatAm), Euros...

05/12/2025

FOX Sports Returns to Indianapolis for Primetime Broadcast of Big Ten Championship

FOX Sports Returns to Indianapolis for Primetime Broadcast of Big Ten Championsh...

05/12/2025

SVG Summit 2025 Preview: Digital Engagement & Monetization Workshop Tackles the Future of the Viewer Experience

SVG Summit 2025 Preview: Digital Engagement & Monetization Workshop Tackles the ...