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

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

06/09/2026

Dolby and MagentaTV Bring Fans Closer to the FIFA World Cup 2026 in Germany with Dolby Vision and Dolby Atmos

June 9 2026, 23:00 (PDT) Dolby and MagentaTV Bring Fans Closer to the FIFA Worl...

13/08/2026

LaLiga Renews Broadcast Agreements with ESPN and DSports in South America Through 2031/32

LaLiga has renewed broadcast agreements with ESPN and DSports covering Spanish-l...

13/08/2026

Rockstar Energy Open Builds Third Portland Show Around AI-Powered Vertical Feed, Remote Operators

Three days of skateboarding competitions, live music, and other programming will...

13/08/2026

IBC 2026: Matrox Video to Showcase IP and Software-Defined Technologies

Matrox Video will showcase its portfolio of IP and software-defined technologies at IBC2026 (Booth 7.B15, RAI Amsterdam, September 11-14). The portfolio includ...

13/08/2026

IBC 2026: SMPTE to Present Sessions, Workshops, and Networking Events

SMPTE will present expert-led sessions, professional workshops, and networking events at IBC2026. The organization will be located in the IBC2026 Owner Pavilion...

13/08/2026

IBC 2026: Clear-Com to Showcase Communications Solutions

Clear-Com will exhibit at IBC2026 (Stand 10.D29, September 11-14, Amsterdam), showcasing FreeSpeak Cell, Avalon IP Station, updates to Arcadia Central Station, ...

13/08/2026

Advanced Systems Group Appoints Eran Binyamin Zeitoun as Senior Technical Program Manager

Advanced Systems Group (ASG) has appointed Eran Binyamin Zeitoun as Senior Techn...

13/08/2026

2026 SVG Venues & Teams Summit Heats Up Kaseya Center in Miami

Miami HEAT, Florida Panthers, Orlando Magic, University of Miami join leading vendors for a day of gameday-production talk in South Florida The 2026 SVG Venues...

13/08/2026

MLB at Field of Dreams Returns as Netflix Joins the Effort, Leans Into Cinematic Look at Newly Permanent Ballpark

NBC Sports is producing the Twins-Phillies game alongside the streamer, which is...

13/08/2026

IBC 2026: Oracle to Showcase Cloud Media Workflows

Oracle Cloud Infrastructure (OCI) will exhibit at IBC2026 (Hall 5, Booth 5.A21, September 11-14, Amsterdam), demonstrating cloud-based workflows across low-late...

13/08/2026

IBC 2026: Dalet to Participate Accelerator Programme with AI Live Sports Workflow Demo

Dalet will participate in the IBC2026 Accelerator Media Innovation Programme, co...

13/08/2026

Cox Media Group Announces Local Broadcast Deals with Orlando Magic and Charlotte Hornets

Cox Media Group (CMG) has announced multi-year local broadcast rights agreements...

13/08/2026

Jnger Audio to Demonstrate Cloud-Based DTV+ Workflow at SET Expo 2026

J nger Audio will join Fraunhofer IIS and industry partners to showcase a cloud-based, DTV+-compliant workflow at SET Expo 2026 in S o Paulo, August 17-20. DTV+...

13/08/2026

IBC 2026: Olympic Broadcasting Services to Receive International Honour for Excellence

IBC has announced that Olympic Broadcasting Services (OBS) will receive the Inte...

13/08/2026

NESN Expands Red Sox Broadcast Distribution for Jimmy Fund Telethon

NESN has partnered with WSBK-TV38 to broadcast Boston Red Sox games on August 17 and 18 over the air, extending the reach of the 24th annual WEEI/NESN Jimmy Fun...

13/08/2026

LiveU and Panasonic LUMIX Launch Live Anywhere Mobile Production Workflow

LiveU and Panasonic LUMIX have announced the Live Anywhere workflow, demonstrated at NAB 2026 and InfoComm 2026 in collaboration with Social180Group. The work...

13/08/2026

IBC 2026: Chyron to Showcase Sports Workflow Solutions

Chyron will demonstrate its sports analysis, graphics, remote production, virtual production, and venue control solutions at IBC2026 (Booth 7.A23). This year...

13/08/2026

Ratings Roundup: Pro Football Hall of Fame Game Draws 7 Million During Quiet August for Sports

Ratings Roundup is a rundown of recent ratings news and is derived from press re...

13/08/2026

ESPN/ABC, NBC/Peacock, Prime Video Set National Slates for Year 2 of NBA Rights Deal

Season tips off Oct. 20 and runs through April 11; Christmas Day, NBA Cup, All-S...

13/08/2026

VAEMI announce the Synterra

Company preview bio-interactive' synthesizer VAEMI have announced the upcoming launch of a new standalone bio-interactive' generative synthesizer....

13/08/2026

Ravine DSP update Inter::State

Plug-in host gains new Slot Scenes feature Ravine DSP have recently updated their innovative plug-in host, kitting it out with a new feature that brings yet...

13/08/2026

Tubi Media Group Partners with Gracenote to Unlock Additional Value in Content Discovery and Programmatic CTV Advertising

New Agreement Aims to Leverage Gracenote Infrastructure to Create More Relevant ...

13/08/2026

CMG Expands Local Sports Offering With Two NBA Deals

Share Copy link Facebook X Linkedin Bluesky Email...

13/08/2026

Olympic Broadcasting Services to receive IBC2026 Internat...

IBC today announced that its most prestigious honour, the International Honour for Excellence (IHFE), will be presented to Olympic Broadcasting Services (OBS), ...

13/08/2026

Dalet Demonstrates the Future of AI-Orchestrated Live Spo...

Dalet, a leading technology and service provider for media-rich organizations, today announced its participation in the IBC2026 Accelerator Media Innovation Pro...

13/08/2026

dzjinius to showcase new dzjinius on-set application at I...

dzjinius, the all-in-one production management platform for the media and entertainment industry, will showcase its new application, dzjinius on-set , at IBC20...

13/08/2026

BCE Demonstrates Sovereign Cloud Media Workflows powered...

Broadcasting Center Europe (BCE), a leading European provider of media services, system integration and product development, will demonstrate an end-to-end sove...

13/08/2026

Clear-Com to Showcase Communications Solutions for Broadc...

Clear-Com is returning to IBC 2026, taking place September 11-14 in Amsterdam, Netherlands. At Stand 10.D29, Clear-Com will spotlight the award-winning FreeSpe...

13/08/2026

Leader to highlight advanced Test and Measurement solutio...

Test & measurement innovator, Leader Electronics of Europe, will showcase its comprehensive portfolio of Leader, PHABRIX and LeaderPhabrix test and measurement ...

13/08/2026

KRK Brings Advanced Wireless Control to Professional Monitoring With New V Series Five Studio MonitorsKRK Brings Advanced Wireless

KRK Brings Advanced Wireless Control to Professional Monitoring With New V Serie...

13/08/2026

Anthony Noack Captures Artist's Journey in Estonia with Blackmagic Design

Anthony Noack Captures Artist's Journey in Estonia with Blackmagic Design Brie Clayton August 12, 2026 0 Comments Solo filmmaker documents concept...

13/08/2026

ARRI Image Science makes its mobile debut in the HONOR Robot Phone

ARRI Image Science makes its mobile debut in the HONOR Robot Phone Brie Clayton August 12, 2026 0 Comments Hero image displays the HONOR Robot Phone, ...

13/08/2026

ASG Adds Eran Binyamin Zeitoun as Senior Technical Program Manager

Share Copy link Facebook X Linkedin Bluesky Email...

13/08/2026

Vinten To Feature Manual, Robotic Camera Support Offerings At IBC 2026

Share Copy link Facebook X Linkedin Bluesky Email...

13/08/2026

SMPTE Unveils IBC 2026 Plans

Share Copy link Facebook X Linkedin Bluesky Email...

13/08/2026

IP Showcase on the Water Announces Schedule for IBC 2026

Share Copy link Facebook X Linkedin Bluesky Email...

13/08/2026

Spectrum, Optimum Ink New Deals for News Carriage and Ads

Share Copy link Facebook X Linkedin Bluesky Email...

13/08/2026

IAB Tech Lab Updates Privacy Standards

Share Copy link Facebook X Linkedin Bluesky Email...

13/08/2026

Suitest Highlights New AI-Powered Device Testing and Qual...

Suitest's Test Automation Platform Simplifies Video Quality Assurance, Monitoring, and Device Certification Across the OTT Ecosystem At IBC2026, Suitest, a...

13/08/2026

Cinegy showcases powerful, agile, cost-effective media so...

Cinegy GmbH, the premier provider of software-defined television technology, will have its key software solutions ready to demonstrate at SET Expo 2026 (18 20...

13/08/2026

Scripps Research establishes endowed chair honoring Peter K. Vogt, influential pioneer in cancer research

Scripps Research has established the Peter K. Vogt Endowed Chair, a new faculty ...

13/08/2026

New research offers fresh insights for how to make better vaccines

LA JOLLA, CA-A vaccine's molecular structure plays a key role in determining how the immune system responds and prepares to protect the body from future exp...

13/08/2026

Official trailer released for the return of Tea with Judi Dench Coming to Sky Arts on 31st August

Thursday 13 August 2026 Official trailer released for the return of Tea with Ju...

13/08/2026

Dalet Demonstrates the Future of AI-Orchestrated Live Sports Workflows at IBC2026 Accelerator Programme

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

13/08/2026

Vale MP praises Wenvoe's broadcast role and engineering expertise

Wenvoe serves over 1 million people across South Wales 13 August 2026, Winchester, UK - Vale of Glamorgan MP, Kanishka Narayan, has praised the engineering exp...

13/08/2026

Event Marks New Season with the RT Concert Orchestra

RT 's Miriam O'Callaghan welcomed a range of specially invited guests to the National Concert Hall last week for a unique event to mark a new season wit...

13/08/2026

Seattle Seahawks Become First Team to Bring Dolby OptiView with Dolby Vision to Fans

August 13 2026, 06:00 (PDT) Seattle Seahawks Become First Team to Bring Dolby O...

13/08/2026

Class Is in Session: GeForce NOW Levels Up Linux, Chromebooks and More

GeForce NOW is giving cloud gaming an extra-credit upgrade just in time for back-to-school season. The native Linux app for GeForce NOW is officially out of be...