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

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

03/02/2026

PGA TOUR, DraftKings, ESPN Expand Betcast To 12 More Events

Share Share by: Copy link Facebook X Linkedin Bluesky Email...

03/02/2026

IAB Launches Project Eidos To Modernize Ad, Marketing Measurement

Share Share by: Copy link Facebook X Linkedin Bluesky Email...

03/02/2026

NBCUniversal and Roku Launch the NBC Winter Olympics Experience

Share Share by: Copy link Facebook X Linkedin Bluesky Email...

03/02/2026

Berklee Alumni Recognized at the 2026 Grammy Awards

Berklee Alumni Recognized at the 2026 Grammy Awards Winners took home trophies in nine categories, including Best Traditional Pop Vocal Album and Songwriter o...

02/02/2026

SBS's High-Flying Drama The Airport Chaplain casts Hugo Weaving alongside The Pitt's breakout star Shabana Azeez

SBS's High-Flying Drama The Airport Chaplain casts Hugo Weaving alongside Th...

02/02/2026

CALL TO PARTICIPATE AT THE SERIES MANIA FORUM 2026

The National Film and Video Foundation (NFVF), in partnership with the French Institute of South Africa (IFAS), is calling for applications from experienced Sou...

02/02/2026

Inside the Avionics That Make Artemis II Possible: How L3Harris Units Drive the Space Launch System

Photo Credit: NASA. Space Launch System (SLS) rocket and Orion Spacecraft rollou...

02/02/2026

ESPNs deal for NFL Network Gets Regulatory Approval

Share Share by: Copy link Facebook X Linkedin Bluesky Email...

02/02/2026

Hewshott Entering New Era as Daniel Lee Transitions to G...

Hewshott, an industry leading global AV, IT, Theatre, and Acoustics consultancy firm has completed a global transition with current UK Managing Director, Daniel...

02/02/2026

Public Media Management Names LTN as Technology Partner f...

Public Media Management (PMM) today announced LTN as the technology partner for PMM Cloud, its new managed, cloud-based master control solution purpose-built fo...

02/02/2026

Big Academic Investments in Virtual Production Fuel Adoption

Share Share by: Copy link Facebook X Linkedin Bluesky Email...

02/02/2026

Audiences Can Expect Seamless Viewing From Milan-Cortina

Share Share by: Copy link Facebook X Linkedin Bluesky Email...

02/02/2026

NBC Olympics Will Take Audio to New Heights in Milan-Cortina

Share Share by: Copy link Facebook X Linkedin Bluesky Email...

02/02/2026

XR Acquires Telly Traffic to Bolster UK Advertising Opera...

XR, the leading platform powering advertising operations, today announced the acquisition of Telly Traffic, a UK-based business affairs specialist with nearly t...

02/02/2026

Big Blue Marble Becomes Launch Partner for the AWS Europe...

Big Blue Marble, a provider of broadcast-grade, cloud-native video solutions for broadcasters, service providers, and content owners, has become a launch partne...

02/02/2026

Mahindra launches XUV 7XO as Indias first vehicle with Dolby Vision and Dolby Atmos, redefining the future of in-car...

February 2 2026, 20:30 (PST) Mahindra launches XUV 7XO as Indias first vehicle ...

02/02/2026

Bergerac S2 teaser released, ahead of return to U and U&DRAMA in Spring

Teaser available to view HERE Damien Molony as Jim Bergerac Ahead of the hotly anticipated return of Bergerac to U and U&DRAMA in the Spring, a teaser has bee...

02/02/2026

Rohde & Schwarz reshapes mid-range market with new 44 GHz FPL spectrum analyzer and 40 MHz real-time analysis

Rohde & Schwarz reshapes mid-range market with new 44 GHz FPL spectrum analyzer ...

02/02/2026

Cesc Gay's New Film Premieres March 27 on Netflix

Back to All News Cesc Gays New Film Premieres March 27 on Netflix Entertainment 02 February 2026 GlobalSpain Link copied to clipboard Download the first i...

02/02/2026

DPA is proud to join the Audiotonix mix

In addition to DPA Microphones, the company will also be acquiring Wisycom and Austrian Audio. The acquisition is now being filed for regulatory approval and sh...

02/02/2026

Arvato Systems launches a flexible and standardized billing solution

Arvato Systems launches a flexible and standardized billing solution New SAP S/4HANA Utilities master system combines standardization, economies of scale, and...

31/01/2026

Spotify Celebrates the 2026 Best New Artist Nominees During a Star-Studded Party in L.A.

Spotify's annual Best New Artist celebration returned to Los Angeles last ni...

31/01/2026

US Navy Selects L3Harris Red Wolf for Precision Attack Strike Munition Program

The Navy's Air Test and Evaluation Squadron (HX) 21 launch a Long Range Attack Missile from an AH-1Z off coast of Virginia in late 2025. This demonstration ...

31/01/2026

creativespace 3 0 5 Simplifies Creative Workflows with In...

DigitalGlue, creator of the award-winning creative.space Platform, has announced the release of creative.space OS 3.0.5, the latest software update within the ...

31/01/2026

ES Broadcast Hire sends out kit for major February sporti...

ES Broadcast Hire, the long-established hire arm of ES Media Group, has spent the last few months busily preparing and sending out high-quality equipment for a ...

31/01/2026

ISE: Sony Electronics Launches BRAVIA Professional Displays BZ-P Series

Share Share by: Copy link Facebook X Linkedin Bluesky Email...

31/01/2026

Fox Sports Details FIFA World Cup 2026 Broadcast Schedule

Share Share by: Copy link Facebook X Linkedin Bluesky Email...

31/01/2026

ISE: LYNX Technik Debuts New 4-Channel 12G-SDI Fiber Converters

Share Share by: Copy link Facebook X Linkedin Bluesky Email...

31/01/2026

PBS Promotes Scott Nourse to Chief Technology Officer

Share Share by: Copy link Facebook X Linkedin Bluesky Email...

30/01/2026

2026 Sundance Film Festival Announces Award Winners

Top L-R: The Friend's House is Here, Josephine, The Lake, Bedford Park, Who Killed Alex Odeh? Second Row L-R: Take Me Home, American Pachuco: The Legend of...

30/01/2026

Dnyada her 14 kiiden biri Trk mzii dinliyor

Spotify, Haziran ay sonunda kadar stanbul'da yeni bir ofis a aca n ve T rkiye pazar n y netmek zere yeni bir atama ger ekle tirdi ini duyurdu. Bu kaps...

30/01/2026

Artemis II Wet Dress Rehearsal: Taking Things Into the Home Stretch

The Artemis II wet dress rehearsal will simulate the launch countdown, fully loading fuel and verifying systems ahead of the first SLS and Orion crewed flight....

30/01/2026

Copper Leaf Media Merges With Dimension PR

Share Share by: Copy link Facebook X Linkedin Bluesky Email...

30/01/2026

MXL: Aligning Broadcast Production With Software

Share Share by: Copy link Facebook X Linkedin Bluesky Email...

30/01/2026

Grass Valley and NETGEAR Partner to Accelerate Enterprise...

Grass Valley , the leading technology provider for live production solutions, and NETGEAR Inc. (NASDAQ: NTGR), a global leader in network solutions, today anno...

30/01/2026

tvONE Appoints Amit Singh as Regional Sales Manager for I...

tvONE, a leading video processor, signal distribution technology and media server developer, announces the expansion of Amit Singh's role to Regional Sales ...

30/01/2026

Mike Aiton Brings Stories to Life with NUGEN Audio

With a career that spans four decades across television, film and post-production, Freelance Sound Designer and Post-production Sound Mixer Mike Aiton has built...

30/01/2026

DPA Showcases its Complete Wireless Microphone Ecosystem...

DPA Microphones will feature its new, fully integrated wireless microphone ecosystem, designed to let audio professionals work faster, cleaner and with total co...

30/01/2026

Ventum Tech and Emergent Announce a Strategic Partnership...

As the Middle East continues to accelerate investment in next-generation media, broadcast, and immersive content technologies, Ventum Tech today announced a str...

30/01/2026

MRMC Broadcast to Highlight High-Precision Motion Control...

Mark Roberts Motion Control (MRMC), a Nikon company and global leader in robotic camera systems, today announced its participation at Integrated Systems Europe ...

30/01/2026

Peacock Hits 44 Million Subs, Lost $552 Million in Q4

Share Share by: Copy link Facebook X Linkedin Bluesky Email...

30/01/2026

ATSC Board Leadership Re-Elected For 2026

Share Share by: Copy link Facebook X Linkedin Bluesky Email...

30/01/2026

MRC Issues Final Digital Advertising Auction Transparency Standards

Share Share by: Copy link Facebook X Linkedin Bluesky Email...

30/01/2026

CBS Atlanta Launches New Weekday Morning News Show with AR/VR Set

Share Share by: Copy link Facebook X Linkedin Bluesky Email...

30/01/2026

Boston Conservatory at Berklee Hosts the National Opera Association's 2026 Conference

Boston Conservatory at Berklee Hosts the National Opera Association's 2026 C...

30/01/2026

Student Spotlight: Sriram Narayanan

Student Spotlight: Sriram Narayanan The classical pianist shares his experience growing up with a language disability and finding his voice through music. Ja...