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

02/06/2026

Case Study: Tennis Channel Transitions From Satellite to IP Distribution With LTN

Tennis Channel has completed a transition from satellite-based distribution to a...

02/06/2026

Daktronics Announces 2026 High School Video Summit for June 23-24

Daktronics has announced the 2026 High School Video Summit, a two-day educational event for high school educators and student production teams, taking place Jun...

02/06/2026

Fandango to Screen Telemundos FIFA World Cup 2026 Coverage at 160 Theaters Nationwide

Fandango will bring Telemundo's live Spanish-language coverage of the FIFA W...

02/06/2026

AWSN Announces Broadcast Schedule for Inaugural Professional Softball League Season

All Women's Sports Network (AWSN) has announced the live television schedule...

02/06/2026

Spalk Announces Partnerships with Ligue 1, Euroleague, and LNB

Spalk, a cloud-based multilingual commentary and production platform, has announced three new partnerships: Ligue 1 (English and Portuguese highlights), Eurolea...

02/06/2026

NHL Network Announces Stanley Cup Final Programming Schedule

NHL Network's 2026 Stanley Cup Final coverage began June 1 with NHL Tonight: Stanley Cup Final Media Day from the Carolina Hurricanes' Lenovo Center at ...

02/06/2026

Matrox Video Launches Maevex MGX Series IPMX-Ready AV-over-IP Encoders and Decoders

Matrox Video has announced the Maevex MGX Series, a lineup of IPMX-ready video e...

02/06/2026

Marshall Electronics to Exhibit IP Camera Lineup at InfoComm 2026

Marshall Electronics will exhibit at InfoComm 2026 (Booth C7521), showcasing a lineup of 4K and HD compact POV cameras for corporate, education, hospitality, wo...

02/06/2026

PAMA and Shure Extend Deadline for Mark Brunner Professional Audio Scholarship to June 15

The Professional Audio Manufacturers Alliance (PAMA) and Shure Incorporated have...

02/06/2026

MultiDyne To Debut FiberSaver-10G and New VersaBrix Frame Options at InfoComm 2026

MultiDyne Video and Fiber Optic Systems will exhibit at InfoComm 2026 (Booth C50...

02/06/2026

Advanced Systems Group Promotes Joe Marchitto to Western Regional CTO

Advanced Systems Group (ASG) has announced the promotion of Joe Marchitto to Western Regional CTO. In his new role, Marchitto will oversee system design across ...

02/06/2026

Brothers Osborne To Perform Free Concert Outside Lenovo Center Before Stanley Cup Final Game 1

The NHL has announced that Brothers Osborne will headline a free outdoor concert...

02/06/2026

CP Communications Names First Female Executives in Company History

CP Communications has announced the appointment of its first two female executives in the company's 40-year history. Tabitha Coleman has been named Vice Pre...

02/06/2026

Lighting Design Group Designs Broadcast Studio for Yahoo at 770 Broadway

The Lighting Design Group (LDG) has announced the completion of Studio C at Yahoo's headquarters at 770 Broadway in Manhattan. The studio launched April 24 ...

02/06/2026

Zee Entertainment Acquires FIFA Media Rights for India Through 2034

Zee Entertainment Enterprises Ltd. (Z) has announced a partnership with FIFA to broadcast FIFA World Cup 2026, FIFA World Cup 2030, FIFA Women's World Cup 2...

02/06/2026

Behind The Mic: Prime Sports UK Shares On Air Roster for NBA Finals; and More

Behind The Mic provides a roundup of recent news regarding on-air talent, including new deals, departures, and assignments compiled from press releases and repo...

02/06/2026

Auburn Universitys Parker Leppien on the Nonstop Growth of War Eagle Productions

The department is broadcasting NCAA Baseball Super Regionals at Plainsman Park this weekend Broadcast and production crews at Division I institutions are busy ...

02/06/2026

With Stanley Cup Final Set To Begin, NHL and Honeywell Lay Foundation for Energy-Efficient Venues

The initiative is extends beyond the league's arenas to team training rinks,...

02/06/2026

Release Rundown: What to Watch in June, From Leviticus to The Invite

Olivia Wilde, Seth Rogen, Pen lope Cruz, and Edward Norton appear in The Invite by Olivia Wilde, an official selection of the 2026 Sundance Film Festival. (Co...

02/06/2026

Scaler Music launch Carbon Electra 2

Musically intelligent soft synth gets upgraded Scaler Music will be probably be best known to many for their music theory tools, but their product range al...

02/06/2026

Klevgrand introduce Altitude

Powerful new vocal-production tool announced Described as a vocal performance station , Klevgrand's latest plug-in combines pitch-correction with harmo...

02/06/2026

McDSP introduce DC-2 Dual Compressor for APB

Launched alongside Go Green sale extension McDSP have just released the latest addition to their APB line-up, DC-2 Dual Compressor, and have also announced ...

02/06/2026

Ableton announce Extensions SDK

Create custom tools for Ableton Live 12 Suite Ableton have just introduced a new open JavaScript toolkit that allows anyone to create their own custom tools...

02/06/2026

Eventide unveil the H9 Harmonizer Gen 2

Now features full H90 algorithm library Eventide have announced the upcoming launch of the H9 Harmonizer Gen 2, a new and improved version of their hugely p...

02/06/2026

Universal Audio release UAD Topline Vocal Tune

Plus UAD Half Yearly Sale now live The latest arrival to the Universal Audio range delivers a new native pitch-correction plug-in that's capable of deli...

02/06/2026

BTL Laboratory becomes Taiwan's first test house with a CTIA Certification compliant OTA test system by Rohde & Schwarz

BTL Laboratory becomes Taiwan's first test house with a CTIA Certification c...

02/06/2026

Cobalt Digital to Showcase End-to-End IPMX Ecosystem at InfoComm 2026, Making ST 2110 Easy for Pro AV

blueCORE standalone processors headline solutions designed to simplify the trans...

02/06/2026

Monetizing the Archive: How Cantemo's JIT Playback Eliminates the Proxy Bottleneck

If you've kept up with this article series, you know by now where to start w...

02/06/2026

Calrec Scales ImPulseV for Greater Choice in Virtualised Workflows

With new DSP configurations and flexible licensing options, Calrec is removing the barriers to virtualised audio, giving broadcasters the freedom to scale produ...

02/06/2026

Marketing Architects Expands Relationship With Nielsen To Include Integration of Media Data Engine on a National Level

The TV agency was one of the earliest adopters of Nielsen's local television...

02/06/2026

Riedel Networks Taps Gudrun Scharler as CEO

Share Copy link Facebook X Linkedin Bluesky Email...

02/06/2026

Grass Valley Enables Sky News Australia s Cloud-First New...

Grass Valley today announced that Australian News Channel (ANC), operator of Sky News Australia, has deployed Grass Valley AMPP to transform its newsroom produc...

02/06/2026

STUDIO TECHNOLOGIES INTRODUCES NEW MODEL 385 MIC INTERCOM...

Studio Technologies, a leading manufacturer of high-quality audio, video, and fiber-optic solutions, announces its new Model 385 Mic/Intercom Beltpack. The Mode...

02/06/2026

Gudrun Scharler Appointed CEO of Riedel Networks

The Riedel Group today announced the appointment of Gudrun Scharler as CEO of Riedel Networks. She succeeds Michael Martens, who has led Riedel Networks since 2...

02/06/2026

Magewell Levels-Up All-in-One Content Production with Lau...

More signals, higher quality, and outstanding ingest and streaming flexibility deliver professional results in a small, all-in-one footprint...

02/06/2026

Modena Showcases farmerswife at Mediatech 2026

farmerswife will be featured on the Modena Media & Entertainment stand at this year's Mediatech Africa 2026, giving visitors an opportunity to explore the l...

02/06/2026

PTZOptics showcases intelligent video ecosystem at InfoCo...

PTZOptics will showcase a new generation of intelligent video workflows at InfoComm 2026, June 17 19, Las Vegas. Visitors to booth N8227 will see how PTZOptics ...

02/06/2026

Roku Launches the Roku Soccer Zone

Share Copy link Facebook X Linkedin Bluesky Email...

02/06/2026

FCC Sets Deadlines for Comments in ABC License Renewals

Share Copy link Facebook X Linkedin Bluesky Email...

02/06/2026

Studio Technologies Introduces Model 385 Beltpack

Share Copy link Facebook X Linkedin Bluesky Email...

02/06/2026

Gerald Jerry Pierce, Architect of Modern Digital Cinema, Dies at 73

Share Copy link Facebook X Linkedin Bluesky Email...

02/06/2026

VEON Closes USD 1.4 Billion Bond Offering, Refinancing 2027 Notes Ahead of Schedule

02 Jun 2026 VEON Closes USD 1.4 Billion Bond Offering, Refinancing 2027 Notes A...

02/06/2026

The Marlow Murder Club returns for a fourth series on U

Praise for series three: The Times - sun-dappled pleasure The Daily Mail - The Homes Counties' Charlie's Angels The Sun - 4* this [is an] enjoya...

02/06/2026

Gudrun Scharler Appointed CEO of Riedel Networks

Wuppertal June 2, 2026 Gudrun Scharler Appointed CEO of Riedel Networks The Riedel Group today announced the appointment of Gudrun Scharler as CEO of Riedel N...

02/06/2026

Discover Your Next Book-to-Screen Obsession With Our New Dedicated Hub

Back to All News Discover Your Next Book-to-Screen Obsession With Our New Dedicated Hub Product 02 June 2026 Global Link copied to clipboard Dear most vor...

02/06/2026

New LinkedIn Data: 90% of C-Suite Leaders are Continuously ...

New LinkedIn Data: 90% of C-Suite Leaders are Continuously Building Skills to Lead in the AI Era Published on Jun 2, 2026 Categories: Data and insights Lin...