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

01/06/2026

Dolby Sets the New Standard for Premium Entertainment at CES 2026

January 6 2026, 05:30 (PST) Dolby Sets the New Standard for Premium Entertainment at CES 2026 Throughout the week, Dolby brings to life the latest innovatio...

02/05/2026

Dalet Flex LTS Delivers Smarter Search, Faster Editing, and an AI-Ready Foundation for Modern Media

Dalet, a leading technology and service provider for media-rich organizations, t...

01/05/2026

NBCUniversal's Peacock to Be First Streamer to Integrate Dolby's Full Suite of Premium Picture and Sound Innovations

January 5 2026, 18:30 (PST) NBCUniversal's Peacock to Be First Streamer to ...

16/04/2026

NAB 2026: Appear Announces X5 General Availability, XM Management Tool, and SIx300 Module

Appear ASA (OSE: APR) will announce three additions to its X Platform at NAB Sho...

16/04/2026

CentralCast Deploys Harmonic XOS Media Processor for Public Broadcasting

Harmonic has announced that CentralCast, a centralized master control facility for U.S. public media, has deployed Harmonic's XOS Advanced Media Processor t...

16/04/2026

NAB 2026: Encompass Digital Media Integrates Interra Systems BATON into Cloud-Based Altitude Flow Platform

Interra Systems has announced that Encompass Digital Media has integrated its BA...

16/04/2026

NAB 2026: Grass Valley to Showcase Expanded Media Infrastructure Capabilities

Grass Valley will demonstrate its Media Infrastructure capabilities at NAB Show 2026 (Booth C2408, Central Hall), bringing routing, signal processing, and orche...

16/04/2026

Verizon Readies Robust Network Infrastructure Plans for FIFA World Cup 2026

As preparations ramp up for the FIFA World Cup 2026, Verizon has outlined a sweeping connectivity and infrastructure initiative that will underpin broadcast ope...

16/04/2026

Advanced Image Robotics Joins 2026 MLS Innovation Lab

Advanced Image Robotics (AIR) has announced its selection for the 2026 MLS Innovation Lab. AIR will work with MLS clubs, players, and executives on automated vi...

16/04/2026

NAB 2026: JWX Acquires True Anthem, Adding AI-Powered Social Publishing to Publisher Platform

JWX has announced the acquisition of True Anthem, an AI-powered social publishin...

16/04/2026

Jomboy Media and Fubo Launch 24/7 Creator-Led Channel

Jomboy Media and FuboTV Inc. have launched the Jomboy Media Channel, a 24/7 channel available to FuboTV base plan subscribers. The channel, timed to the start o...

16/04/2026

NAB 2026: Wave Central and EVS Announce SMPTE ST 2110 Interoperability Validation

Wave Central, a Domo Broadcast Company (Booth C2820), and EVS Broadcast Equipmen...

16/04/2026

Tata Communications and Formula 1 Release Race Before the Race, First Film in New Content Series

Tata Communications and Formula 1 have released Race Before the Race, the firs...

16/04/2026

NAB 2026: DPA Microphones N-Series Firmware Update Adds Duplex Gap and Guard Band Access for North American Users

DPA Microphones has released a firmware update for its N-Series Digital Wireless...

16/04/2026

NAB 2026: See Sony's Live Stage Presentations at NAB Show 2026

Sony's Live Stage at NAB Show 2026 is the place to hear directly from the content creators, end users, and technology experts who are pushing boundaries in ...

16/04/2026

Perfect Game and Youth Prospects Announce Broadcast Rights and Content Partnership

Perfect Game and Youth Prospects have announced a partnership covering broadcast...

16/04/2026

National Collegiate Rugby Partners with All Womens Sports Network for 2026 National 7s Championships

National Collegiate Rugby (NCR) has announced a media rights partnership with Al...

16/04/2026

NAB 2026: Audio-Technica Introduces BP350ST-UB and BP350ST-UL Mid-Side Stereo Broadcast Microphones

Audio-Technica has announced two new mid-side (MS) stereo broadcast microphones:...

16/04/2026

NAB 2026: PSSI Global Services Acquires Beagle Networks

PSSI Global Services has announced the acquisition of Beagle Networks, a provider of IT infrastructure and onsite technical support for media and enterprise cus...

16/04/2026

NAB 2026: Blackmagic Design Releases Blackmagic Camera for iOS 3.3

Blackmagic Design has released Blackmagic Camera for iOS 3.3, a free update available now from the Apple App Store. The update will be demonstrated at NAB Show ...

16/04/2026

SVG New Sponsor Spotlight: 4Wall Entertainment's Dave Caulwell on Scaling Live Event Production for Sports

As live sports production continues to expand across linear, digital, and in-ven...

16/04/2026

ESPN Enters First HDR Postseason With REMCO Support in New Bristol-Based Control Rooms

Part of an infrastructure upgrade, the recently constructed spaces accommodate n...

16/04/2026

NBC Sports Tips Off First NBA Playoffs Campaign in 23 Years With Six-Truck Fleet, Interchangeable Production Model

NBC has added NEP's Supershooter 11, which only just came online in time for...

16/04/2026

Introducing a Smarter, Smoother Experience for Tablets

At Spotify, we want your experience to feel intuitive and personal across every moment of the day. Whether you're streaming your favorite playlist while you...

16/04/2026

Telsie T - SonicWorlds extended classic German Equaliser

Vintage broadcast experts release second plug-in Telsie T is the second plug-in to be released by SonicWorld, a German audio company who specialise in servi...

16/04/2026

Softube unveil Flow Studio

Compact unit offers hands-on plug-in control Softube have just announced the launch of their latest hardware unit, the Flow Studio. Housed in a compact desk...

16/04/2026

Fiedler Audio release Armada

Use any VST3 plug-in on immersive audio Fiedler Audio have just released a powerful new plug-in wrapper that brings full VST3 processing to Dolby Atmos and ...

16/04/2026

Nugen Audio update Halo Vision

Analysis plug-in gains enhanced frequency readouts Nugen Audio's real-time analysis plug-in has just received a significant update that introduces some ...

16/04/2026

GearExpo UK Announced

Recording & Music Technology Show Sound On Sound are pleased to announce a new recording and music technology exhibition taking place in London on Saturday ...

16/04/2026

SBS reveals all-star alumni team to celebrate 70 years of the Eurovision Song Contest

SBS reveals all-star alumni team to celebrate 70 years of the Eurovision Song Co...

16/04/2026

Reimagining Earth Measurement for the AI Era: L3Harris and Xoople Develop a New Spaceborne Capability

For decades, understanding the physical world from space has required a trade-of...

16/04/2026

Locality and Nielsen Announce Landmark Integration of Media Data Engine, Transforming Local TV Measurement

The integration accelerates demographic audience delivery across local markets a...

16/04/2026

Quickplay Deploys Gray Medias New Streaming Platform

Share Copy link Facebook X Linkedin Bluesky Email...

16/04/2026

Spectrum TV App Launches On Google TV and Other Android TV Devices

Share Copy link Facebook X Linkedin Bluesky Email...

16/04/2026

Telestream Enables Multi-Cloud Media Workflows with Oracl...

Telestream Cloud Services, including Vantage Cloud, UP, and SENTRY monitoring tools, are now optimized for OCI, powering flexible multi-cloud media orchestratio...

16/04/2026

Fox Corporation Names Amazon Web Services its Preferred A...

Fox Corporation (Nasdaq: FOXA, FOX; FOX or the Company ) today announced a strategic collaboration with Amazon Web Services (AWS), naming AWS as its preferre...

16/04/2026

Triveni Digital Introduces New StreamScope Analyzer to Br...

Triveni Digital, a trusted leader in ATSC 1.0 and 3.0 service delivery, data broadcasting, and quality assurance solutions, today announced an ISDB-Tb capabilit...

16/04/2026

Synamedia and SoFast team up to accelerate FAST and OTT

Synamedia and SoFast announce strategic go-to-market partnership to accelerate FAST, pay-TV, and VOD At the NAB Show 2026, Synamedia and SoFast are announcing ...

16/04/2026

Imagine Builds on a Decade of ST 2110 Leadership at 2026...

Showcases New, Open-Standard IP Solutions Across Its Portfolio, From Production to Playout Imagine Communications is marking a decade of leadership in ST 2110 ...

16/04/2026

Roku Marks 100M Milestone

Share Copy link Facebook X Linkedin Bluesky Email...

16/04/2026

Sportway and Broadcast Solutions acquire Studio Automated...

Sportway Media Group, a world leading AI-automated sports production company and Broadcast Solutions, a leading system integrator and provider of innovative sol...

16/04/2026

AJA to Acquire Video Encoding Software Company Comprimato

Share Copy link Facebook X Linkedin Bluesky Email...

16/04/2026

NAB Show 2026: Sony Announces New Cameras, Virtual Production Tools

Share Copy link Facebook X Linkedin Bluesky Email...

16/04/2026

Synamedia launches GO Shorts

Share Copy link Facebook X Linkedin Bluesky Email...

16/04/2026

Clear-Com Introduces Arcadia and Eclipse HX Updates

Share Copy link Facebook X Linkedin Bluesky Email...

16/04/2026

AJA Enters into Agreement to Acquire Video Encoding Software Company Comprimato

AJA Enters into Agreement to Acquire Video Encoding Software Company Comprimato Brie Clayton April 15, 2026 0 Comments Deal will expand AJA's video ...

16/04/2026

Deity Announces PR-4 Compact Field Recorder with Pre-Orders Launching April 14

Deity Announces PR-4 Compact Field Recorder with Pre-Orders Launching April 14 Brie Clayton April 15, 2026 0 Comments Deity Microphones today announce...