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

04/09/2026

EVS, Matrox Partner on EBUs Dynamic Media Facility Initiative

Share Copy link Facebook X Linkedin Bluesky Email...

04/09/2026

TAG Video Systems Unveils TAG Blue

Share Copy link Facebook X Linkedin Bluesky Email...

04/09/2026

Orlando Magic and Gray Media Ink Full Season Broadcast Deal

Share Copy link Facebook X Linkedin Bluesky Email...

03/09/2026

Yospace releases new Ad Presentation solution, unlocking revenue opportunities with non-linear ad formats

Yospace will be at IBC from 11th - 14th September (booth 5.C78). For more inform...

03/09/2026

Creative Technology Group Announces Leadership Transition Effective January 2027

NEP Group has announced leadership changes at Creative Technology Group. Founder and CEO Graham Andrews will step away from day-to-day leadership at the end of ...

03/09/2026

NFL and TikTok Renew Multi-Year Partnership

The NFL and TikTok have announced a multi-year partnership renewal expanding the league's presence on the platform. NFL posts on TikTok increased more than ...

03/09/2026

Grass Valley Appoints Ronny Van Geel as Vice President, Cameras

Grass Valley has appointed Ronny Van Geel as Vice President, Cameras. Van Geel began his career in 1999 at Philips DVS and moved into product management in 2005...

03/09/2026

IBC 2026: Telestream to Preview Vantage Super Resolution

Telestream has announced Vantage Super Resolution, an AI-powered upscaling capability for the Vantage media workflow platform, developed in collaboration with N...

03/09/2026

IBC 2026: Solid State Logic TCA Tour

Solid State Logic (SSL) will debut the TCA Tour at IBC2026 (Hall 8, Stand 8.B45), a portable production system built from System T components in a desktop frame...

03/09/2026

IBC 2026: DPA Microphones Launches 6388 CORE+ Headset Microphone

DPA Microphones has announced the 6388 CORE Headset Microphone, making its debut at IBC2026 (Hall 8, Stand D60). The supercardioid headset features a physicall...

03/09/2026

IBC 2026: Qvest to Demonstrate Multi-Vendor Dynamic Media Facility Showcase

Qvest will present a multi-vendor Dynamic Media Facility (DMF) showcase at IBC2026 (Booth 10.C24), demonstrating how the EBU's DMF architecture can be imple...

03/09/2026

IBC 2026: Imagine Communications Debuts Magellan PanelFlex

Imagine Communications will showcase the Magellan PanelFlex control surface and other control portfolio updates at IBC2026 (Stand 1.B73, RAI Amsterdam, Septembe...

03/09/2026

IBC 2026: Bridge Technologies Launches Software-Based VB440 Deployment Option

Bridge Technologies will announce at IBC2026 (Booth 1.A71) that its VB440 production probe is now available as a software-based solution, deployable on commerci...

03/09/2026

Audio-Technica Launches BP350ST Mid-Side Stereo Microphone in Two Variants

Audio-Technica has unveiled the BP350ST MS (mid-side) microphone in two versions: the camera-mount BP350ST-UL and the boundary or gooseneck-mountable BP350ST-UB...

03/09/2026

IBC 2026: Jnger Audio flexAI Adds CastCompanion, 12G-SDI, NDI, and TVU MediaMesh Integration

Telos Alliance will introduce updates to the J nger Audio flexAI audio processin...

03/09/2026

DUNKMAN to Expand in 2027 with Team Competitions, Junior Division, and Global Qualifiers

DUNKMAN, the professional dunk league founded by Shaquille O'Neal in partner...

03/09/2026

Orlando Magic Tap DAZN as DTC Streaming Partner, Will Join OTA Distribution Plans for 2026-27 Season

Orlando's WRDQ TV 27, WFTV Channel 9 previously named over-the-air broadcast...

03/09/2026

EverPass Media Expands NFL Agreement with Netflix for Commercial Venues

EverPass Media has announced a multi-year commercial distribution agreement with Netflix, expanding on an existing partnership that has delivered NFL Christmas ...

03/09/2026

Yahoo Sports and Apple TV Partner on MLB and MLS Alternate Broadcasts

Yahoo Sports and Apple TV have announced a partnership to deliver alternate broadcasts of select Friday Night Baseball and MLS games on the Yahoo Sports website...

03/09/2026

BIG EAST's Scott Hecht on the Evolution of Campus Production and What Comes Next

With another academic year underway, college athletic departments across the cou...

03/09/2026

ESPN Debuts Revamped, Cutting-Edge Studio W in Bristol as New Home to NFL Live, College Football, and More

Facility becomes permanent home of NFL Live on Sept. 9; centerpiece studio for c...

03/09/2026

Anthony Marinelli launches Bass DNA course

Create musical synth bass sounds from scratch Anthony Marinelli Music have recently announced the launch of Bass DNA, a new online course that teaches music...

03/09/2026

IK Multimedia unveil the Tonex Board

Most powerful Tonex hardware to date IK Multimedia's latest release introduces their most advanced Tonex hardware unit to date, combining their AI Machi...

03/09/2026

Penteo Audio Plugins announce Penteo 8

Upmix & downmix software upgraded Penteo Audio Plugins have announced that the latest version of their powerful upmix and downmix software is now available....

03/09/2026

Young talents begin their training at SGL Carbon in Germany

With the start of the new apprenticeship year, young talent has once again begun their professional careers at SGL Carbon's sites in Germany. Recently, the ...

03/09/2026

Calrec advances EBU's Dynamic Media Facility vision at IBC 2026

With the industry increasingly embracing hybrid, software-defined production models, Calrec will preview a series of Argo and ImPulseV software enhancements at ...

03/09/2026

NAB Backs Most Proposed EAS Changes at FCC

Share Copy link Facebook X Linkedin Bluesky Email...

03/09/2026

TiVo Expands FAST Channels, AI Discovery with Latest OS Update

Share Copy link Facebook X Linkedin Bluesky Email...

03/09/2026

Eluvio Advances Content Fabric, AI at IBC 2026

Share Copy link Facebook X Linkedin Bluesky Email...

03/09/2026

Haivision Adds Bonded 5G Cellular Support to Makito ONE

Share Copy link Facebook X Linkedin Bluesky Email...

03/09/2026

Alex Pannell Joins Gravity Media as Chief Business Officer

Share Copy link Facebook X Linkedin Bluesky Email...

03/09/2026

AI-Media To Feature Multilingual AI Developments At IBC2026

Share Copy link Facebook X Linkedin Bluesky Email...

03/09/2026

Tuxera and ATTO collaborate to deliver blistering macOS n...

Recognizing the ever-increasing demands for media throughput in challenging environments like post-production, two leaders in network technology have worked tog...

03/09/2026

EVS and Matrox Video Join Forces to Accelerate Dynamic Me...

EVS, a leader in live video technology and production infrastructure solutions, and Matrox Video, a leader in software-defined media technology and IP-based vid...

03/09/2026

AJA Debuts OG-FiDO-4 openGear Four-Channel SDI/Fiber Conversion Cards

AJA Debuts OG-FiDO-4 openGear Four-Channel SDI/Fiber Conversion Cards Brie Clayton September 3, 2026 0 Comments New product family expands 12G-SDI and...

03/09/2026

Nice Touch launches V2 of its AI edit assistant for professional editors

Nice Touch launches V2 of its AI edit assistant for professional editors Brie Clayton September 3, 2026 0 Comments Built by two editors with twelve ye...

03/09/2026

Accedo and MediaKind Launch End-to-End Streaming Solution...

Accedo, a global provider of video streaming software and services, and MediaKind, a world-leading video technology company and the number one independent provi...

03/09/2026

14 Percent of live sports viewers have considered switchi...

International research from Big Blue Marble puts a consumer churn number against a technical failure, and sets out what streaming providers must fix before 2030...

03/09/2026

Broadpeak expands CDNaaS for streaming at scale with new...

High-performance points of presence power video streaming delivery to large audiences across Latin America with guaranteed quality of experience Broadpeak , a ...

03/09/2026

Dalia Delivers New Agentic Workflows Changing How Media W...

Dalet, a leading technology and service provider for media-rich organizations, will unveil the next evolution of Dalia at IBC2026 (7.A43), its media-aware agent...

03/09/2026

CGI showcases AI-assisted newsroom and radio workflows pa...

CGI (TSX: GIB.A) (NYSE: GIB), one of the world's largest independent IT and business consulting services firms, will showcase CGI OpenMedia Evolve and CGI d...

03/09/2026

LiveU Joins IBC Accelerator Smart Stories Consortium to D...

LiveU is participating in the IBC Accelerator Incubator 2026: Smart Stories The New Knowledge Architecture for Content Production, an industry-wide initiative...

03/09/2026

Christer Palsson brings global experience to Broadcast So...

Broadcast Solutions, a leading systems integrator and provider of innovative solutions for the broadcast and media industry, has taken another major step in its...

03/09/2026

Quortex brings AI and IP transition into focus at IBC 202...

Quortex today announced that it will showcase how it is accelerating innovation and the transition to IP at IBC 2026. The company will debut its newest intellig...

03/09/2026

Grass Valley Names Ronny Van Geel Vice President Of Cameras

Share Copy link Facebook X Linkedin Bluesky Email...

03/09/2026

VisualOn and EZDRM Enable Visualization of C2PA Provenanc...

The EZDRM approach to Revenue Security on streaming video can be visualized as a multi-dimensional set of solutions. A growing dimension of that approach is the...

03/09/2026

Kiloview Brings Hybrid AV-over-IP to Life at IBC 2026 wit...

From field capture to management, control and production, Kiloview will demonstrate one connected Hybrid AV-over-IP workflow including a complete 4RU producti...