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

02/12/2026

International Sports Broadcasting Inks Equity Deal with Zoom Communication

ZOOM Communications Private Limited (ZOOM) announces a significant strategic equity investment in International Sports Broadcasting Company (ISB), Spain. This i...

02/12/2026

YouTube LiveCon 2026 To Explore the Future of Live Streaming in New York City on Dec. 8-9

The summit connects broadcasters and technology providers directly with YouTube&...

02/12/2026

SVG Students To Watch: Corey Townsend, Texas Christian University

From directing TCU baseball broadcasts on ESPN+ to working major events at AT&T Stadium, this senior from Texas is embracing every opportunity to grow as a live...

02/12/2026

Beyond the Conference Network: Big 12 Builds Its Sports-Media Future With Production Partnerships

Collaborations with BYUtv, JWP Productions, and member institutions fuel enhance...

02/12/2026

The Crow Hill Company release GUM

Ambitious project inspired by General MIDI The Crow Hill Company's latest release marks the start of a bold project that aims to culminate in the ultima...

02/12/2026

Tarn Audio reveal Wavefile & Overview

Two new handy Mac mix-check Apps announced Tarn Audio is the latest venture of Tim Lloyd, a developer who spent 13 years creating pro-audio tools for the li...

02/12/2026

Q Up Arts MusicSketch 4.0 now available

Free songwriting & notation iOS App upgraded Q Up Arts have just launched the latest version of their free songwriting and notation App for the iPhone and i...

02/12/2026

Big stories. Big moments. A standout year for SBS.

Big stories. Big moments. A standout year for SBS. 2 December, 2026 Media releases SBS reached an average of 13.8 million Australians each month - up 8% Yo...

02/12/2026

Rohde & Schwarz and Altair Semiconductor advance 3GPP Rel 18 eRedCap readiness with verification of first test cases

Rohde & Schwarz and Altair Semiconductor advance 3GPP Rel 18 eRedCap readiness w...

02/12/2026

AgileTV to take control of TV complexity at IBC2026, helping operators focus on growth

The company will showcase how its end-to-end TV platform unifies experiences, op...

02/12/2026

AgileTV to showcase TV Solutions for Hotels & Hospitals at IBC2026, helping operators and telcos unlock new growth opportunities beyond traditional TV

The company will present its vision for the future of TV operations through four strategic pillars, with TV Solutions for Hotels & Hospitals taking center stage...

02/12/2026

Colorfront Extends Its Industry-Leading Color Science to RED Connect

December 2, 2026 Colorfront has partnered with RED DIGITAL CINEMA to integrate native Colorfront color management into RED Connect, extending its renowned col...

02/12/2026

Nielsen Scales Ad Intel AI Internationally, Unifying Competitive Media Intelligence Across 95+ Markets

New enhancement helps multi-market brands and agencies turn fragmented ad data i...

02/12/2026

ESPN, Disney Unveil Super Bowl LXI Plans

Share {alert(Link copied)}).catch(err => {console.error(Failed to copy: , err)}) data-platform=copy_link data-action= class=font-ui-heading py-2 text-sm tex...

02/12/2026

Pliant Technologies MicroCom XR Sets a New Standard for M...

Geronimo Creek Inc., a leading lighting and grip company specializing in fast moving, location based production, has adopted Pliant Technologies' MicroCom X...

02/12/2026

Miris and Evercast announce high-fidelity 3D asset streaming in Presenter

Miris and Evercast announce high-fidelity 3D asset streaming in Presenter Brie Clayton December 2, 2026 0 Comments Miris, a 3D streaming infrastructur...

02/12/2026

Lawrence Virtual Studio Relies on Blackmagic Design

Lawrence Virtual Studio Relies on Blackmagic Design Brie Clayton December 2, 2026 0 Comments Digital film cameras and DaVinci Resolve Studio bring fle...

02/12/2026

Riedel, ARRI Announce New Leadership for Americas

Share {alert(Link copied)}).catch(err => {console.error(Failed to copy: , err)}) data-platform=copy_link data-action= class=font-ui-heading py-2 text-sm tex...

02/12/2026

Circle Studios and ionoco announce global partnership com...

Circle Studios and ionoco today announced a global partnership to develop and deliver dynamic, interactive and gamified experiences for clients around the world...

02/12/2026

LiveU Technology Helps Students Bridge the Broadcast and...

Media postgraduates at Complutense University in Madrid will once again gain hands-on experience with professional live broadcast and Pro AV technology this Dec...

02/12/2026

Blue Lucy Partners with QMPLY to Bring Automated Complian...

Blue Lucy, the workflow orchestration and integration platform for broadcasters, rights owners and production companies, today announced a new integration conne...

02/12/2026

Inside the Palais Garnier with URSA Cine Immersive

Inside the Palais Garnier with URSA Cine Immersive Brie Clayton December 1, 2026 0 Comments INIT Lab produces an extended run Apple Immersive Video ex...

02/12/2026

Berklee Music and Health Institute to Lead National Coalition Advancing Musics Role in Well-Being

Berklee Music and Health Institute to Lead National Coalition Advancing Musics R...

02/12/2026

Entravision Settles with FCC Over Kidvid Violations

Share {alert(Link copied)}).catch(err => {console.error(Failed to copy: , err)}) data-platform=copy_link data-action= class=font-ui-heading py-2 text-sm tex...

02/12/2026

Hearst Names Arleda Hackett President and GM of KSBW Monterey-Salinas

Share {alert(Link copied)}).catch(err => {console.error(Failed to copy: , err)}) data-platform=copy_link data-action= class=font-ui-heading py-2 text-sm tex...

02/12/2026

Courtney Gross Joins Television Academy Foundation as Senior Director, Development

Share {alert(Link copied)}).catch(err => {console.error(Failed to copy: , er...

02/12/2026

QuickLink Introduces 2 All-in-One Production Platforms

Share {alert(Link copied)}).catch(err => {console.error(Failed to copy: , err)}) data-platform=copy_link data-action= class=font-ui-heading py-2 text-sm tex...

02/12/2026

BMG Completes Live Replay Upgrade

Share {alert(Link copied)}).catch(err => {console.error(Failed to copy: , err)}) data-platform=copy_link data-action= class=font-ui-heading py-2 text-sm tex...

02/12/2026

Geronimo Creek Adopts Pliant's MicroCom XR Wireless Intercom

Share {alert(Link copied)}).catch(err => {console.error(Failed to copy: , err)}) data-platform=copy_link data-action= class=font-ui-heading py-2 text-sm tex...

02/12/2026

Miris and Evercast announce high-fidelity 3D asset stream...

Miris, a 3D streaming infrastructure provider, and Evercast, a leading provider of real-time media review tools, today announced the beta of an Evercast Present...

02/12/2026

QuickLink Launches StudioPro Ascent and StudioPro Apex Ex...

QuickLink, the leading provider of multi-camera video productions and remote contribution solutions, announces the launch of StudioPro Ascent and StudioPro Ap...

02/12/2026

Turn Your Radio Up! Omnia XII Is Now Shipping

Turn Your Radio Up! Omnia XII Is Now Shipping Search Cleveland, Ohio (December 2, 2026) - Telos Alliance , trusted global leader in broadcast audio for mor...

02/12/2026

Dynamo celebrates Houdinis legacy in new series Dynamo Vs Houdini, bringing magic to Sky on 20 December

Wednesday 2 December 2026 Dynamo celebrates Houdini's legacy in new series ...

02/12/2026

UNIDO and IEC strengthen partnership to advance Quality Infrastructure and sustainable industry

-- As technological change accelerates, the world needs common, robust founda...

02/12/2026

It's about to get messy with new RT KIDS exploding cake show Cca Cca Boom Boom hosted by Tony Cantwell and Meg Reilly

Create, Decorate, Boom! It's about to get messy with new RT KIDS explodin...

02/12/2026

Food conservationist Max Jones is on a mission to rediscover our traditional food heritage in new RT programme

The Last of It airs on Thursday 10 December on RT One and RT Player Cork bas...

02/12/2026

Christmas Crackers on RT: Can't Wait

Settle in for Documentaries, Sport, Entertainment and more Festivities begin as Christmas kicks off on RT with The Late Late Toy Show, a packed weekend of liv...

02/12/2026

RT Supporting the Arts is supporting 30 cultural events nationwide this December

RT Supporting the Arts is proudly rounding off the year with a vibrant programme of events and exhibitions celebrating creativity across theatre, opera, film, ...

01/12/2026

William Kamau wins Young Journalist Award 2026

William Kamau, a journalist with the investigative media house Africa Uncensored in Nairobi, has been named Thomson Foundation Young Journalist of the Year 2026...

01/12/2026

Gravity Media Acquires MOOV to Expand Broadcast Graphics and Virtual Production Capabilities

Gravity Media has acquired MOOV, a UK broadcast graphics and virtual production ...

01/12/2026

PanMetro and Alliance Broadband Launch IPTV and Hybrid TV Platform with Ateme and CAASTV

Ateme and CAASTV have announced that PanMetro (Pan Metro Convergence) and Allian...

01/12/2026

CP Communications Supports Live With Kelly & Mark in Clearwater Beach

CP Communications provided broadcast engineering and production support for Live With Kelly & Mark in Clearwater Beach, FL, Nov. 16-17. A 10-person crew led by...

01/12/2026

Riedel DIVA+ Connects Linzer Klangwolke with Easy5G

Riedel Communications supported the Klangwolke festival in Linz with a DIVA+ infrastructure. On behalf of Linzer Veranstaltungsgesellschaft (LIVA), Riedel Manag...

01/12/2026

TF1 Partners with Ateme to Power TF1+ Across Screens

TF1, France's private broadcaster, has chosen Ateme as its technology partner for TF1 . Ateme supports the service on TF1's own apps, connected TVs, ope...

01/12/2026

AIMS Announces Winter 2027 IPMX Product Testing and Certification Event

The Alliance for IP Media Solutions (AIMS), together with the Video Services Forum (VSF) and the European Broadcasting Union (EBU), has announced the next IPMX ...

01/12/2026

Clark Wire & Cable Develops Custom Cable for Broadcast Infrastructure at New Highmark Stadium

Clark Wire & Cable supplied broadcast infrastructure cable, panels and SMPTE com...

01/12/2026

2026 Sports Broadcasting Hall of Fame: Bucky Gunts, Treasured Director, Mentor, and Olympics Storyteller

Over the past three decades, no sports entity has set a higher bar for storytell...

01/12/2026

SVG Sit-Down: MASV's Gene Villeneuve on How Gameday Speeds Transfer of Media From Away Venues to Home Base

Sports media has become one of the few reliable growth areas in an otherwise slu...

01/12/2026

ESPN Details Massive Santa Monica Beach Studio Operation for Super Bowl LXI

Studio 61 will feature four production sets, more than 30 cameras, aerial systems, AR, and nearly 100 hours of live programming during Super Bowl week...