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

04/08/2026

Dalet Announces Commercial Availability of Dalia, Bringing Media-Aware Agentic AI to Enterprise Productions

Dalet, a leading technology and service provider for media-rich organizations, t...

04/07/2026

Detective Conan: Fallen Angel of the Highway Opens in Dolby Cinemas Across Japan, Presented in Dolby Atmos and Dolby ...

April 7 2026, 19:00 (PDT) Detective Conan: Fallen Angel of the Highway Opens in...

01/06/2026

Dolby Sets the New Standard for Premium Entertainment at CES 2026

January 6 2026, 05:30 (PST) Dolby Sets the New Standard for Premium Entertainment at CES 2026 Throughout the week, Dolby brings to life the latest innovatio...

02/05/2026

Dalet Flex LTS Delivers Smarter Search, Faster Editing, and an AI-Ready Foundation for Modern Media

Dalet, a leading technology and service provider for media-rich organizations, t...

01/05/2026

NBCUniversal's Peacock to Be First Streamer to Integrate Dolby's Full Suite of Premium Picture and Sound Innovations

January 5 2026, 18:30 (PST) NBCUniversal's Peacock to Be First Streamer to ...

25/04/2026

Mediagenix Sweeps 2026 NAB Awards With Wins for Product of the Year and Best of Show for Scheduling Optimization

Mediagenix Sweeps 2026 NAB Awards With Wins for Product of the Year and Best of ...

25/04/2026

SCHOEPS Microphones Announces Desert Island Boom Set for NAB 2026

SCHOEPS Microphones Announces Desert Island Boom Set for NAB 2026 Brie Clayton April 24, 2026 0 Comments Compact modular set ideal for location sound ...

25/04/2026

Berklee Africana Studies Hosts Gospel Extravaganza 2026

Berklee Africana Studies Hosts Gospel Extravaganza 2026 The Signature Series event will honor three new inductees to the Berklee Gospel Hall of Fame and celeb...

25/04/2026

Student Spotlight: Siva

Student Spotlight: Siva Maja Gierszewska, who performs under the artist name Siva, shares how she found her songwriting confidence at Berklee. April 24, 2026...

25/04/2026

WNBA Offers Free Streaming of all Preseason Games

Share Copy link Facebook X Linkedin Bluesky Email...

24/04/2026

Churchill Downs Inc. Acquires Preakness Stakes for $85 Million

Churchill Downs Inc. (CDI) has announced a definitive agreement to acquire the intellectual property of the Preakness Stakes and Black-Eyed Susan Stakes from 1/...

24/04/2026

Inter Miami CF Opens Miami Freedom Park with 26 LED Displays From Daktronics, DCL

Daktronics has partnered with DCL (Design Communications, Ltd.) to design, manuf...

24/04/2026

NAB 2026: Chyron Launches PRIME Translate for Multi-Language Live Production

Chyron has announced PRIME Translate, a workflow solution that produces live content simultaneously in multiple languages within the PRIME platform. The system ...

24/04/2026

Eutelsat Supports Co-op Cable in Launching Expanded DTH Offering Across the Caribbean

Eutelsat has announced a new partnership with Co-op Cable, introducing an expand...

24/04/2026

Pitch Dublin Deploys Panasonic Laser LCD Projectors for Indoor Golf and Hospitality Venue

Pitch Dublin, an indoor golf simulation and hospitality venue on Dawson Street i...

24/04/2026

G&D and VuWall Appoint Mirko Aubel as EVP Sales EMEA/APAC, Eric Hnique as Chief Revenue Officer

G&D and VuWall have announced two senior leadership appointments, effective Apri...

24/04/2026

Victory+ Becomes Exclusive Local Streaming Home for Minnesota Lynx

Victory , the free sports streaming service from A Parent Media Co. Inc. (APMC), has announced a multi-year agreement to become the exclusive local streaming ho...

24/04/2026

SVG Students To Watch: Jason Weitz, University of South Florida

The former business major from Massachusetts has found his home in graphics and bug operation while contributing to live ESPN productions In the live-sports-vi...

24/04/2026

MASN and Spectrum Announce Multiyear Carriage Agreement

The Mid-Atlantic Sports Network (MASN) and Spectrum have announced a multiyear carriage agreement making MASN available to Spectrum customers in areas of southe...

24/04/2026

Case Study: 4Wall Entertainment Powers 2026 NFL Draft on NETGEAR AV Line Network

The NFL Draft is rebuilt from the ground up in a new city every year. The three-day fan festival is expected to draw 500,000 or more attendees, with millions fo...

24/04/2026

Diversified Continues Live Sports Expansion, Supports Mobile TV Group Ops Center Buildout

Diversified has continued expansion of its sports and media capabilities to supp...

24/04/2026

NAB Show 2026 Is In The Books! Our Coverage Continues at SVG's SportsTech@NABShow Blog

NAB reports that the 2026 NAB Show wrapped with more than 58,000 registered atte...

24/04/2026

NAB 2026: Clear-Com Announces Updates to Arcadia Central Station and Eclipse HX with New ARC Architecture

Clear-Com has announced significant updates to its Arcadia Central Station and E...

24/04/2026

NAB Reports 58,000+ Registered Attendees at 2026 NAB Show, Up From 2025 but Down From 2024

NAB reports that the 2026 NAB Show wrapped with more than 58,000 registered atte...

24/04/2026

Ratings Roundup: NHL Sees Best Regular Season Average Since 2013; CBS Sports Secures Most Watched Final Round Masters

Ratings Roundup is a rundown of recent rating news and is derived from press rel...

24/04/2026

Bleacher Reports Live NFL Draft Stream Builds on Record-Breaking Audience With Player-Driven, Interactive Production

B/R NFL Draft Live' refines the digital giant's productions around footb...

24/04/2026

Sportradar Report: The Viewing Experience Is the Product' as Sports Media Enters New Era of Personalization, Data-Driven Storytelling

Study highlights five pillars shaping modern fan engagement as broadcasters reth...

24/04/2026

ESPN/ABC, NFL Network Prepare for Record-Setting NFL Draft Presentation From Pittsburgh

The 2026 event, the first Draft with NFL Network under the ESPN umbrella, will b...

24/04/2026

SVG GameDay, Ep. 12: Detroit Lions' Jessica Shlemon - Motor City Football at Ford Field

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

24/04/2026

Van Wagner Brings Warhol-Inspired Pop Art Vision to NFL Draft Videoboard Production

Integral to the Draft production for three almost decades, the company tells the...

24/04/2026

Film Festival Watch: 17 Sundance Institute-Supported Films to Screen at the 2026 Hot Docs Festival

Championing documentaries that illuminate and expand the artform is at the core ...

24/04/2026

Audiobooks About Climate, Conservation, and the Stories They Inspire

Earth Day is a chance to reflect on our connection to the natural world. To mark the 57th Earth Day on April 22, Spotify's editors have pulled together a co...

24/04/2026

From Page to Stage: Spotify Celebrates Storytelling at the LA Times Festival of Books

This past weekend, Spotify was at the heart of the largest literary event in the...

24/04/2026

What 20 Years of Spotify Data Reveals About Our Listeners

All data tells a story, and in our case, that story is written by you. To celebrate 20 years of Spotify, we're sharing bite sized moments that capture how t...

24/04/2026

The Look Behind the Sound

Over the past 20 years, Spotify's look and feel has evolved with the way people use our platform, while ensuring we preserve an intuitive, personal, and fam...

24/04/2026

Spotify at 20: The Most Streamed Music, Podcasts, and Audiobooks of All Time

It's been 20 years since Spotify began, but the real story is what the world chose to play. For the first time, we're unveiling the most streamed artist...

24/04/2026

Spotify Brings Music and Podcast Recommendations to Claude

Whether you're relaxing at home or on the go, Spotify is there across more than 2,000 devices, ready with your favorites or something new to discover. Now, ...

24/04/2026

Nintendo and Spotify Bring Nostalgia with New Super Mario Galaxy' Playlists

Nintendo and Spotify are welcoming fans to the Super Mario Bros. 40th anniversary and the release of The Super Mario Galaxy Movie with new playlists and a speci...

24/04/2026

AES Show moves to Nashville

30 October - 1 November 2026 The Audio Engineering Society (AES) have announced that the AES Show 2026 will be held on Halloween weekend - Friday 30 October...

24/04/2026

Sennheiser introduce the HD 480 Pro

New closed-back design promises honest' low end Sennheiser have just announced the launch of a new pair of flagship closed-back headphones which they s...

24/04/2026

Cre8audio unveil the Programm

Powerful 12-channel hardware sequencer announced Cre8audio are renowned for their innovative, and often visually striking designs, and although their latest...

24/04/2026

IK Multimedia ARC X Immersive arrives

Room correction now supports full 9.1.6 Dolby Atmos setups The software element of IK Multimedia's room-correction system has just received an update th...

24/04/2026

VSL announce free Big Bang Orchestra expansions

New content for BBO Tutti & BBO Riffs VSL have recently introduced some new free content expansions for two of their most popular Big Bang Orchestra Packs: ...

24/04/2026

Rohde & Schwarz to highlight its R&S EVSD1000 UAV-based navigation analyzer at IFIS 2026

Rohde & Schwarz to highlight its R&S EVSD1000 UAV-based navigation analyzer at I...

24/04/2026

Call for NFVF funding applications to attend Film Festivals and Markets taking place from 01 30 June 2026

The National Film and Video Foundation (NFVF) is pleased to announce that the ca...

24/04/2026

Andrea Riseborough & Ashley Walters To Star In ITV Thriller First Woman' About Race To Find Missing Astronaut

ITV's Director of Drama Polly Hill has commissioned six part propulsive, lun...

24/04/2026

NASA Receives L3Harris' Modified Next-Generation Research Aircraft

The NASA 777 aircraft departs the L3Harris facility in Waco, Texas....

24/04/2026

L3Harris Closes $1B Investment from Department of War in Missile Solutions Business

WASHINGTON, April 23, 2026 - L3Harris Technologies (NYSE: LHX) has closed a $1 b...