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

20/11/2025

MLB Media-Rights Shakeup: NBC's New Three-Year Deal Covers Sunday Night Baseball,' Peacock-Exclusive Games, and More

MLB Media-Rights Shakeup: NBC's New Three-Year Deal Covers Sunday Night Bas...

20/11/2025

MLB Media-Rights Shakeup: New Deal Will Bring 30 National Games to ESPN's Linear Platform, MLB.TV Exclusively to ESPN App

MLB Media-Rights Shakeup: New Deal Will Bring 30 National Games to ESPN's Li...

20/11/2025

MLB Media-Rights Shakeup: Netflix Lands Opening Night, Home Run Derby, Field of Dreams

MLB Media-Rights Shakeup: Netflix Lands Opening Night, Home Run Derby, Field of ...

20/11/2025

MLB Media-Rights Shakeup Overview: ESPN, NBCU, Netflix Ink Three-Year Deals

MLB Media-Rights Shakeup Overview: ESPN, NBCU, Netflix Ink Three-Year DealsESPN gets new 30-game package, MLB.TV; NBC extends Sunday nights; Netflix adds tentpo...

20/11/2025

SVG Students To Watch: Henry Thuss, Indiana University

SVG Students To Watch: Henry Thuss, Indiana UniversityThe Southern California product has his goals set on the front benchBy Brandon Costa, Director of Digital ...

20/11/2025

Done+Dusted's Guy Carrington on Creating the Spectacular League of Legends World Championship Opening Ceremony

Done+Dusted's Guy Carrington on Creating the Spectacular League of Legends W...

20/11/2025

FIA Extreme H World Cup Host Broadcaster Aurora Goes Inside the Production of the Hydrogen-Fuelled Motorsport

FIA Extreme H World Cup Host Broadcaster Aurora Goes Inside the Production of th...

20/11/2025

Platinum White Paper: Amagi Utilizes Cloud Production for Sports Events - Multi-Camera Live Workflow with Remote Commentary and Graphics

Platinum White Paper: Amagi Utilizes Cloud Production for Sports Events - Multi-...

20/11/2025

2025 Sports Broadcasting Hall of Fame: Marc Herklotz, Steady Hand Behind the Scenes

2025 Sports Broadcasting Hall of Fame: Marc Herklotz, Steady Hand Behind the Sce...

20/11/2025

NFL Deep Dive: How 32 Cameras at Each Stadium Drive Virtual Measurement, Boundary Replays, and Skeletal Tracking

NFL Deep Dive: How 32 Cameras at Each Stadium Drive Virtual Measurement, Boundar...

20/11/2025

Zodiac Killer Project Refuses to Kill Its Darlings With an Avant-Garde Essay Film

Charlie Shackleton attends the 2025 Sundance Film Festival premiere of Zodiac K...

20/11/2025

5 Ways to Get More out of Your Playlists on Spotify

Your playlists are personal. They're the soundtracks to your road trips, your quiet mornings, and your biggest celebrations; collections of memories and dis...

20/11/2025

Spotify, Trk mziinin efsanelerine sayg duruu niteliindeki ICON Trkiye'yi duyurdu

Spotify, uzun s redir zerine al t T rk m zik k lt r n n ikon haline gelmi ...

20/11/2025

Spotify and The Hollywood Reporter' Partner on the First-Ever Podcaster Roundtable

For the first time, Spotify has teamed up with The Hollywood Reporter to cohost ...

20/11/2025

Spotify and the ARIA Awards Mark a New Era for Australian Music

This year's ARIA Awards marked a turning point for Australian music, and Spotify was right at the heart of it. For the first time in the awards' nearly ...

20/11/2025

Cracking the Code for Resilient, Secure Space-based Communications

L3Harris has achieved NSA Cybersecurity Directorate certification for its KSV-650 space hub end cryptographic unit, ensuring secure, adaptable communications fo...

20/11/2025

Continued Commitment and Investment in Poland

L3Harris is strengthening its long-term partnership with Poland through the opening of a new facility in Warsaw to serve as a central business hub for regional ...

20/11/2025

Cinegy wins the Swedish Hockey League

15 March 2012 SHARE Facebook Twitter Linkedin Email Cinegy and Vericom are pleased to announce the recent deployment of Cinegy Archive for production and as...

20/11/2025

2012

6 September 2012 SHARE Facebook Twitter Linkedin Email FIC Turkey supplies media content to Pay TV under Fox TV Channel brands in Turkey. At the start of s...

20/11/2025

VIVA Indonesia broadcasting the World Cup Brazil 2014 with Cinegy

25 June 2014 SHARE Facebook Twitter Linkedin Email Last month VIVA finalized its Cinegy installation in order to produce and broadcast the World Cup Brazil ...

20/11/2025

2014

1 October 2014 SHARE Facebook Twitter Linkedin Email With 5 locations spread out around Baden-W rttemberg, Schw bisch Media required a scalable end to end s...

20/11/2025

Strictly Come Dancing Goes with a Cinegy Workflow

27 April 2015 SHARE Facebook Twitter Linkedin Email Cinegy, which develops and produces media asset management products that are used in flagship production...

20/11/2025

Cinegy announces new Latin America partnership

12 August 2015 SHARE Facebook Twitter Linkedin Email Munich, Germany, 26 October 2015 - Cinegy, which develops and produces software technology for digital ...

20/11/2025

2015

5 November 2015 SHARE Facebook Twitter Linkedin Email Munich, Germany 3 November 2015 - Cinegy, which develops and produces software technology for digital ...

20/11/2025

Cinegy launches Cinegy Open' initiative

12 February 2016 SHARE Facebook Twitter Linkedin Email Munich, Germany 9 February 2016 - Cinegy, which develops and produces software technology for digital...

20/11/2025

2016

22 June 2016 SHARE Facebook Twitter Linkedin Email Munich, Germany 21 June 2016 - Cinegy today announced that ABS BROADCAST, one of the largest independentl...

20/11/2025

Cinegy News - nominee of NewBay Media Awards 2016

10 January 2017 SHARE Facebook Twitter Linkedin Email Find us on page 12 of the Program Guide 2016 Tags NewBay Media Awards , Program Guide 2016 , broadc...

20/11/2025

Freeview Thailand deploys Cinegy Air PRO Bundles for multi-channel playout

15 March 2017 SHARE Facebook Twitter Linkedin Email Munich, Germany 15 March 2017 - Cinegy today announced that Thailand's Next Step direct-to-home Free...

20/11/2025

2017

12 December 2017 SHARE Facebook Twitter Linkedin Email Munich, Germany 13 December 2017 - Cinegy today announced that it is making its Cinegy Air Cloud Pack...

20/11/2025

2018

25 June 2018 SHARE Facebook Twitter Linkedin Email Munich 25th June 2018 - Cinegy today announced that Canada-based Accessible Media Inc. (AMI) has implemen...

20/11/2025

2019

27 May 2019 SHARE Facebook Twitter Linkedin Email The best quality live video from the worst networks - Haivision Although DVB and the World Wide Web are...

20/11/2025

2020

24 November 2020 SHARE Facebook Twitter Linkedin Email ATV Expand and Increase their Playout and Editing Capabilities using Cinegy Software Munich, Germany...

20/11/2025

Cinegy further commits to Eastern European market with new appointment

1 September 2021 SHARE Facebook Twitter Linkedin Email Munich, Germany, 1st September 2021: Cinegy GmbH, the premier provider of software technology for di...

20/11/2025

2021

20 September 2021 SHARE Facebook Twitter Linkedin Email ElectronicVerve continues a strong history of supporting Cinegy customers in India Munich, Germany,...

20/11/2025

2022

1 November 2022 SHARE Facebook Twitter Linkedin Email Munich, Germany, 01 November 2022: Cinegy, a premier provider of software technology for digital video...

20/11/2025

Britt Broadcast implements Cinegy Air PRO at TBC (Tanzanian Broadcasting Corporation]

31 October 2023 SHARE Facebook Twitter Linkedin Email Britt Broadcast at TBC...

20/11/2025

Oklahoma Community Television Overcomes ATSC 3.0 Translator Challenge

CINCINNATI Oklahoma Community Television (OCT) has selected GatesAir and Triveni Digital as key technology partners in an ATSC 3.0 deployment that establishes a...

20/11/2025

FCC Launches Wide-Ranging Examination of Network Affiliate Relations

WASHINGTON The Federal Communications Commission has opened a wide-ranging inquiry into the relations between broadcast networks and their affiliates that could...

20/11/2025

IAB: Creator Economy Ad Spend Now Dwarfs Ad Spend for Total Media Industry

NEW YORK Ad spend in the creator economy has more than doubled since 2021 from $13.9B to $29.5B in 2024 and that amount is projected to reach $37 billion in 202...

20/11/2025

Graduate Spotlight: Krysta Mirsik DePuy

Graduate Spotlight: Krysta Mirsik DePuy The educator from Hackettstown, New Jersey, shares how it took her 11 years to find the right graduate program for her...

20/11/2025

Rise Awards 2025 Celebrate the Industry's Best

LONDON The winners of the Rise Awards 2025, which recognize women and companies whose achievements have stood out in the media technology industry, have been an...

20/11/2025

Lionsgate, Debmar-Mercury Launch MovieSphere Gold Diginet

SANTA MONICA & NEW YORK Lionsgate's Worldwide Television Distribution Group and Debmar-Mercury have launched MovieSphere Gold in more than 30 million homes....

20/11/2025

Clear-Com Unveils New 4-Channel HelixNet Beltpack

ALAMEDA, Calif. Clear-Com has introduced its four-channel HelixNet beltpack, a next-generation advancement of its widely used two-channel model, and anticipates...

20/11/2025

Kiswe Core Aims to Simplify Cloud-Based Streaming Distribution

NEW PROVIDENCE, N.J. Streaming technology and services provider Kiswe has launched Kiswe Core, a next-generation cloud-based platform designed to simplify the s...

20/11/2025

Dolby Partners Up With Bay Area Super Bowl Host Committee

MOUNTAIN VIEW, Calif. Dolby Laboratories has signed on as an official signature partner of the Bay Area Host Committee (BAHC) for the 2026 Super Bowl and the we...

20/11/2025

Telus TV+ Expands Distribution to Samsung and LG Smart TVs

STUTTGART, Germany 3 Screen Solutions (3SS) has announced that the Canadian multiservice operator Telus has launched its Telus TV+ entertainment platform on Sam...

20/11/2025

MLB Strikes Rights Deals With ESPN, NBCUniversal, Netflix

Major League Baseball has announced deals with ESPN, NBCUniversal and Netflix covering 2026-2028 that make ESPN the exclusive distributor for MLB.TV, put regula...

20/11/2025

Berklee Presents Holiday Extravaganza: Duke Ellingtons The Nutcracker Suite and GenNext All-Stars' Noel

Berklee Presents Holiday Extravaganza: Duke Ellingtons The Nutcracker Suite and ...

20/11/2025

Space42 and EDGE Group Announce Strategic SATCOM Manufacturing Alliance at Dubai Airshow 2025

Dubai, United Arab Emirates [November 20, 2025] Space42 (ADX: SPACE42), the ...