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

19/11/2025

Popularity of Online Short-Form Content Moving Beyond Social Media

NEW YORK Short-form vertical video has exploded across platforms like TikTok, Instagram and YouTube, but a new survey commissioned by Media.net, a provider of c...

19/11/2025

YES Network, CAMB.AI Strike AI Translation Partnership

NEW YORK YES Network, the regional sports network home of the New York Yankees and Brooklyn Nets, and CAMB.AI have struck a partnership they said will leverage ...

19/11/2025

FCC Releases New Filing Deadlines

WASHINGTON The Federal Communications Commission has issued detailed guidance on filings that were disrupted by the government shutdown. While many of those fil...

19/11/2025

NFL's Popularity Advances TV Seasonal Viewership Growth

NEW YORK The popularity of NFL games is largely responsible for continued seasonal momentum in TV viewership into October (measured Sept. 29-Oct. 26), according...

19/11/2025

MyFree DirecTV Adds Seven New Channels

DirecTV has announced that its MyFree DirecTV streaming service has added seven new channels. Those include four sports services, NBA FAST, Red Bull TV, DAZN Ri...

19/11/2025

MRMC's Flair Bridge Simplifies Robot Control Across Any Platform

SURREY, U.K. Mark Roberts Motion Control (MRMC) has launched Flair Bridge, a compact device that transforms how operators control the company's motion-contr...

19/11/2025

FCC Sets Deadlines for 2022 Quadrennial Review

WASHINGTON The Federal Communications Commission, which is continuing to rapidly ramp up its operations after the end of the federal government shutdown, has se...

19/11/2025

Nexstar Urges FCC to Waive Ownership Rules, Quickly Approve of Tegna Acquisition

IRVING, Texas Nexstar Media Group and Tegna filed applications on Nov. 18 with the Federal Communications Commission (FCC) seeking its consent to transfer broad...

19/11/2025

November 18, 2025

Scripps Research scientists receive $1.1 million to advance AI modeling for HIV vaccine development New AI system helps scientists rapidly pinpoint the most pro...

18/11/2025

AGILE: Securing the Future of Independent Journalism

Independent media across Central America are operating under intensifying financial pressure, yet there is a clear appetite for models that can sustain both ind...

18/11/2025

NBA Debuts New Comms Infrastructure and Systems for Referees

NBA Debuts New Comms Infrastructure and Systems for RefereesTwo-phase rollout is intended to improve game flow, enhance officiating accuracyBy Dan Daley, Audio ...

18/11/2025

Platinum White Paper: How Aggreko Delivers Certainty for Broadcasters on the World Stage

Platinum White Paper: How Aggreko Delivers Certainty For Broadcasters On The Wor...

18/11/2025

Kiswe Extends DTC Products With Kiswe Core Cloud-Based Tool for Distributing Content to Any Platform

Kiswe Extends DTC Products With Kiswe Core Cloud-Based Tool for Distributing Con...

18/11/2025

Spanish Basketball Federation Partners with ScorePlay to Power Digital Transformation

Spanish Basketball Federation partners with ScorePlay to power digital transform...

18/11/2025

HBS Selects BBright Encoders and Decoders to Connect ST 2110 Live Production Workflows to the Cloud via SRT

HBS selects BBright encoders and decoders to connect ST 2110 live production wor...

18/11/2025

Ashes to Ashes: Inside TNT Sports' Hybrid and Maverick' Production Plan for Coverage of Cricket's Oldest Rivalry

Ashes to Ashes: Inside TNT Sports' hybrid and maverick' production plan...

18/11/2025

SVG All-Stars: Mimi Fotopoulos, Director, Talent and Production Operations, Tennis Channel

SVG All-Stars: Mimi Fotopoulos, Director, Talent and Production Operations, Tenn...

18/11/2025

Sports and Entertainment Convergence: Productions Share Tech, Infrastructure

SVG LIVE! Conference Explores the Tech Side of Sports and Entertainment ConvergenceLive sports and music productions increasingly share gear and infrastructureB...

18/11/2025

LPGA Ups Its Production Game in 2026 With 50% More Cameras, SSMO's & Drones, and Additional Mics

LPGA Ups Its Production Game in 2026 With 50% More Cameras, SSMO's & Drones,...

18/11/2025

ESPN's Dunk the Halls Real-Time Animated NBA Game Set to Return for Christmas Day

ESPN's Dunk the Halls Real-Time Animated NBA Game Set to Return for Christma...

18/11/2025

Get a Sneak Peek at the BAPE x SPOTIFY x SYNA by Central Cee Capsule Collection

Earlier this year, we announced the BAPE x SPOTIFY x SYNA by Central Cee (aka Cench) capsule collection, a collaboration that blends sound, style, and street c...

18/11/2025

Spotify Expands Audiobook Access for Premium Subscribers in Five More European Countries

Our mission to make Spotify the ultimate home for all things audio continues. St...

18/11/2025

SGL Carbon and Linkping University inaugurate advanced laboratory for next-generation graphite coatings

SGL Carbon and the renowned Link ping University inaugurated an advanced coating...

18/11/2025

L3Harris Unveils Sovereign Software Router for Australia

CANBERRA, Australia, Nov. 18, 2025 - L3Harris Technologies (NYSE: LHX) has launched a new, next-generation software device called NETCASTER - the NETwork Contr...

18/11/2025

L3Harris and EDGE Group to Collaborate on Defense Technology Programs in UAE

Pictured are L3Harris ISR President Jason Lambert and Waleid Al Mesmari, EDGE President-Space & Cyber Technologies, signing with Carlo Igniades, L3Harris Region...

18/11/2025

The Gauge: Mexico October 2025

During October, streaming's share of TV viewing in Mexico settled at 23.7%, a marginal shift of -0.8 share points from the previous month. Disclaimer: YUMI...

18/11/2025

Nielsen's The Gauge: NFL Viewership Underscores How Sports Are Redefining Audience Behavior

Broadcast Builds On Lead Over Cable, Driven by Football and Drama Programming Ga...

18/11/2025

Scripps Sends Mixed Messages in Response to Possible Sinclair Deal

CINCINNATI E.W. Scripps has issued a statement responding to news that Sinclair has acquired about 8.2% of the outstanding class A (nonvoting) shares in the com...

18/11/2025

Tegna Shareholders Approve Nexstar Merger

TYSONS, Va. Tegna has announced that its shareholders have voted overwhelmingly to approve the proposed $6.2 billion merger with Nexstar Media Group....

18/11/2025

Popularity of Online Short Form Content Moving Beyond Social Media

NEW YORK Short-form vertical video has exploded across platforms like TikTok, Instagram, and YouTube, but a new survey commissioned by Media.net, a provider of ...

18/11/2025

DJI Introduces Osmo Action 6 Camera With Variable Aperture

SHENZHEN, China DJI today unveiled the Osmo Action 6, an all-in-one action camera featuring a variable aperture with a range from f/2.0 to f/4.0, the company...

18/11/2025

Veteran Production Sound Mixer Tony Johnson Captures the...

In the high-stakes world of film sound, there's no room for second chances. When an actor whispers a line with the weight of an entire scene, or lets loose ...

18/11/2025

Sonnet Announces Black Friday Sale on Select Products

Sonnet Technologies is having a sale on a selection of popular products, including a Thunderbolt 4 dock, an eGPU chassis, SATA and M.2 SSD PCIe cards, and mor...

18/11/2025

4Fangs Launches Horror and Suspense FAST Channel on Amagi...

Amagi, a cloud-based SaaS technology solutions provider for broadcast and streaming TV, today announced the launch of 4Fangs, a new Free Ad-Supported Streaming ...

18/11/2025

WIM 8th Annual Holiday Toast to Honor Mandy Walker ASC AM...

Women In Media (WiM) announces its honorees for the 2025 Holiday Toast. The annual celebration recognizes legendary creatives whose work uplifts and inspires th...

18/11/2025

Unforgettable Cinematography of Adam Newport-Berra with Z...

Cinematographer Adam Newport-Berra ( Good Fortune , The Bear , Euphoria ) emerged from the 2025 Emmy season with a statuette celebrating his Outstanding Cinem...

18/11/2025

Thomas Secures - Friends and Lovers - Moving Lights Usin...

Atlanta-based gaffer and lighting programmer Quinton Thomas brings the same practical, problem-solving instinct of a board op to every set he walks onto. With a...

18/11/2025

Suitelife Systems Appoints Veterans Charles Sotto and Reb...

Suitelife Systems, a division of NFB Consulting Group, headquartered in California, has announced the appointments of Charles Sotto as Director of Media Technol...

18/11/2025

Scott Kramer Turns to NUGEN Audio to Bridge Creativity an...

Sound Director and Audio Product Manager Scott Kramer has built a career around shaping stories through audio, guiding projects across film, television and stre...

18/11/2025

iWedia Strengthens Long-Term Operator Partnerships and Cu...

iWedia, a global leader in software solutions for connected TV devices, announces its participation at the APAC TV Summit 2025, taking place November 18 20 in B...

18/11/2025

MRMC Introduces Flair Bridge - Simplifying Robot Control...

Mark Roberts Motion Control (MRMC) is proud to announce the launch of Flair Bridge, a groundbreaking solution that redefines how operators control MRMC's in...

18/11/2025

LiveU Delivers a Solid Connection to Groovy Gecko for Dra...

Over the summer, world famous musician and rapper Drake continued the rollout of his new album Iceman, by live streaming the second and third episodes of a seri...

18/11/2025

Oregon Municipal Channel Upgrades Visuals With Telycam PTZs

KEIZER, Ore. Municipal broadcaster Keizer City Television, K23 TV, has deployed four Telycam PTZ cameras to upgrade the visual quality of its live meeting cover...

18/11/2025

Peacock to Stream EA Sports Madden NFL Cast on Thanksgiving

STAMFORD, Conn. NBC Sports and Peacock have announced that they are working for the second consecutive year with the National Football League, EA Sports and Gen...

18/11/2025

Research: Netflix Boosts Viewing With Familiar Kids Franchises

LONDON A new Ampere Analysis study finds that familiar franchises are successfully driving kids' TV consumption on Netflix and that the streamers big bet on...

18/11/2025

Content Discovery Still a Challenge for Streamers: Hub Study

PORTSMOUTH, N.H. TV viewers continue to find it challenging to find relevant programs in the fragmented universe of streaming content, according to new findings...

18/11/2025

20 Bob Dylan Songs That Reflect a Legacy of A-Changin

20 Bob Dylan Songs That Reflect a Legacy of A-Changin On the heels of Bob Dylan receiving a Berklee honorary doctorate, we take stock of one of the most singu...

18/11/2025

Powering AI Superfactories, NVIDIA and Microsoft Integrate Latest Technologies for Inference, Cybersecurity, Physical AI

Timed with the Microsoft Ignite conference running this week, NVIDIA is expandin...