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

01/04/2026

DOLBY AND DOUYIN EMPOWER THE NEXT GENERATON OF CREATORS WITH DOLBY VISION

January 4 2026, 18:00 (PST) DOLBY AND DOUYIN EMPOWER THE NEXT GENERATON OF CREATORS WITH DOLBY VISION Douyin Users Can Now Create And Share Videos With Stun...

20/03/2026

MRMC Names CP Communications Its Official U.S. Rental, Sales Partner

Share Copy link Facebook X Linkedin Bluesky Email...

20/03/2026

FOR-A To Feature Software-Defined, AI-Driven Solutions At 2026 NAB Show

Share Copy link Facebook X Linkedin Bluesky Email...

20/03/2026

2026 NAB Show Exhibitor Insight: Riedel Communications

Share Copy link Facebook X Linkedin Bluesky Email...

20/03/2026

DirecTV Files Suit to Block Nexstar/Tegna Deal

Share Copy link Facebook X Linkedin Bluesky Email...

20/03/2026

Fujifilm Announces Four New Broadcast Zoom Lenses

Share Copy link Facebook X Linkedin Bluesky Email...

20/03/2026

NAB 2026: Software-Defined, AI-Powered Workflow Tells the...

Real-time 9:16 AI-Generated Autocropping; Software-Defined Station in a Box; and Software Switcher with Unlimited Layering Are Among Show Highlights For the fi...

20/03/2026

Signiant Showcases New Content Innovations Driving Visibility, Access, and Action at NAB 2026

Signiant Showcases New Content Innovations Driving Visibility, Access, and Actio...

20/03/2026

Caffeine Relies on DaVinci Resolve Studio for End to End Post Workflow

Caffeine Relies on DaVinci Resolve Studio for End to End Post Workflow Brie Clayton March 19, 2026 0 Comments Blackmagic Cloud helps Mexican post faci...

19/03/2026

The Rise of Streaming, Particularly for Sports, Revives Loudness Issues

Live sports production increases complexity, with dynamic audio levels and an overall philosophy that encourages transient volume spikes Fourteen years ago, Am...

19/03/2026

Advanced Systems Group Names Peter Thordarson as Technical Account Executive

Advanced Systems Group, a technology and services provider for media creatives and content owners, announced the appointment of Peter Thordarson to the newly cr...

19/03/2026

SVG Students To Watch: Arya Taymuree, University of Washington

For this senior from the Bay Area, the speed and pressure of live sports production play right into her strengths In the live-sports-video industry, the future...

19/03/2026

Grass Valley Expands Partnership with University of Pittsburgh Athletics, Upgrading Production Infrastructure to SMPTE ST 2110 IP

Grass Valley has expanded its long-term partnership with University of Pittsburg...

19/03/2026

Audio-Technica Debuts ATV-SG1 and ATV-SG1LE On-Camera Shotgun Microphones

Audio-Technica has released the ATV-SG1 and ATV-SG1LE On-Camera Shotgun Microphones, designed for use with DSLR, mirrorless SLR, and other cameras. The ATV-SG1...

19/03/2026

NAB 2026: Harmonic Enhances XOS Advanced Media Processor to Streamline Next-Generation Broadcast Distribution

Harmonic (booth W2831) announces updates to its XOS Advanced Media Processor aim...

19/03/2026

DAZN and Top Rank Sign Multi-Year Rights Deal to Bring Marquee Events and Historic Archive to the Global Home of Boxing

DAZN and Top Rank have announced a multi-year partnership that will bring Top Ra...

19/03/2026

IHSE and Cyviz Announce Strategic Partnership

IHSE, a provider of KVM systems, has announced a partnership with Cyviz AS, a provider of technology solutions for collaboration and mission-critical operations...

19/03/2026

Net Insight appoints Larissa Grner-Meeus as Chief Product Officer (CPO)

Net Insight has appointed Larissa G rner-Meeus as Chief Product Officer. She joins the company's executive management team. G rner-Meeus holds a Dipl-Ing. ...

19/03/2026

Leader Appoints Rob Stanley as Regional Sales Manager UK & Northern Europe

Leader Electronics of Europe has appointed Rob Stanley as Regional Sales Manager for the UK and Northern Europe. In the role, he will manage key accounts and ha...

19/03/2026

FIFA and YouTube Team Up in FIFA World Cup 2026 Preferred Platform Agreement

FIFA has announced that YouTube will be a Preferred Platform for the FIFA World Cup 2026. Under the agreement, FIFA's Media Partners will be able to publis...

19/03/2026

Upgrade to NCAA March Madness Live App Expands Multi-Game Viewing, Enhances Second-Screen Experience

New features across mobile, connected devices, and automotive platforms undersco...

19/03/2026

PSSI Global Services Welcomes Ben Bradshaw as Director of Product and Network Development

PSSI Global Services has appointed Ben Bradshaw as Director of Product and Netwo...

19/03/2026

NAB 2026: Cobalt Digital to Unveil Additions to End-to-End IPMX and ST 2110 Ecosystem

Cobalt Digital has announced its NAB 2026 product lineup, which includes additio...

19/03/2026

Sportradar Releases Industry Outlook on the Future of U.S. Sports Viewing

Sportradar has released a new report, Innovation in Sports Media: The Next Era of Sports Viewing, examining how the sports viewing experience in the U.S. is evo...

19/03/2026

Matrox Video's ConvertIP Awarded in Rai Framework Agreement Supporting IP Modernization Strategy

Matrox Video has been awarded a three-year framework agreement to supply its Con...

19/03/2026

Controlled Chaos: Inside the Mighty Production Engine Behind the NCAA Men's Basketball Tournament's First Week

CBS Sports' Jason Cohen and TNT Sports' Chris Brown lead the charge on n...

19/03/2026

Loud and Fun Is the Goal for NCAA Tourney Audio

A1 Dave Grundtvig and his team deploy plenty of mics to capture the sounds and energy from the stands as well the court March Madness is a tournament in which ...

19/03/2026

Spotify Marks 5 Years of EQUAL With EQUAL: The Podcast and Global Events

In 2021, we launched EQUAL, a program designed to address an industry reality that persists: Women artists, songwriters, and producers too often face fewer oppo...

19/03/2026

Toontrack release Transistor Organ EKX

Latest EZKeys 2 expansion arrives Toontrack's staggering collection of EZKeys 2 expansions has grown once again, and the latest instalment delivers a on...

19/03/2026

Roland preview Melody Flip

New generative AI plug-in due in May 2026 Roland have announced the upcoming launch of a new generative AI tool created in collaboration with Sony Computer ...

19/03/2026

Native Instruments CEO Statement

Nick Williams updates users on insolvency process Nick Williams, the CEO of Native Instruments, has released the following official statement regarding thei...

19/03/2026

Milab to restart production

Iconic Swedish mic manufacturer back in action Legendary Swedish microphone manufacturer Milab have announced that production is now fully underway, and mic...

19/03/2026

FT1-EMU plug-in from Freqport

Acclaimed saturation unit goes virtual Freqport's Freqtube FT1 (reviewed here in SOS February 2023) offers a convenient way to integrate real valve-base...

19/03/2026

SGL Carbon: Restructuring ensures earnings forecast and creates basis for new growth

The discontinuation of loss-making business activities as part of the restructur...

19/03/2026

Silicon Valley satire The Audacity premieres 15 April on SBS and SBS On Demand

Silicon Valley satire The Audacity premieres 15 April on SBS and SBS On Demand 19 March, 2026 Media releases From one of the writer/producers of Succession...

19/03/2026

SBS brings communities together at Bondi Pavilion for Harmony Week multilingual broadcast

SBS brings communities together at Bondi Pavilion for Harmony Week multilingual ...

19/03/2026

Clarification from SBS regarding Western Sydney expansion

Clarification from SBS regarding Western Sydney expansion 19 March, 2026 Media releases From an SBS spokesperson: SBS wishes to clarify some media coverag...

19/03/2026

Leader appoints Rob Stanley as Regional Sales Manager UK...

Test & measurement innovator, Leader Electronics of Europe, is pleased to announce the appointment of Rob Stanley as Regional Sales Manager - UK & Northern Euro...

19/03/2026

Accedo One and Magine Pro Officially Launch Leyra Deliver...

The recently announced joint venture between Accedo One and Magine Pro has been officially launched as Leyra. The new company will combine the two complementary...

19/03/2026

Lightware matrices are the go-to choice for signal manage...

Budapest, Hungary, March 2026 - Demand for traditional matrix switching remains strong across live events, rental and staging markets. With a reputation for rel...

19/03/2026

DPA Elevates 4097 Micro Shotgun With CORE Technology

DPA Microphones adds to its CORE microphone selection with the 4097 CORE Micro Shotgun, which delivers a new level of clarity, headroom and sonic transparency...

19/03/2026

Starfish highlights flexible TS Splicer releases and new...

Starfish Technologies will present the latest releases of its TS Splicer (Win) and TS Splicer (K8) at NAB Show 2026, together with a new Monitoring Dashboard de...

19/03/2026

TrueVisions Selects Bitmovin Observability

Bitmovin, a leading provider of video streaming solutions, has announced that TrueVisions NOW, a leading streaming platform in Thailand, and part of the TrueVis...

19/03/2026

Harmonic Enhances XOS Advanced Media Processor to Streaml...

Harmonic (NASDAQ: HLIT) today announced significant enhancements to its XOS Advanced Media Processor that lower the cost of broadcast distribution while enablin...

19/03/2026

Cobalt Digital to Unveil Additions to End to End IPMX and...

Cobalt Digital, the leading designer and manufacturer of award-winning signal processing products, and a founding partner in the openGear initiative has announ...

19/03/2026

Magewell Connecting Any Source Anywhere in Any Form Facto...

Magewell a developer of innovative, high-performance video I/O and IP workflow solutions will be at the 2026 NAB Show on booth C6113. In addition to several...