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

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

02/05/2026

Dalet Flex LTS Delivers Smarter Search, Faster Editing, and an AI-Ready Foundation for Modern Media

Dalet, a leading technology and service provider for media-rich organizations, t...

01/05/2026

NBCUniversal's Peacock to Be First Streamer to Integrate Dolby's Full Suite of Premium Picture and Sound Innovations

January 5 2026, 18:30 (PST) NBCUniversal's Peacock to Be First Streamer to ...

01/04/2026

DOLBY AND DOUYIN EMPOWER THE NEXT GENERATON OF CREATORS WITH DOLBY VISION

January 4 2026, 18:00 (PST) DOLBY AND DOUYIN EMPOWER THE NEXT GENERATON OF CREATORS WITH DOLBY VISION Douyin Users Can Now Create And Share Videos With Stun...

28/03/2026

Fubo Inks Deals for More Baseball RSNs

Share Copy link Facebook X Linkedin Bluesky Email...

27/03/2026

SVG GameDay, Ep. 9: Chicago Cubs' Chris Simonson - Flying the W at Wrigley Field

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

27/03/2026

Comcast Business Powers 2026 THE PLAYERS Championship Network and Broadcast Infrastructure

Comcast Business deployed network infrastructure for the 2026 PLAYERS Championsh...

27/03/2026

CS live Equips New OB Van With Riedel MediorNet, hi Control System, and Artist Intercom

Czech production company CS live has equipped its newest outside broadcast van w...

27/03/2026

Edith Cowan University Installs Lawo VSM, HOME, and mc36 in New Broadcast Facility

Edith Cowan University (ECU) in Perth, Western Australia has developed new broad...

27/03/2026

Deltatre Appoints Marc Watson as CEO; Andrea Marini Transitions to Deputy Chairman

Deltatre has announced that CEO Andrea Marini will step down after five years in...

27/03/2026

DAZN to Launch Inflight and Onboard Live Sports Service in 2027

DAZN has announced plans to launch DAZN Inflight, a live sports service for airline and maritime passengers, slated for 2027. Aviv Giladi, President of DAZN Par...

27/03/2026

Grass Valley and NVP Deploy Camera Systems for LALIGA Broadcast Production

Grass Valley has announced the completion of a live production deployment with NVP, a European media company specializing in live sports production, for LALIGA ...

27/03/2026

The Masters, Prime Video Will Debut Inside Amen Corner' Stat-Enhanced Viewing Experience

The Masters and Prime Video will debut Inside Amen Corner, a dedicated feed that...

27/03/2026

ESPN and World Series of Poker Reach Multi-Year Agreement

ESPN and the World Series of Poker (WSOP) have reached a multi-year agreement to bring the WSOP Main Event back to ESPN platforms. Coverage will include a three...

27/03/2026

USSI Global Opens Media Transport Solutions Lab Ahead of C-Band Transition

USSI Global has opened its Media Transport Solutions Lab on its Melbourne campus. The engineering center provides a platform-agnostic environment for testing al...

27/03/2026

UFL Names Sportable Official Connected Ball and Player Tracking Partner

The United Football League (UFL) has named Sportable its Official Connected Ball and Player Tracking Partner. Sportable's connected football and wearable pl...

27/03/2026

Atlanta Braves and Fubo Reach Multiyear Distribution Agreement for BravesVision

The Atlanta Braves and FuboTV have announced a multiyear distribution agreement to carry BravesVision on Fubo's live TV streaming platform beginning Opening...

27/03/2026

As UFL Structure Evolves, League Boosts Broadcast Infrastructure at New Home Stadiums

Besides restructuring for Season 3, the league worked with FOX and ESPN over the...

27/03/2026

Atlanta Braves and DIRECTV Reach Multiyear Distribution Agreement for BravesVision

The Atlanta Braves open their 2026 MLB season tonight against the Kansas City Ro...

27/03/2026

New Venues, New Tech: How FOX Sports, ESPN Are Reinventing Their UFL Broadcasts for Year 3

With new teams and new venues to adapt to, the spring-football league's part...

27/03/2026

Give Me the Backstory: Get to Know Grace Glowicki, the Filmmaker Behind Dead Lover

By Lucy Spicer One of the most exciting things about the Sundance Film Festival...

27/03/2026

GIK Acoustics expand Bass Trap Panel range

New Classic, Amplitude & FlexRange units introduced GIK Acoustics have just introduced a trio of new bass trap designs that bring improved low-end absorptio...

27/03/2026

Sonarworks release SoundID Tools app

Offers personalised Dolby Atmos headphone monitoring Sonarworks have put their calibration expertise to work on a new mobile app that allows users to create...

27/03/2026

NITV to broadcast farewell to Rhoda Roberts AO with special coverage and week-long tribute

NITV to broadcast farewell to Rhoda Roberts AO with special coverage and week-lo...

27/03/2026

FCC Opposes Emergency Motion to Stay Nexstar/Tegna Merger

Share Copy link Facebook X Linkedin Bluesky Email...

27/03/2026

NAB Pans Netflix's Coverage of MLB Opening Day

Share Copy link Facebook X Linkedin Bluesky Email...

27/03/2026

2026 NAB Show Exhibitor Insight: Netgear

Share Copy link Facebook X Linkedin Bluesky Email...

27/03/2026

Marshall Electronics Showcases New Feature-Rich CV320 and CV520 IP and 3G-SDI POV Cameras at NAB 2026

Marshall Electronics Showcases New Feature-Rich CV320 and CV520 IP and 3G-SDI PO...

27/03/2026

Sony Electronics Inc. Elevates Professional Video Workflows with Powerful Updates to Monitor & Control and Catalyst Tools

Sony Electronics Inc. Elevates Professional Video Workflows with Powerful Update...

27/03/2026

GatesAir Extends AirWatch365 Managed Service with Edge Gateway Site Appliance

GatesAir Extends AirWatch365 Managed Service with Edge Gateway Site Appliance Brie Clayton March 27, 2026 0 Comments NAB marks global launch of servic...

27/03/2026

GatesAir Expands AirWatch365 Managed Service

Share Copy link Facebook X Linkedin Bluesky Email...

27/03/2026

Dejero, Eutelsat, Others to Offer 'Field to Air' Demo at NAB Show

Share Copy link Facebook X Linkedin Bluesky Email...

27/03/2026

Global NextGen TV Takes Center Stage at 2026 NAB Show

Share Copy link Facebook X Linkedin Bluesky Email...

27/03/2026

USSI Global Opens Media Transport Solutions Lab

Share Copy link Facebook X Linkedin Bluesky Email...

27/03/2026

Net Insight Elevates Nimbra Edge to Govern Live Media Sys...

At NAB Show 2026, Net Insight will showcase the next evolution of Nimbra Edge, its orchestration and control layer designed to manage live media services across...

27/03/2026

Harmonic Delivers Winning Live Sports Streaming Innovatio...

Harmonic (NASDAQ: HLIT) today announced powerful new innovations that further elevate the company's sports streaming solution. The advanced capabilities enh...

27/03/2026

Bitmovin s Player Web X Expands with Performance First Ad...

Bitmovin, the leading provider of video streaming solutions, today announced significant new capabilities for Player Web X, its next-generation web video player...

27/03/2026

CS live Builds Future Ready OB Van With Riedel MediorNet...

Riedel Communications today announced that Czech-based production company CS live has equipped its newest outside broadcast (OB) van with an integrated Riedel i...

27/03/2026

MPTS 2026 Unveils First Wave of Speakers Featuring BBC Sk...

130 Industry Experts Confirmed as Show Celebrates its 10th Anniversary MPTS, the UK's largest and most influential event for the media, production and tech...

27/03/2026

Grass Valley and NVP Elevate LALIGA Broadcast Production...

Grass Valley today announced the successful completion of a major live production deployment with NVP, a leading European media company specializing in live spo...

27/03/2026

Appear Business Momentum Drives Leadership in Live Produc...

Showcases resilient solutions for satellite-to-IP migration, REMI and hybrid live production Appear ASA (Appear, OSE:APR), a global leader in live production t...

27/03/2026

Lightware MX2 delivers rock-solid 4K60 HDMI 10-bit signal...

San Francisco, California, March 2026 - Microsoft Ignite, a major annual conference hosted by Microsoft for developers, IT professionals, partners and business ...

27/03/2026

Clear-Coms EQUIP Wireless System Keeps Youth With A Missi...

Clear-Com is proud to highlight its support for worship teams through professional communication solutions, with the deployment of its EQUIP wireless system a...

27/03/2026

Orban Collaborates with Sage on Virtualized EAS Technology Demo

Orban Collaborates with Sage on Virtualized EAS Technology Demo Brie Clayton March 26, 2026 0 Comments Sage Alerting Systems (SAS), in cooperation wit...

27/03/2026

Berklee Alums Bring GIANT to Broadway

Berklee Alums Bring GIANT to Broadway Brian and Dayna Lee BM '13 met and fell in love at Berklee, and now their production companys first Broadway debut i...

27/03/2026

RT is Supporting 20 Arts and Cultural Events all over Ireland this April

RT Supporting the Arts RT is Supporting 20 Arts and Cultural Events all over Ireland this April RT is proud to support an exciting month of arts and cul...

27/03/2026

Average of 1.37 million viewers watched Irish World Cup heartbreak on RT2

Average of 1.37 million viewers watched Irish World Cup heartbreak on RT 2 Over one million streams on RT Player Highest number of streams for any single eve...