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

01/12/2026

William Kamau wins Young Journalist Award 2026

William Kamau, a journalist with the investigative media house Africa Uncensored in Nairobi, has been named Thomson Foundation Young Journalist of the Year 2026...

01/12/2026

Gravity Media Acquires MOOV to Expand Broadcast Graphics and Virtual Production Capabilities

Gravity Media has acquired MOOV, a UK broadcast graphics and virtual production ...

01/12/2026

PanMetro and Alliance Broadband Launch IPTV and Hybrid TV Platform with Ateme and CAASTV

Ateme and CAASTV have announced that PanMetro (Pan Metro Convergence) and Allian...

01/12/2026

CP Communications Supports Live With Kelly & Mark in Clearwater Beach

CP Communications provided broadcast engineering and production support for Live With Kelly & Mark in Clearwater Beach, FL, Nov. 16-17. A 10-person crew led by...

01/12/2026

Riedel DIVA+ Connects Linzer Klangwolke with Easy5G

Riedel Communications supported the Klangwolke festival in Linz with a DIVA+ infrastructure. On behalf of Linzer Veranstaltungsgesellschaft (LIVA), Riedel Manag...

01/12/2026

TF1 Partners with Ateme to Power TF1+ Across Screens

TF1, France's private broadcaster, has chosen Ateme as its technology partner for TF1 . Ateme supports the service on TF1's own apps, connected TVs, ope...

01/12/2026

AIMS Announces Winter 2027 IPMX Product Testing and Certification Event

The Alliance for IP Media Solutions (AIMS), together with the Video Services Forum (VSF) and the European Broadcasting Union (EBU), has announced the next IPMX ...

01/12/2026

Clark Wire & Cable Develops Custom Cable for Broadcast Infrastructure at New Highmark Stadium

Clark Wire & Cable supplied broadcast infrastructure cable, panels and SMPTE com...

01/12/2026

2026 Sports Broadcasting Hall of Fame: Bucky Gunts, Treasured Director, Mentor, and Olympics Storyteller

Over the past three decades, no sports entity has set a higher bar for storytell...

01/12/2026

SVG Sit-Down: MASV's Gene Villeneuve on How Gameday Speeds Transfer of Media From Away Venues to Home Base

Sports media has become one of the few reliable growth areas in an otherwise slu...

01/12/2026

ESPN Details Massive Santa Monica Beach Studio Operation for Super Bowl LXI

Studio 61 will feature four production sets, more than 30 cameras, aerial systems, AR, and nearly 100 hours of live programming during Super Bowl week...

01/12/2026

ESPN, NFL Films, Anamorph Build Super Bowl Generations,' an Interactive Super Bowl Archive Experience for ESPN Beach

On-site activation will use touchscreen inputs and Anamorph technology to assemb...

01/12/2026

ESPN Deportes Unveils Super Bowl LXI Commentary Team, with Rebeca Landa Set To Make History

ESPN Deportes has announced its commentary team for Super Bowl LXI: Rebeca Landa...

01/12/2026

ESPN Announces First-Ever In-Game Super Bowl Ad and Fan Casting Call, Unveils Were Going' Finale

With Super Bowl LXI 75 days away, ESPN and The Walt Disney Company have announce...

01/12/2026

The House of the Mouse: ESPN Adds 10 Hours of Live Programming From Disneyland

ESPN and ABC will punctuate ESPN's Year of the Super Bowl with 10 hours of live programming from Disneyland Resort in Anaheim, CA, on Monday, Feb. 15, mere ...

01/12/2026

ESPN Unveils 24-Hour Super Bowl LXI Pregame Operation Across Santa Monica, SoFi Stadium

Five-hour Super Bowl LXI Countdown, multiple studio locations, Disney+ simulcast...

01/12/2026

ESPN Honors Legacy of NFL Primetime With Upcoming Rumblin', Bumblin', Stumblin Documentary

As ESPN prepares for its historic first Super Bowl presentation, the network wil...

01/12/2026

ESPN Adds Streaming-Only Red Carpet Show to Super Bowl LXI Pregame Lineup

Disney+, Hulu, and ESPN App will carry Live From Super Bowl LXI Red Carpet from the NFL VIP Tailgate at SoFi Stadium...

01/12/2026

The State of AI in Sports Broadcast': 88 Projects in Live Production Fit Into Eight Categories

To help determine where the industry stands, SVG AI Innovation Lab analyzed and ...

01/12/2026

ESPN, Omaha Productions Revive The All-Madden Team' for Super Bowl LXI Week

Peyton Manning and Rich Eisen will host the hour-long ESPN Original, produced with NFL Films and The Montag Group...

01/12/2026

ESPN Lays Out Super Bowl Plans; ESPN Beach Studios, 200+Cameras Set to Dazzle

By Jason Dachman and Ken Kerschbaumer ESPN today took some additional wraps off of its Super Bowl LXI plans, including more details about ESPN Beach will prese...

01/12/2026

StageBox 2 arrives

Audio inputs, backing playback, PDF support & more In the April 2026 issue, we ran a review on StageBox, a handy macOS and Windows application designed to h...

01/12/2026

Universal Audio release Paradise Guitar Studio 2

Three new high-gain amps added Universal Audio's all-in-one amp and effects modelling software has just been treated to a major update that introduces t...

01/12/2026

Telepathic Instruments launch Orchid V

Innovative instrument gains virtual counterpart Telepathic Instruments have just released a new plug-in that recreates their innovative Orchid instrument, a...

01/12/2026

Waves introduce Rogue Modules

Vintage-inspired effects suite revealed Waves latest release brings together a set of creative effects plug-ins that promise to capture the sound and charac...

01/12/2026

Rohde & Schwarz and Zurich Instruments back the London Quantum Cluster to support quantum technology development

Rohde & Schwarz and Zurich Instruments back the London Quantum Cluster to suppor...

01/12/2026

Weekly Live Sports Viewership Summary

Nielsen has released its Top 25 Live Sports Events Telecasts ranker for the week of November 16 - November 22. The list highlights a dynamic week in sports broa...

01/12/2026

BBC Weather Modernizes Production Sites for New Met Office Data

Share {alert(Link copied)}).catch(err => {console.error(Failed to copy: , err)}) data-platform=copy_link data-action= class=font-ui-heading py-2 text-sm tex...

01/12/2026

Jeremy Broggi Becomes FCC General Counsel

Share {alert(Link copied)}).catch(err => {console.error(Failed to copy: , err)}) data-platform=copy_link data-action= class=font-ui-heading py-2 text-sm tex...

01/12/2026

NAB Show Introduces Marketplace Pass

Share {alert(Link copied)}).catch(err => {console.error(Failed to copy: , err)}) data-platform=copy_link data-action= class=font-ui-heading py-2 text-sm tex...

01/12/2026

On Giving Tuesday, Support Broadcasters in Need

Share {alert(Link copied)}).catch(err => {console.error(Failed to copy: , err)}) data-platform=copy_link data-action= class=font-ui-heading py-2 text-sm tex...

01/12/2026

NESN Taps Ron Wechsler as Chief Content Officer

Share {alert(Link copied)}).catch(err => {console.error(Failed to copy: , err)}) data-platform=copy_link data-action= class=font-ui-heading py-2 text-sm tex...

01/12/2026

Appear X20 Passes DTV+ POC Test With Brazil's TV Globo

Share {alert(Link copied)}).catch(err => {console.error(Failed to copy: , err)}) data-platform=copy_link data-action= class=font-ui-heading py-2 text-sm tex...

01/12/2026

Mediagenix Names Otto Larsen Chief Revenue Officer

Share {alert(Link copied)}).catch(err => {console.error(Failed to copy: , err)}) data-platform=copy_link data-action= class=font-ui-heading py-2 text-sm tex...

01/12/2026

Hornets Tech announces reseller partnership with Framecas...

Framecastics encoding, decoding and IP streaming solutions now available through Hornets Tech, with specialist engineering support...

01/12/2026

Mediagenix Appoints Otto Larsen as Chief Revenue Officer

Brussels, Belgium December 1, 2026 Mediagenix, a global leader in smart content solutions to profitably connect the right content to the right audience, tod...

01/12/2026

Hollywood Editor Develops Free VFX Screen Tracking App

Hollywood Editor Develops Free VFX Screen Tracking App Christopher W. Hill December 1, 2026 0 Comments I've been working in Hollywood as an editor...

01/12/2026

Clear Life Media Creates Youth Sports Streaming with Blackmagic Design

Clear Life Media Creates Youth Sports Streaming with Blackmagic Design Brie Clayton December 1, 2026 0 Comments Company creates profitable live multic...

01/12/2026

Unreal Engine & Blender Inside After Effects? Shot Link Plugin Review

Unreal Engine & Blender Inside After Effects? Shot Link Plugin Review Graham Quince December 1, 2026 0 Comments I found a plugin which lets you bring ...

01/12/2026

Coalition Asks Appeals Court to Block FCCs Repeal of TV Ownership Rule

Share {alert(Link copied)}).catch(err => {console.error(Failed to copy: , err)}) data-platform=copy_link data-action= class=font-ui-heading py-2 text-sm tex...

01/12/2026

Waiken ILW partners with Broadpeak to power dynamic ad in...

Partnership delivers personalized viewing experiences and premium advertising experiences across Latin America Broadpeak , a leader in streaming and monetizati...

01/12/2026

Rise AV Opens 2027 Mentoring Programme Applications in th...

Rise AV, the leading advocacy organisation promoting gender diversity and professional development in the AV, Live and Production Technology sectors, has opened...

01/12/2026

FCC Chairman Carr Remains Defiant Despite Court Striking Down ABC License Review

Share {alert(Link copied)}).catch(err => {console.error(Failed to copy: , err)}) data-platform=copy_link data-action= class=font-ui-heading py-2 text-sm tex...

01/12/2026

Online Petition Calls for Congress to Limit FCC Authority in Disney/ABC License Reviews

Share {alert(Link copied)}).catch(err => {console.error(Failed to copy: , er...

01/12/2026

Blue Lucy and Moments Lab turn rights holders archives in...

New integration connects Blue Lucys rights-aware content management platform with Moments Lab's AI platform, so teams can find, compile and publish archive ...

01/12/2026

Scientists develop a more comprehensive approach to track measles using wastewater

LA JOLLA, CA-One cheap and reliable, albeit stinky tool has become an increasing...

01/12/2026

Beam Dynamics Introduces MCP for Faster, Smarter Technology Operations

Beam Dynamics Introduces MCP for Faster, Smarter Technology Operations Brie Clayton November 30, 2026 0 Comments Beam Dynamics has introduced new Model ...

01/12/2026

Multi Platform Healthcare Campaign Captured on URSA Cine 12K LF

Multi Platform Healthcare Campaign Captured on URSA Cine 12K LF Brie Clayton November 30, 2026 0 Comments Craftshow Digital completes Singing River He...

01/12/2026

Gravity Media acquires MOOV to expand broadcast graphics and virtual production capabilities

Gravity Media acquires MOOV to expand broadcast graphics and virtual production ...