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

19/05/2026

Young Journalist' finalists visit London for training and networking

The winner of Thomson Foundation's Young Journalist of the Year 2025, Tracy Bonareri Onchoke, and runner up Wangu Kanuri enjoyed a three-day trip to London ...

19/05/2026

Cisco and USGA Announce Multiyear Partnership Extension

Cisco and the USGA have announced a multiyear extension of their partnership, which began in 2018. Cisco serves as the Official Technology Partner of the USGA, ...

19/05/2026

Urban Edge Network and Spiideo Partner to Enhance NAIA Sports Streaming

Urban Edge Network (UEN), a streaming platform for NAIA sports, has announced a partnership with Spiideo to provide streaming and production tools to UEN's ...

19/05/2026

Warner Bros. Discovery Announces Expanded Roland-Garros 2026 Coverage

Warner Bros. Discovery (WBD) will provide live coverage of all 900 Roland-Garros matches across its platforms beginning with qualifiers on May 18. In Europe, 21...

19/05/2026

Tubi Launches FIFA World Cup 2026 FOX Hub

Tubi, Fox Corporation's free streaming service, has announced the launch of the FIFA World Cup 2026 FOX Hub, a dedicated destination for World Cup programmi...

19/05/2026

Telefnica and Sony Conduct 5G mmWave Broadcast Trial at Movistar Arena

Telef nica, in collaboration with Sony, has conducted a 5G connectivity trial at the Movistar Arena in Spain using the 26 GHz millimetre wave (mmWave) band. The...

19/05/2026

Ross Production Services Integrates Calrec Argo M into New Hypermax-1 Truck

Ross Production Services (RPS) has installed a Calrec Argo M console into its new Hypermax-1 remote production truck, replacing one of three Argo S consoles pre...

19/05/2026

Panasonic Projector and Display Acquires HIVE Media Control

Panasonic Projector and Display Corporation has announced the acquisition of 100% of the shares of UK-based media technology company Hive Media Control Ltd. (HI...

19/05/2026

Globecast Completes Major Renovation of Singapore Facility

Globecast has announced the completion of a nine-month renovation of its Singapore facility, converting it from a traditional linear broadcast operation into a ...

19/05/2026

Grass Valley Signs Three-Year Enterprise Agreement with Phoenix Broadcast Solutions

Grass Valley has announced a three-year enterprise agreement with Phoenix Broadc...

19/05/2026

Watch Brasil Selects Bitmovin for Streaming Player, Encoder, and Observability

Bitmovin has announced that Watch Brasil, a streaming platform operating across Brazil and Europe since 2018, has replaced its legacy systems with Bitmovin'...

19/05/2026

Ateme and Akamai Power Nepal Premier League Live Streaming

Ateme has announced the migration of Dish Home Nepal's Nepal Premier League (NPL) streaming infrastructure to Ateme's TITAN Live solution deployed on Ak...

19/05/2026

CMSI Supports ESPNs NCAA Gymnastics Championships Coverage

CMSI provided workflow, media management, and HDR support for ESPN during coverage of the NCAA Gymnastics Semifinals and Championships. The company supported fi...

19/05/2026

SVG Rewind: TGLs SmartPin Cam Offers a Whole New Perspective for Golf

In advance of this year's Sports Emmy Awards, SVG is taking a deep dive into the six production-technologies nominated for this year's George Wensel Tec...

19/05/2026

SVG Rewind: FOX IndyCar Takes In-Car AR Graphics to New Heights

In advance of this year's Sports Emmy Awards, SVG is taking a deep dive into the six production-technologies nominated for this year's George Wensel Tec...

19/05/2026

NEP Supershooter 11 and 65 Roll Out To Meet Different Production Needs

Featuring a fully IP infrastructure, Supershooter 11 is intended for large-scale events. Enabling remote and distributed workflows, Supershooter 65 joins the RE...

19/05/2026

Boots Riley Unpacks His Vision of Power, Style, and Time at Sundance Institute's I Love Boosters Denver Screening

By Jessica Herndon The line wrapped around the building outside Denver's La...

19/05/2026

Building a More Trusted Podcast Experience for Creators and Listeners

Podcasting continues to evolve, and so does Spotify. As we build what comes next, one thing remains constant: This is a medium built on connection. It lives in ...

19/05/2026

GC Audio & Looptrotter announce the Emperor Signature Cartridge

Popular design joins Inherit cartridge line-up When GC Audio introduced their modular Inherit system, it was available with a selection of the company's...

19/05/2026

oeksound introduce Soothe3

Resonance-suppression plug-in gets ground-up rebuild Following on from its 10-year anniversary, oeksound's flagship plug-in has just reached its third m...

19/05/2026

Novation unveil the FLKey 2

Dedicated FL Studio controller keyboard range refreshed Novation's dedicated FL Studio controller family has just been upgraded, with four new models ex...

19/05/2026

Rohde & schwarz strengthens its in-vehicle networks test portfolio with the launch of new ASA-ML compliance solution

Rohde & schwarz strengthens its in-vehicle networks test portfolio with the laun...

19/05/2026

Lawful Intelligence: Rohde & Schwarz stellt neues Portfolio fr moderne Polizeiarbeit vor

Lawful Intelligence: Rohde & Schwarz stellt neues Portfolio f r moderne Polizeia...

19/05/2026

Press Release: South Africa to be celebrated as European Film Market's Country in Focus at the Berlinale 2027

Press Release 18 May 2026, Johannesburg South Africa has been selected as the...

19/05/2026

To Deliver for the Warfighter, Acquisition Reform Must Provide a Level Playing Field

When all companies in the market are allowed to compete under the same set of ru...

19/05/2026

Unjammable Lifeline: L3Harris Fiber-Optic Tethers Keep Warfighters Connected

Battle-proven technology withstands electronic warfare threats across air, maritime surface and subsea domains....

19/05/2026

WESCAM MX-Series: Defining the Moment Before the Target Moves

WESCAM MX-Series EO/IR systems provide high-precision targeting across domains, including counter-UAS applications...

19/05/2026

Cobalt Digital and SineSix Media Partner to Transform Accessibility Compliance into a More Engaging Viewer Experience at NAB Show 2026

CHAMPAIGN, Ill. April 16, 2026 - Cobalt Digital today announced a partnership ...

19/05/2026

Cobalt Digital Announces Launch of blueCORE at NAB Show 2026: Compact Powerhouse Signal Processors for SDI and ST 2110 Workflows

Las Vegas - April 18, 2026 Cobalt Digital, the leading designer and manufactur...

19/05/2026

Advanced HDR by Technicolor and Cobalt Digital Address Live Production Gap as HDR Adoption Collides With Legacy Workflows

LAS VEGAS April 18, 2026 - Advanced HDR by Technicolor and Cobalt Digital are ...

19/05/2026

Cobalt Digital Wins Two Future Best of Show Awards at 2026 NAB Show

LAS VEGAS - May 4, 2026 - Cobalt Digital, the leading designer and manufacturer of signal processing products, and a founding partner in the openGear initiativ...

19/05/2026

Cobalt Digital Brings Flexible End-to-End IPMX/ST 2110 Ecosystem to MPTS

London - 11 May 2026 Cobalt Digital, the leading designer and manufacturer of award-winning signal processing products, and a founding partner in the openGear...

19/05/2026

Clear-Com Enhances Musikal Perahu Kertas with Eclipse HX and FreeSpeak II

eds3_5_jq(document).ready(function($) { $(#eds_sliderM519).chameleonSlider_2_1({ content_source:......

19/05/2026

Ross Production Services Flexes Infrastructure with Console Switch

Celebrating its ability to quickly adapt to changing requirements, Ross Production Services (RPS) has put its flexible infrastructure to good use, switching one...

19/05/2026

NFL Pushes Back Against Critics of Games on Streaming

Share Copy link Facebook X Linkedin Bluesky Email...

19/05/2026

NEP Group Rolls Out Two New Mobile Production Units In U.S.

Share Copy link Facebook X Linkedin Bluesky Email...

19/05/2026

Phoenix Broadcast Solutions Raises its Live Production Ga...

Grass Valley has entered into a three-year enterprise agreement with Phoenix Broadcast Solutions as the Singapore-based company expands its live production oper...

19/05/2026

Clear-Com Enhances Musikal Perahu Kertas with Eclipse HX...

Clear-Com supported Musikal Perahu Kertas, a large-scale musical theater production in Indonesia adapted from the acclaimed novel by Dee Lestari, through the d...

19/05/2026

METEO CONSULT and La Chaine Meteo Select Actus Digital fo...

Actus Digital, a LiveU company, and a leading provider of intelligent media monitoring and broadcast compliance platforms, announced today that METEO CONSULT ha...

19/05/2026

Transforming Broadcast Operations - Globecast Unveils Sta...

Globecast, a leading provider of managed services for the broadcast and media industry, today announced the completion of a major renovation of its Singapore fa...

19/05/2026

Calrec Console Switch Helps Ross Production Services Fle...

Following a major upgrade to its Connecticut remote production centre with the installation of three 60-fader Argo S consoles in 2023, RPS has switched one of t...

19/05/2026

PlayBox Technology Launches a Modular Media Orchestration...

PlayBox Technology today announced the launch of Celebro Play, a browser-based media orchestration platform designed specifically for broadcast facilities and p...

19/05/2026

Publicis Groupe to Buy LiveRamp for $2.2 Billion

Share Copy link Facebook X Linkedin Bluesky Email...

19/05/2026

Tubi Launches 2026 FIFA World Cup Fox Hub

Share Copy link Facebook X Linkedin Bluesky Email...

19/05/2026

Viamedia Introduces a New Geographic Intelligence Layer

Share Copy link Facebook X Linkedin Bluesky Email...