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

09/10/2026

Dolby Expands Dolby OptiView Platform with New Capabilities at IBC 2026

September 10 2026, 06:00 (PDT) Dolby Expands Dolby OptiView Platform with New Capabilities at IBC 2026 New Sports Intelligence helps providers better unders...

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

05/10/2026

Eutelsat Ships First 32 New OneWeb LEO Satellites for Upcoming SpaceX Launch

Eutelsat has announced that Airbus Defence and Space has completed the first 32 new OneWeb Low Earth Orbit satellites at its facility in Toulouse, France. The s...

05/10/2026

Racecourse Media Group Appoints Andrew Demaria as First Chief Content Officer

Racecourse Media Group (RMG) has appointed Andrew Demaria as its first Chief Content Officer, effective October 6. Demaria joins from a career spanning more th...

05/10/2026

SMPTE to Host Full-Day Precision Timing Bootcamp at NAB Show New York

SMPTE will host SMPTE Bootcamp: Precision Timing for ST 2110 on Wednesday, October 21, 2026, from 9:20 a.m. to 4:30 p.m. in Room 3D03 at the Javits Center durin...

05/10/2026

Nexstar and DAZN to Simulcast 15 Indiana Pacers Games Across Central Indiana

Nexstar Media Group and DAZN have announced a partnership to simulcast 15 regular season Indiana Pacers games on Nexstar television stations and free on DAZN si...

05/10/2026

Behind The Mic: Tony Romo to Depart From CBS Sports Permanently

Behind The Mic provides a roundup of recent news regarding on-air talent, including new deals, departures, and assignments compiled from press releases and repo...

05/10/2026

Telos Alliance Announces Zephyr Connect SE Now Shipping

Telos Alliance has announced that Zephyr Connect SE, a new hardware codec, is now shipping. The unit joins the Telos iPort High Density multi-codec gateway and ...

05/10/2026

Sofascore and NHL Announce Multiyear Global Partnership

Sofascore and the NHL have announced a multiyear global partnership that will bring new NHL statistics and analytics tools to Sofascore's platform beginning...

05/10/2026

New Orleans Pelicans Announce 2026-27 Broadcast Plans

The New Orleans Pelicans have announced broadcast coverage for the 2026-27 season. Gray Media and the Gulf Coast Sports and Entertainment Network (GCSEN) will c...

05/10/2026

SVG New Sponsor Spotlight: Rezzil Co-Founder Andy Etches on Bringing Movement Intelligence to Broadcast

As sports broadcasters look for new ways to make live action more immersive, ins...

05/10/2026

Austrian Audio introduce the OC616

New multi-pattern LDC revealed Austrian Audio have announced the upcoming launch of a new multi-pattern large-diaphragm capacitor mic that occupies the midd...

05/10/2026

IK Multimedia Tonex 2 Player now available

Software gains Tonex Board rig support When IK Multimedia launched the Tonex Board, they mentioned that it would soon be followed by a significant update to...

05/10/2026

fedDSP release quadCHO

Offers a modern take on classic chorus effects fedDSP's latest creation has been designed to offer a modern take on the classic chorus effect, combining...

05/10/2026

SMPTE to Offer Full-Day Precision Timing Bootcamp for ST 2110 at NAB Show New York

Share Copy link Facebook X Linkedin Bluesky Email...

05/10/2026

Matthews Studio Equipment Ships Sliding Leg C-Stand 2-Pack

Share Copy link Facebook X Linkedin Bluesky Email...

05/10/2026

From Spots to Audiences: How Advanced Advertising Is Reshaping Local TV

Share Copy link Facebook X Linkedin Bluesky Email...

05/10/2026

Combined Paramount-WBD Studio to be Named Skydance

Share Copy link Facebook X Linkedin Bluesky Email...

05/10/2026

URSA Cine 12K LF Captures Poste Italian's Anniversary Film

URSA Cine 12K LF Captures Poste Italian's Anniversary Film Brie Clayton October 4, 2026 0 Comments Jacopo Mutti reveals the practical choices behi...

05/10/2026

Green Hippo Estuary Series MC1 and MC2 Media Controllers are Now Shipping

Green Hippo Estuary Series MC1 and MC2 Media Controllers are Now Shipping Brie Clayton October 4, 2026 0 Comments Made for Shows that Don't Have T...

05/10/2026

Telos Alliance Announces Telos Zephyr Connect SE Is Now Available

Telos Alliance Announces Telos Zephyr Connect SE Is Now Available Search Cleveland, Ohio (October 5, 2026) - Telos Alliance , trusted global leader in br...

05/10/2026

RT to provide comprehensive coverage of Budget 2027 on TV, radio and online

RT will provide comprehensive coverage and analysis of Budget 2027 across online, radio and television on Tuesday 6 October, with extensive reporting and analy...

05/10/2026

From Scan to Treatment Plan, AI Helps Close Breast Cancer's Deadliest Gaps

Breast cancer is the most commonly diagnosed cancer among American women - yet the gaps in care are wide. A majority of women over age 40 skip the recommended a...

04/10/2026

Shure's MV6 gets Gen 2 upgrade

Dedicated streaming mic gets an overhaul Following on from the success of their dedicated streaming microphone, the MV6, Shure have announced the launch of ...

03/10/2026

MLB Network's Secaucus Facility Transforms Into Production Hub for Live Game Coverage on JioStar in India, BBC in UK

The broadcaster's capability as an internal production house continues with ...

03/10/2026

Ratings Roundup: NFL Ratings Down Slightly Through 3 Weeks; Ravens-Cowboys in Rio Is Top NFL International Game Ever

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

03/10/2026

Release Rundown: What to Watch in October, From Wicker to Once Upon a Time in Harlem

Olivia Colman stars in Wicker, which premiered at the 2026 Sundance Film Festi...

03/10/2026

Nielsen to Introduce New Content Measurement Solutions in Early 2027

Nielsen is evolving its cross-platform content measurement solutions to give every corner of the media industry studios, distributors, content creators, right...

03/10/2026

FCC Updates EEO Rule WordingNo Form 395-B

Share Copy link Facebook X Linkedin Bluesky Email...

03/10/2026

EDO: Spanish-Language TV Ads Outperform Spots in English

Share Copy link Facebook X Linkedin Bluesky Email...

03/10/2026

Bantaray Mobile Sports Production Delivers Niche Sports to Growing Audiences with AJA

Bantaray Mobile Sports Production Delivers Niche Sports to Growing Audiences wit...

02/10/2026

NESN, SportsNet Pittsburgh Debut New-Look Scorebug, Graphics for NHL Season

Design reflects feedback on graphics introduced for MLB Red Sox and Pirates games Boston Bruins games on NESN and Pittsburgh Penguins games on SportsNet Pittsb...

02/10/2026

NBC Sports Leans Into Image Quality, Drones, Distinct Camera Positions, REMI as College-Football Slate Hits Big Stretch

NEP SS7/ST7 anchors Big Ten Saturday Night; nine Peacock games are produced from...

02/10/2026

SVG GameDay, Ep. 33: National Football Leagues Tim Tubito - Fan Entertainment at Home & Abroad

In-venue and creative video staffers at the professional and collegiate level ha...

02/10/2026

GameTime Productions Delivers National Broadcast Production for AUSL Season

GameTime Productions provided national broadcast production services for the Athletes Unlimited Softball League (AUSL) 2026 season, with coverage distributed ac...

02/10/2026

Audio-Technica Introduces HP-HBM50x Replacement Headband for ATH-M50x

Audio-Technica has introduced the HP-HBM50x, a genuine replacement headband for the ATH-M50x professional studio monitor headphones. The HP-HBM50x is compatible...

02/10/2026

ASG Helps Black Lava Studios Build 9.1.6 Immersive Audio Facility

Advanced Systems Group (ASG) has helped audio professional Steve Schatz design and build Black Lava Studios, a 9.1.6 Dolby Atmos mixing and mastering facility i...

02/10/2026

Cobalt Digitals PACIFIC Line Wins Two IBC Best of Show Awards

Cobalt Digital has received Best of Show awards from TV Tech and TVB Europe at IBC2026 for solutions from its PACIFIC compression line. TV Tech recognized the ...

02/10/2026

ESPN and TMRW Sports Extend Multi-Year U.S. Media Rights Deal for TGL

ESPN and TMRW Sports have announced a multi-year extension of their U.S. media rights agreement for TGL presented by SoFi. The 2027 TGL season will open Sunday,...

02/10/2026

Devlin Design Group and Clickspring Design Announce Strategic Alliance

Devlin Design Group (DDG) and Clickspring Design (CSD) have announced a strategic alliance combining their design capabilities for broadcast, media, workplace, ...

02/10/2026

CSMG Named Exclusive Media Rights Representative for the NCHC

The National Collegiate Hockey Conference has announced a partnership with CSMG (Collegiate Sports Management Group) making the firm the exclusive representativ...

02/10/2026

NAB NY 2026: Mediaproxy To Showcase AI Monitoring and Browser-Based Multiviewer

Mediaproxy will exhibit at NAB Show New York (Booth 561, Javits Center, October 21-22), demonstrating new AI capabilities in its LogServer compliance platform a...

02/10/2026

Mesh Broadcast Services Installs Calrec Argo M in Eclipse Mobile Production Unit

Mesh Broadcast Services has installed a Calrec Argo M console in the production area of its Eclipse 40-foot mobile unit, recently moved onto a 2025 Freightliner...

02/10/2026

Richmond AFL Deploys Vizrts Viz Libero Teams for Coaching and Content

Vizrt has announced that Richmond AFL has signed on to use Viz Libero Teams for coaching analysis and content creation. The platform provides 3D match analysis ...

02/10/2026

Oak View Group Names Cisco as Official Technology Partner for Infrastructure Management Across OVGs Venue Network

Oak View Group (OVG) has announced Cisco as an Official Technology Partner. Thro...

02/10/2026

Clear-Com Arcadia Central Station Installed at Audiovisual Training Centre in d

Clear-Com has announced that the Audiovisual Training Centre in d , Poland, has installed an Arcadia Central Station as the communications hub for its broadca...

02/10/2026

Sportel Announces Awards Jury, Highlighted by Multiple Champions

A major figure in international football, three-time French champion and three-time Ligue 1 top scorer, Sonny Anderson will chair the SPORTEL Awards 2026 Jury. ...

02/10/2026

Bantaray Mobile Sports Production Relies on AJA FiDO Converters for Niche Sports Broadcasts

California-based Bantaray Mobile Sports Production has built its mobile producti...

02/10/2026

Overtime Raises New Strategic Investment Led by Eldridge Capital Management

Overtime has announced a new strategic investment led by Eldridge Capital Management. Eldridge has investments across sports and media including the Los Angeles...