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

05/11/2026

Nomono Brings Speech-Enhancement Pipeline to Broadcasters

Share Copy link Facebook X Linkedin Bluesky Email...

05/11/2026

GatesAir Adds New Capabilities to AirWatch365 Managed Service

Share Copy link Facebook X Linkedin Bluesky Email...

05/11/2026

First LED cinema in Hungary powered by Lightware

Hungary's first LED cinema, in Budapest, combines cutting-edge HeyLED display technology with Lightware's AV solutions to deliver an exceptional cinemat...

05/11/2026

COW Jobs: Film Delivery and Servicing Lead - Mars, PA

COW Jobs: Film Delivery and Servicing Lead - Mars, PA Brie Clayton November 5, 2026 0 Comments Film Delivery and Servicing Lead October 27, 2026COW ...

05/11/2026

RT Combines Calrec Type R, ST 2110 for World Cup Commentary

Share Copy link Facebook X Linkedin Bluesky Email...

05/11/2026

Hogwarts Legacy' Gets a Magical NVIDIA DLSS 5 Upgrade on GeForce NOW

Hogwarts Legacy receives an NVIDIA DLSS 5 upgrade with 3D-Guided Neural Rendering today, bringing lifelike lighting and materials to the wizarding world on GeFo...

04/11/2026

SVG Sit-Down: Telstra's Amanda Leighton on Dynamic Connect and the Future of Managed Services

The company's chief revenue officer shares its new messaging emphasizing its...

04/11/2026

Gravity Media Debuts SMARThead Robotic Cameras in U.S. at TCS New York City Marathon

Gravity Media has brought its SMARThead robotic camera technology to the United ...

04/11/2026

WWE and Disney Expand Partnership With Two-Day ESPN Wide World of Sports Takeover

WWE and The Walt Disney Company have announced a two-day takeover of ESPN Wide W...

04/11/2026

RT Mixes 2026 World Football Championship Commentary With Calrec Type R

RT combined Calrec's Type R system with its SMPTE ST 2110 network to change how it mixed commentary for the 2026 World Football Championship. Where six com...

04/11/2026

Bildquadrat Adds Riedel Virtual SmartPanel to Production Intercom

D sseldorf-based production company Bildquadrat is using Riedel's Virtual SmartPanel (VSP) to expand its intercom infrastructure for mobile and geographical...

04/11/2026

Verizon Details Network Upgrades and Connected Tech Across the 2026 NFL Season

Verizon, an official NFL partner since 2010, has outlined its network and connected-technology work for the 2026 NFL season, spanning officiating, coach communi...

04/11/2026

Crowd Control: How the International Dance League Builds Its Broadcast Around the Audience

It's not just the video. The in-venue sound and noise also bring the energy ...

04/11/2026

Expressive E release GForce Collection

Latest Expressive Suites announced Expressive E have teamed up with GForce Software to create a collection of MPE presets for two of the company's popul...

04/11/2026

Modartt add YFX Japanese Grand to Pianoteq

Latest instrument pack now available Modartt's much-loved virtual piano suite has just been treated to another update, gaining a new instrument pack tha...

04/11/2026

ebbandflow introduce deCADE

Captures an array of classic 1980s synths The third instrument from ebbandflow has just arrived, delivering a collection of 100 patches that have been creat...

04/11/2026

Steinberg unveil Cubase 16

Instrument Stacks, editing improvements, new stock plug-ins & more Steinberg have just launched the latest version of their award-winning music-focused DAW,...

04/11/2026

Universal Audio capture Capitol Studios

New native room-modelling plug-in announced Universal Audio's latest native room-modelling and reverb plug-in captures the sound of one of the world'...

04/11/2026

Foundry makes virtual production more accessible with Nuke Stage macOS support and education licensing

London - October 29, 2026 - Creative software developer Foundry today announced ...

04/11/2026

RT Mixes World-Class Football with Calrec Type R

Long known for using Calrec in television, RT turned to the Type R workflow it had adopted in radio to build a multi-mix commentary area for this summer's ...

04/11/2026

MaxxKonnect Acquires FCCInfo.com

Share Copy link Facebook X Linkedin Bluesky Email...

04/11/2026

Hearing Scheduled for FCC Commissioner Thumann Severs Nomination

Share Copy link Facebook X Linkedin Bluesky Email...

04/11/2026

RT Combines Calrec Type R, SMPTE ST 2110 for World Cup Commentary

Share Copy link Facebook X Linkedin Bluesky Email...

04/11/2026

Roku Introduces Roku Outcomes to Optimize Ad Delivery

Share Copy link Facebook X Linkedin Bluesky Email...

04/11/2026

Bildquadrat Expands Production Communication With Riedel...

Riedel Communications today announced that D sseldorf-based production company Bildquadrat relies on Riedel's Virtual SmartPanel (VSP) to flexibly expand it...

04/11/2026

DPA Microphones Delivers Pristine Audio for Hilary Duff T...

For a tour built around bringing an audience closer to the artist, what happens beyond the stage can be just as important as what happens on it. For Hilary Duff...

04/11/2026

Premiere mobile adds music from UMG and WMG, helping creators find the perfect track for every story

Premiere mobile adds music from UMG and WMG, helping creators find the perfect t...

04/11/2026

Towson University Relies on Blackmagic Design for Media Production

Towson University Relies on Blackmagic Design for Media Production Brie Clayton November 4, 2026 0 Comments DaVinci Resolve Studio implementation driv...

04/11/2026

Berklee Celebrates Screen Scoring Talent at Annual BMI Day

Berklee Celebrates Screen Scoring Talent at Annual BMI Day Emmy-nominated composer and alumnus Tony Morales returned to campus to work with students, while se...

04/11/2026

Canon Brings PTZ and Multicamera Setup, Control and Management into a Single Platform

Share Copy link Facebook X Linkedin Bluesky Email...

04/11/2026

Gov. Newsom Proposes Expanding Film and TV Tax Credit to $1B

Share Copy link Facebook X Linkedin Bluesky Email...

04/11/2026

Netflix Deploys Beta AI Discover' Feature

Share Copy link Facebook X Linkedin Bluesky Email...

04/11/2026

MaxxKonnect Group Acquires FCCInfo.com from Cavell, Mertz & Associates

Share Copy link Facebook X Linkedin Bluesky Email...

04/11/2026

RTE mixes 2026 World Football Championship commentary wit...

RT combined Calrec's Type R system with its SMPTE ST 2110 network to rethink how it mixed commentary for the 2026 World Football Championship. Where six co...

04/11/2026

NAB Show New York 2026 Innovation

NAB Show New York 2026 Innovation David Kirk November 3, 2026 0 Comments Now in its 11th year, NAB Show New York was established as an East Coast vari...

04/11/2026

Cheddar Turns to Playbox Neo for Playout

Share Copy link Facebook X Linkedin Bluesky Email...

04/11/2026

Rethink: SRT Is De Facto' Standard Among Open Internet Transport Protocols

Share Copy link Facebook X Linkedin Bluesky Email...

04/11/2026

Bob Daniel Joins ASG as Storage and Workflow Solutions Ar...

Advanced Systems Group (ASG) has appointed Bob Daniel as Storage and Workflow Solutions Architect within the Enterprise Storage team. Daniel has over 30 years o...

04/11/2026

SES Achieves Optical Communications Milestone for Future meoSphere Network

Luxembourg, 4 November 2026 - SES, in collaboration with leading space technology partners, has successfully demonstrated a bi-directional optical communication...

04/11/2026

From Gold to Diamond: YouView Reaches Greenly's Highest Sustainability Certification

From Gold to Diamond: YouView Reaches Greenlys Highest Sustainability Certificat...

04/11/2026

Magyar Telekom maintains positive performance - Magyar Telekoms Q3 2026 results

Residential mobile data usage continues to grow significantly, and Magyar Telekom is expanding its network accordingly. Its customers can now access the company...

03/11/2026

Grass Valley Wins Tender to Support France Tlvisions' Move to IP Production for Franceinfo

Grass Valley has announced that France T l visions has completed the first phase...

03/11/2026

WELT TV and SES Extend Satellite Distribution Agreement in Germany

SES and WELT TV have renewed their partnership under a new multi-year agreement for satellite distribution in Germany. The agreement runs into the next decade a...

03/11/2026

Eutelsat OneWeb to Provide LEO Connectivity for SES's Multi-Orbit Finnair Service

Eutelsat's OneWeb low Earth orbit (LEO) network will provide connectivity as...

03/11/2026

CONMEBOL Renews GRUP MEDIAPRO Partnership Through 2030

CONMEBOL has renewed its agreement with GRUP MEDIAPRO, which will continue to run the CONMEBOL Hub's end-to-end operation through 2030. The Hub handles prod...

03/11/2026

Aggreko Returns as Official Temporary Power Partner for 2026 Las Vegas Grand Prix

Aggreko has returned as Official Temporary Power Partner for the FORMULA 1 HEINE...

03/11/2026

Gravity Media Debuts IP-Based Nova 110 OB Truck in Belgium

Gravity Media has deployed its fully IP-based OB truck, Nova 110, in Belgium for the first time. It made its operational debut supporting a UEFA Europa League m...

03/11/2026

NFL and TMRW Sports Unveil Premier Flag, Professional Flag Football League Launching Summer 2027

The NFL and TMRW Sports have unveiled Premier Flag, the brand identity for a new...

03/11/2026

Stephen Arnold Music Creates Atlanta Hip-Hop-Influenced Sonic Branding for Gray Media's Hawks Broadcasts

Stephen Arnold Music has developed the original musical theme and sonic branding...