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

18/11/2025

L3Harris Unveils Sovereign Software Router for Australia

CANBERRA, Australia, Nov. 18, 2025 - L3Harris Technologies (NYSE: LHX) has launched a new, next-generation software device called NETCASTER - the NETwork Contr...

18/11/2025

L3Harris and EDGE Group to Collaborate on Defense Technology Programs in UAE

Pictured are L3Harris ISR President Jason Lambert and Waleid Al Mesmari, EDGE President-Space & Cyber Technologies, signing with Carlo Igniades, L3Harris Region...

18/11/2025

The Gauge: Mexico October 2025

During October, streaming's share of TV viewing in Mexico settled at 23.7%, a marginal shift of -0.8 share points from the previous month. Disclaimer: YUMI...

18/11/2025

Nielsen's The Gauge: NFL Viewership Underscores How Sports Are Redefining Audience Behavior

Broadcast Builds On Lead Over Cable, Driven by Football and Drama Programming Ga...

18/11/2025

Scripps Sends Mixed Messages in Response to Possible Sinclair Deal

CINCINNATI E.W. Scripps has issued a statement responding to news that Sinclair has acquired approximately 8.2% of the outstanding class A (non-voting) shares o...

18/11/2025

Tegna Shareholders Approve Nexstar Merger

TYSONS, Va. Tegna has announced that its shareholders have voted overwhelmingly to approve the proposed $6.2 billion merger with Nexstar Media....

18/11/2025

Popularity of Online Short Form Content Moving Beyond Social Media

NEW YORK Short-form vertical video has exploded across platforms like TikTok, Instagram, and YouTube, but a new survey commissioned by Media.net, a provider of ...

18/11/2025

DJI Introduces Osmo Action 6 Camera With Variable Aperture

SHENZHEN, China DJI today unveiled the Osmo Action 6, an all-in-one action camera featuring a variable aperture with a range from f/2.0 to f/4.0, the company...

18/11/2025

Veteran Production Sound Mixer Tony Johnson Captures the...

In the high-stakes world of film sound, there's no room for second chances. When an actor whispers a line with the weight of an entire scene, or lets loose ...

18/11/2025

Sonnet Announces Black Friday Sale on Select Products

Sonnet Technologies is having a sale on a selection of popular products, including a Thunderbolt 4 dock, an eGPU chassis, SATA and M.2 SSD PCIe cards, and mor...

18/11/2025

4Fangs Launches Horror and Suspense FAST Channel on Amagi...

Amagi, a cloud-based SaaS technology solutions provider for broadcast and streaming TV, today announced the launch of 4Fangs, a new Free Ad-Supported Streaming ...

18/11/2025

WIM 8th Annual Holiday Toast to Honor Mandy Walker ASC AM...

Women In Media (WiM) announces its honorees for the 2025 Holiday Toast. The annual celebration recognizes legendary creatives whose work uplifts and inspires th...

18/11/2025

Unforgettable Cinematography of Adam Newport-Berra with Z...

Cinematographer Adam Newport-Berra ( Good Fortune , The Bear , Euphoria ) emerged from the 2025 Emmy season with a statuette celebrating his Outstanding Cinem...

18/11/2025

Thomas Secures - Friends and Lovers - Moving Lights Usin...

Atlanta-based gaffer and lighting programmer Quinton Thomas brings the same practical, problem-solving instinct of a board op to every set he walks onto. With a...

18/11/2025

Suitelife Systems Appoints Veterans Charles Sotto and Reb...

Suitelife Systems, a division of NFB Consulting Group, headquartered in California, has announced the appointments of Charles Sotto as Director of Media Technol...

18/11/2025

Scott Kramer Turns to NUGEN Audio to Bridge Creativity an...

Sound Director and Audio Product Manager Scott Kramer has built a career around shaping stories through audio, guiding projects across film, television and stre...

18/11/2025

iWedia Strengthens Long-Term Operator Partnerships and Cu...

iWedia, a global leader in software solutions for connected TV devices, announces its participation at the APAC TV Summit 2025, taking place November 18 20 in B...

18/11/2025

MRMC Introduces Flair Bridge - Simplifying Robot Control...

Mark Roberts Motion Control (MRMC) is proud to announce the launch of Flair Bridge, a groundbreaking solution that redefines how operators control MRMC's in...

18/11/2025

LiveU Delivers a Solid Connection to Groovy Gecko for Dra...

Over the summer, world famous musician and rapper Drake continued the rollout of his new album Iceman, by live streaming the second and third episodes of a seri...

18/11/2025

Oregon Municipal Channel Upgrades Visuals With Telycam PTZs

KEIZER, Ore. Municipal broadcaster Keizer City Television, K23 TV, has deployed four Telycam PTZ cameras to upgrade the visual quality of its live meeting cover...

18/11/2025

Peacock to Stream EA Sports Madden NFL Cast on Thanksgiving

STAMFORD, Conn. NBC Sports and Peacock have announced that they are working for the second consecutive year with the National Football League, EA Sports and Gen...

18/11/2025

Research: Netflix Boosts Viewing With Familiar Kids Franchises

LONDON A new Ampere Analysis study finds that familiar franchises are successfully driving kids' TV consumption on Netflix and that the streamers big bet on...

18/11/2025

Content Discovery Still a Challenge for Streamers: Hub Study

PORTSMOUTH, N.H. TV viewers continue to find it challenging to find relevant programs in the fragmented universe of streaming content, according to new findings...

18/11/2025

20 Bob Dylan Songs That Reflect a Legacy of A-Changin

20 Bob Dylan Songs That Reflect a Legacy of A-Changin On the heels of Bob Dylan receiving a Berklee honorary doctorate, we take stock of one of the most singu...

18/11/2025

Microsoft, NVIDIA and Anthropic Announce Strategic Partnerships

Today, Microsoft, NVIDIA and Anthropic announced new strategic partnerships. Anthropic is scaling its rapidly growing Claude AI model on Microsoft Azure, powere...

18/11/2025

Delivering AI-Ready Enterprise Data With GPU-Accelerated AI Storage

AI agents have the potential to become indispensable tools for automating complex tasks. But bringing agents to production remains challenging. According to Ga...

18/11/2025

The unbelievable story of DJ Carey from hurling hero to convicted fraudster charted in new RT documentary series

DJ Carey: The Dodger starts Monday 24th November at 9.35pm on RT One and RT Pl...

17/11/2025

EA SPORTS Madden NFL Cast to Return Thanksgiving Night With Immersive, Data-Driven Broadcast on Peacock

EA SPORTS Madden NFL Cast to Return Thanksgiving Night With Immersive, Data-Driv...

17/11/2025

Behind the Broadcast Booth: Impact Ventures' Greer Christian on Building Her Career Around Passion

Behind the Broadcast Booth: Impact Ventures' Greer Christian on Building Her...

17/11/2025

SVG Sit-Down: Sportradar's Brian Josephs Talks Peacock's Powerful Performance View - and Just Telling Better Sports Stories

SVG Sit-Down: Sportradar's Brian Josephs Talks Peacock's Powerful Perfor...

17/11/2025

2025 Sports Broadcasting Hall of Fame: Greg Gumbel, Iconic Voice and Comforting Presence

2025 Sports Broadcasting Hall of Fame: Greg Gumbel, Iconic Voice and Comforting ...

17/11/2025

ESPN, Pixar, the NFL, and Beyond Sports Team Up for ESPN's Dec. 8 Monsters, Inc.' MNF' Altcast Effort

ESPN, Pixar, the NFL, and Beyond Sports Team Up for ESPN's Dec. 8 Monsters,...

17/11/2025

SVG Sit-Down: EA SPORTS' Evan Dexter on How the EA SPORTS Madden NFL Cast' Blends Gaming and Live NFL Production

SVG Sit-Down: EA SPORTS' Evan Dexter on How the EA SPORTS Madden NFL Cast&#...

17/11/2025

Cast your votes and sail into 2026 with the return of SBS's the Chillest 100

Cast your votes and sail into 2026 with the return of SBS's the Chillest 100 17 November, 2025 Media releases Voting is now open for Australia's ul...

17/11/2025

Building a unified, secure localisation operating model with Blue Lucy

When VSI Group, one of the world's leading localisation providers, set out to modernise its complex, multi-site operations built through years of acquisitio...

17/11/2025

Sinclair Acquires 8% Stake in E.W. Scripps

Dealmaking for broadcast stations continues to heat up, with Sinclair reporting it has built up a 8.2% stake in E.W. Scripps and has been talking with Scripps f...

17/11/2025

ITU: 6 Billion Now Online Globally

The worlds online population grew by more than 240 million people in 2025, according to Facts and Figures 2025 released today by the International Telecommunica...

17/11/2025

ASB GlassFloor Launches an Elite Training Facility in Par...

ASB GlassFloor, the leading provider in LED sports flooring, today announced the opening of Athletes Lab 2.0, a premier athletic training facility designed to e...

17/11/2025

SmallHD Unlocks Camera Control for Canon

SmallHD today announced the release of its popular Camera Control for Canon cinema cameras. This new integration enables filmmakers to adjust critical camera se...

17/11/2025

Matthews Helps Samuel and Sons Bring Luxury Trim to Life...

Luxury is in the details, and no one captures that better than the creative team at Samuel & Sons. As the visionaries behind iconic photography and advertising ...

17/11/2025

One Giant Leap for AI Physics: NVIDIA Apollo Unveiled as Open Model Family for Scientific Simulation

NVIDIA Apollo - a family of open models for accelerating industrial and computat...

17/11/2025

NVIDIA Accelerated Computing Enables Scientific Breakthroughs for Materials Discovery

To power future technologies including liquid-cooled data centers, high-resoluti...

17/11/2025

Accelerated Computing, Networking Drive Supercomputing in Age of AI

At SC25, NVIDIA unveiled advances across NVIDIA BlueField DPUs, next-generation networking, quantum computing, national research, AI physics and more - as accel...

17/11/2025

NVIDIA Accelerates AI for Over 80 New Science Systems Worldwide

Across quantum physics, digital biology and climate research, the world's researchers are harnessing a universal scientific instrument to chart new frontier...

17/11/2025

The Great Flip: How Accelerated Computing Redefined Scientific Systems - and What Comes Next

It used to be that computing power trickled down from hulking supercomputers to ...

17/11/2025

VEON Commences USD 100 million Buyback Program

17 Nov 2025 VEON Commences USD 100 million Buyback Program Dubai, November 17, 2025: VEON Ltd. (Nasdaq: VEON), a global digital operator ( VEON or the Compan...

17/11/2025

Sky brings top comedy talent to screens with new stand-up specials

Monday 17 November 2025 Sky brings top comedy talent to screens with new stand-up specials Sky and streaming service NOW are bringing audiences a fresh dose o...

16/11/2025

Viper Shield Advances Production for Global F-16 Fleet

L3Harris to deliver advanced electronic warfare systems quickly for worldwide F-16 programs...

16/11/2025

Symphony MKII TB2 to TB3 Self Install Guide

Upgrading your Apogee Symphony MKII from TB2 to TB3: Need to Knows Upgrading your Apogee interface to Thunderbolt 3 isn't difficult - but it's not a cas...