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

09/10/2026

Dolby Expands Dolby OptiView Platform with New Capabilities at IBC 2026

September 10 2026, 06:00 (PDT) Dolby Expands Dolby OptiView Platform with New Capabilities at IBC 2026 New Sports Intelligence helps providers better unders...

07/10/2026

Dalet Flex LTS Delivers Smarter Media Operations from Ingest to Distribution

Dalet, a leading technology and service provider for media-rich organizations, today announced the latest Long-Term Supported (LTS) release of Dalet Flex. Build...

22/09/2026

New TVU Pocket Offers Broadcast Features In Phone-Sized Unit

Share Copy link Facebook X Linkedin Bluesky Email...

22/09/2026

Operative Launches Unified Platform for Advertising and Broadcast Management

Share Copy link Facebook X Linkedin Bluesky Email...

22/09/2026

Element Launches New TiVo-Powered Smart TVs in the U.S.

Share Copy link Facebook X Linkedin Bluesky Email...

22/09/2026

NOAA Taps Tomorrow.io for Improved U.S. Weather Forecasts

Share Copy link Facebook X Linkedin Bluesky Email...

22/09/2026

Gray Media Promotes Tim Maloney to GM and Director of Sales at WBKO

Share Copy link Facebook X Linkedin Bluesky Email...

22/09/2026

Reports: Paramount Reaches Settlement with State AGs in Antitrust Suit

Share Copy link Facebook X Linkedin Bluesky Email...

22/09/2026

New Research Lays Out Streaming Services Best Defense Against Churn

Share Copy link Facebook X Linkedin Bluesky Email...

22/09/2026

Sinclair Expands The National News Desk

Share Copy link Facebook X Linkedin Bluesky Email...

22/09/2026

Paramount Settles Antitrust Lawsuit over WBD Merger

Share Copy link Facebook X Linkedin Bluesky Email...

22/09/2026

U.S. Broadband Industry Investment Hits $92.6 Billion

Share Copy link Facebook X Linkedin Bluesky Email...

21/09/2026

Manifold Taps Ryhaan Williams for North America COO Post

Manifold Technologies, developer of software-defined, FPGA-accelerated infrastructure for live production, has named Ryhaan Williams as Chief Commercial Officer...

21/09/2026

SNS Wins IAMT Best Journal Article Award

Studio Network Solutions (SNS) has won Best Journal Article at the 2026 IAMT Impact Awards for What Video Editors Need When Everything Is Changing Around Them,...

21/09/2026

MLW Announces Streaming Deal with Tubi for Weekly FUSION Series

Major League Wrestling (MLW) has announced a streaming distribution agreement with Tubi for its weekly series MLW FUSION. Beginning September 17, new episodes w...

21/09/2026

Adam Smith Named Chairman of Direct-to-Consumer at Disney Entertainment

Disney Entertainment has announced that Adam Smith has been named Chairman, Direct-to-Consumer, with responsibility for Disney and Hulu including product, engi...

21/09/2026

United Airlines and DISH to Offer Live Football on Starlink-Enabled Seatback Screens

United Airlines and DISH have announced an agreement to bring live professional ...

21/09/2026

SES to Provide Satellite Distribution for JioStar Channels Across India

SES and JioStar have announced a multi-year agreement under which SES will provide satellite distribution services for JioStar's television channel portfoli...

21/09/2026

Detroit Red Wings Announce Detroit SportsNet Broadcast Details for 2026-27 Season

The Detroit Red Wings have announced details for their inaugural season on Detro...

21/09/2026

Manifold Technologies Appoints Ryhaan Williams as CCO for North America

Manifold Technologies has appointed Ryhaan Williams as Chief Commercial Officer for North America, effective October 1, 2026. Based in Jacksonville, Florida, Wi...

21/09/2026

DAZN Pick Up L.A. Kings DTC Streaming Rights; ABTV Will Continue as Local TV Home

Angels Broadcast Television (ABTV), the local television home of the Los Angeles...

21/09/2026

Inside ESPNs US Open Effort: Embracing the Cloud and a New 20,000 Sq. Ft. Broadcast Center

The 2026 US Open Tennis Championships marked a year of change with respect to TV...

21/09/2026

Behind The Mic: Andrs Cantor Joins Netflixs FIFA Womens World Cup Commentary Team; Doc Rivers Joins NBC Sports NBA Coverage

Behind The Mic provides a roundup of recent news regarding on-air talent, includ...

21/09/2026

iDrumTune from RT60

Drum-tuning app now available on Android RT60 describe their iDrumTune app as the world's most advanced, accurate and intelligent system for assisting ...

21/09/2026

SoundGhost release Orbit

Innovative multiband auto-panner introduced SoundGhost's latest plug-in takes an innovative approach to auto-panning, and divides incoming signals into ...

21/09/2026

Apple Mac Studio With M5 Max: First Impressions

We check out the M5 Max-equipped model The same, but different. The new Mac Studio models feature M5 Max and M5 Ultra silicon, dramatically improving the perf...

21/09/2026

From Graphic Novel to 30-Minute Animated Film: What I Learned Building an AI-Assisted Production Pipeline

From Graphic Novel to 30-Minute Animated Film: What I Learned Building an AI-Ass...

21/09/2026

Liam Hopkins Builds Recording Studio with Blackmagic Design

Liam Hopkins Builds Recording Studio with Blackmagic Design Brie Clayton September 20, 2026 0 Comments Video complements audio production with music v...

21/09/2026

Indigenous screen organisations from Canada, Aotearoa New Zealand and Australia launch new international co-production initiative

Indigenous screen organisations from Canada, Aotearoa New Zealand and Australia ...

21/09/2026

Why Deploying Physical AI at Scale Demands Safety at Every Layer

Physical AI is moving rapidly from research to large-scale deployment. By 2035, ABI Research projects an installed base of 49 million level 3-5 autonomous vehic...

21/09/2026

From Enablement to Execution, Egypt's AI Ecosystem Reaches Production Scale

Today, Egypt's AI builders gathered in the Grand Egyptian Museum for a reception that highlighted the nation's rapidly growing AI ecosystem - spanning A...

21/09/2026

NVIDIA Launches DSX Ready to Qualify Power and Cooling Products for AI Factories

Every AI factory needs power and cooling that fit its computing architecture. As AI infrastructure expands, power, cooling, water, site and grid constraints are...

21/09/2026

RT celebrates Irish Sign Language Awareness Week 2026

RT celebrates Irish Sign Language Awareness Week 2026 Special programmes across RT television, radio and online, plus special initiatives #ISL #IDSL #IWDP26...

21/09/2026

AI Security Is an Engineering Problem - How to Solve It at Every Layer of the Agent Stack

AI security is an engineering problem. That means defined security requirements,...

21/09/2026

5 Companies Using NVIDIA AI for Clean Energy

Clean energy isn't hard to come by, but the pace of large-scale adoption has historically been slow due to bottlenecks - including out-of-date infrastructur...

20/09/2026

Casio Sessions returns for 2026

Piano-playing singer-songwriter competition returns for fourth year Casio have officially revealed the list of 16 finalists who have earned their place in t...

20/09/2026

COW Jobs: Video Editor, Motion Designer - Remote, PT, 6 Months

COW Jobs: Video Editor, Motion Designer - Remote, PT, 6 Months Brie Clayton September 20, 2026 0 Comments Video Editor + Motion Designer (Remote | PT ...

19/09/2026

ART Pro Audio reveal the RPC Series

Three new rackmount power conditioners introduced Yorkville Sound have announce the upcoming launch of three new RPC rackmount power conditioners from ART P...

19/09/2026

Colorfront Elevates Workflow Versatility at IBC 2026

September 15, 2026 AMSTERDAM, SEPTEMBER 2026 - Colorfront (colorfront.com), the Academy and Emmy Award-winning developer of high-performance cinema mastering, ...

19/09/2026

Two High Profile Professional Sports Franchises Renew cre...

Two High-Profile Professional Sports Franchises Renew creative.space Contracts with DigitalGlue NFL team and Major League Soccer Club cite ease of use, secure ...

19/09/2026

Limited Edition Audio releases VoxSplit Pro for overlapping dialogue separation and cleanup on macOS

Limited Edition Audio releases VoxSplit Pro for overlapping dialogue separation ...

18/09/2026

IBC 2026 Tech Moves Beyond the Gloss and Into the Rack

IBC 2026 Tech Moves Beyond the Gloss and Into the Rack If you spent any time in the halls of the RAI this year, you noticed a clear shift in conversation. The c...

18/09/2026

SVG GameDay, Ep. 31: Seattle Mariners Tim Walsh - Creative Content in the Emerald City

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

18/09/2026

Qvest Appoints Jens Miedek as SVP Sales, Media and Entertainment

Qvest has appointed Jens Miedek as Senior Vice President Sales, Media and Entertainment. Before joining Qvest, Miedek spent 16 years at Riedel Communications an...

18/09/2026

Fonn Group Acquires everviz, Relaunches as Teikna Graphics Platform

Fonn Group has acquired full ownership of everviz, a cloud-native platform for interactive charts, maps, and data-driven graphics, and will rebrand it as Teikna...

18/09/2026

OWC Acquires OpenDrives to Expand Enterprise Storage Portfolio

Other World Computing (OWC) has announced the acquisition of OpenDrives, a provider of software-defined video and rich media storage management solutions. The a...

18/09/2026

Kaltura and Verimatrix Partner on Content Security for OTT and Cloud TV

Kaltura and Verimatrix have announced a partnership integrating Verimatrix's Digital Rights Management and security capabilities into Kaltura's Cloud TV...

18/09/2026

Movicom's Robycam Aerial Cable System Deployed at World Nomad Games

The sixth edition of the World Nomad Games combined traditional sports, large-scale cultural performances, and some decidedly modern broadcast technology. Held ...

18/09/2026

DAZN and Super League Basketball Extend Partnership for 2026-27 Season

DAZN and Super League Basketball (SLB) have extended their partnership for the 2026-27 season. Every Championship, Cup, and Play-Off fixture will be available l...