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

21/11/2025

Platinum White Paper: Appear Shares Why Media Exchange Is the Missing Link in Software-Defined Live Production

Platinum White Paper: Appear Shares Why Media Exchange Is the Missing Link in So...

21/11/2025

NWSL Championship 2025: CBS Sports To Deploy Two-Point FlyCam for Match Coverage at PayPal Park

NWSL Championship 2025: CBS Sports To Deploy Two-Point FlyCam for Match Coverage...

21/11/2025

NWSL Caps 2025 Season With Awards Show, Skills Challenge Productions

NWSL Caps 2025 Season With Awards Show, Skills Challenge ProductionsA team of 70 is on the ground in California to produce both eventsBy Mark J Burns, SVG Contr...

21/11/2025

USL and NEP Ready for Largest USL Championship Final Production Ever

USL and NEP Ready for Largest USL Championship Final Production EverThe broadcast from Tulsa, OK, will air CBS and TUDN on Saturday at 12 p.m. ETBy Jason Dachma...

21/11/2025

With Two New Teams, PWHL Boosts Production Workforce and Central Review for Season 3

With Two New Teams, PWHL Boosts Production Workforce and Central Review for Seas...

21/11/2025

Dinner and a Movie: Jared Lank on Powwow Highway and Luskinikn

Jared Lank and his mother in the '90s...

21/11/2025

Explore the Lands of Oz on Spotify With This Exclusive Wicked' Experience

Fans have been counting down the days until the final theatrical chapter of Wicked is revealed. To celebrate the highly anticipated release of Wicked: For Good ...

21/11/2025

Spotify House Seoul Delivered Unforgettable Performances From Central Cee, The Kid LAROI, Jay Park, ZICO, GroovyRoom, and More

Last week, Spotify turned up the volume in Seoul with the return of Spotify Hous...

21/11/2025

Training success at SGL Carbon in Meitingen

Wiesbaden, November 21, 2025. The SGL Carbon site in Meitingen has reason to celebrate as one of its trainees received a special award. Elias Stemmer was honore...

21/11/2025

L3Harris Recognizes Employee Achievements with LHX Excellence Awards

MELBOURNE, Fla., Nov. 21, 2025 - L3Harris Technologies (NYSE: LHX) has announced this year's LHX Excellence Awards, the company's most prestigious recog...

21/11/2025

FCC Proposes Upper C-Band Rules for 2027 Auction

WASHINGTON The Federal Communications Commission by a 3-0 vote opened a notice of proposed rulemaking (NPRM) to advance Congress's mandate to clear a minimu...

21/11/2025

FCC Votes to Clear at Least 100MHz of Upper C-Band Spectrum

WASHINGTON The Federal Communications Commission by a 3-0 vote adopted a Notice of Proposed Rulemaking (NPRM) to advance Congress's mandate to clear a minim...

21/11/2025

Spectrum Expands 4K Content to Apple TV 4K and Roku Devices

STAMFORD, Conn. Charter's Spectrum has expanded the devices that can offer 4K content on the Spectrum TV app to compatible Apple TV 4K and Roku devices....

21/11/2025

Study: Salaries in Content, Connectivity Industries Continue To Grow

NAPERVILLE, Ill. Media industry employers are continuing their multiyear trend of increasing salaries for all worker segments but lag general industry raises, s...

21/11/2025

NAB Opens Nominations for 2026 Technology Awards

WASHINGTON The National Association of Broadcasters said it is accepting nominations for the 2026 NAB Technology Awards, honors that recognize excellence in bro...

21/11/2025

AAT Introduces Automated RF Line Analysis

American Amplifier Technologies has released a vector network analysis module....

21/11/2025

The Best Movie Musicals on Every Streaming Platform

The Best Movie Musicals on Every Streaming Platform From Wicked to The Sound of Music, heres where to stream all the classic movie musicals and recent hits on...

21/11/2025

GoodGym named Grand Prix winner of the 2025 Sky Zero Footprint Fund

Sky Media's £2m award-winning sustainability initiative crowns its first charity as this year's standout changemakerFriday 21 November 2025 GoodGym nam...

21/11/2025

Standards Pavilion concludes COP30 with call to embed International Standards in every step of climate action

As COP30 draws to a close, the International Electrotechnical Commission (IEC), ...

20/11/2025

MLB Media-Rights Shakeup: NBC's New Three-Year Deal Covers Sunday Night Baseball,' Peacock-Exclusive Games, and More

MLB Media-Rights Shakeup: NBC's New Three-Year Deal Covers Sunday Night Bas...

20/11/2025

MLB Media-Rights Shakeup: New Deal Will Bring 30 National Games to ESPN's Linear Platform, MLB.TV Exclusively to ESPN App

MLB Media-Rights Shakeup: New Deal Will Bring 30 National Games to ESPN's Li...

20/11/2025

MLB Media-Rights Shakeup: Netflix Lands Opening Night, Home Run Derby, Field of Dreams

MLB Media-Rights Shakeup: Netflix Lands Opening Night, Home Run Derby, Field of ...

20/11/2025

MLB Media-Rights Shakeup Overview: ESPN, NBCU, Netflix Ink Three-Year Deals

MLB Media-Rights Shakeup Overview: ESPN, NBCU, Netflix Ink Three-Year DealsESPN gets new 30-game package, MLB.TV; NBC extends Sunday nights; Netflix adds tentpo...

20/11/2025

SVG Students To Watch: Henry Thuss, Indiana University

SVG Students To Watch: Henry Thuss, Indiana UniversityThe Southern California product has his goals set on the front benchBy Brandon Costa, Director of Digital ...

20/11/2025

Done+Dusted's Guy Carrington on Creating the Spectacular League of Legends World Championship Opening Ceremony

Done+Dusted's Guy Carrington on Creating the Spectacular League of Legends W...

20/11/2025

FIA Extreme H World Cup Host Broadcaster Aurora Goes Inside the Production of the Hydrogen-Fuelled Motorsport

FIA Extreme H World Cup Host Broadcaster Aurora Goes Inside the Production of th...

20/11/2025

Platinum White Paper: Amagi Utilizes Cloud Production for Sports Events - Multi-Camera Live Workflow with Remote Commentary and Graphics

Platinum White Paper: Amagi Utilizes Cloud Production for Sports Events - Multi-...

20/11/2025

2025 Sports Broadcasting Hall of Fame: Marc Herklotz, Steady Hand Behind the Scenes

2025 Sports Broadcasting Hall of Fame: Marc Herklotz, Steady Hand Behind the Sce...

20/11/2025

NFL Deep Dive: How 32 Cameras at Each Stadium Drive Virtual Measurement, Boundary Replays, and Skeletal Tracking

NFL Deep Dive: How 32 Cameras at Each Stadium Drive Virtual Measurement, Boundar...

20/11/2025

Zodiac Killer Project Refuses to Kill Its Darlings With an Avant-Garde Essay Film

Charlie Shackleton attends the 2025 Sundance Film Festival premiere of Zodiac K...

20/11/2025

5 Ways to Get More out of Your Playlists on Spotify

Your playlists are personal. They're the soundtracks to your road trips, your quiet mornings, and your biggest celebrations; collections of memories and dis...

20/11/2025

Spotify, Trk mziinin efsanelerine sayg duruu niteliindeki ICON Trkiye'yi duyurdu

Spotify, uzun s redir zerine al t T rk m zik k lt r n n ikon haline gelmi ...

20/11/2025

Spotify and The Hollywood Reporter' Partner on the First-Ever Podcaster Roundtable

For the first time, Spotify has teamed up with The Hollywood Reporter to cohost ...

20/11/2025

Spotify and the ARIA Awards Mark a New Era for Australian Music

This year's ARIA Awards marked a turning point for Australian music, and Spotify was right at the heart of it. For the first time in the awards' nearly ...

20/11/2025

Cracking the Code for Resilient, Secure Space-based Communications

L3Harris has achieved NSA Cybersecurity Directorate certification for its KSV-650 space hub end cryptographic unit, ensuring secure, adaptable communications fo...

20/11/2025

Continued Commitment and Investment in Poland

Left to Right: David Taubman, Regional Managing Director, Central and Eastern Europe; Arek Szalpuk, Poland Sr. Account Manager; Mr. Marcin Wi niewski, President...

20/11/2025

Cinegy wins the Swedish Hockey League

15 March 2012 SHARE Facebook Twitter Linkedin Email Cinegy and Vericom are pleased to announce the recent deployment of Cinegy Archive for production and as...

20/11/2025

2012

6 September 2012 SHARE Facebook Twitter Linkedin Email FIC Turkey supplies media content to Pay TV under Fox TV Channel brands in Turkey. At the start of s...

20/11/2025

VIVA Indonesia broadcasting the World Cup Brazil 2014 with Cinegy

25 June 2014 SHARE Facebook Twitter Linkedin Email Last month VIVA finalized its Cinegy installation in order to produce and broadcast the World Cup Brazil ...

20/11/2025

2014

1 October 2014 SHARE Facebook Twitter Linkedin Email With 5 locations spread out around Baden-W rttemberg, Schw bisch Media required a scalable end to end s...

20/11/2025

Strictly Come Dancing Goes with a Cinegy Workflow

27 April 2015 SHARE Facebook Twitter Linkedin Email Cinegy, which develops and produces media asset management products that are used in flagship production...

20/11/2025

Cinegy announces new Latin America partnership

12 August 2015 SHARE Facebook Twitter Linkedin Email Munich, Germany, 26 October 2015 - Cinegy, which develops and produces software technology for digital ...

20/11/2025

2015

5 November 2015 SHARE Facebook Twitter Linkedin Email Munich, Germany 3 November 2015 - Cinegy, which develops and produces software technology for digital ...

20/11/2025

Cinegy launches Cinegy Open' initiative

12 February 2016 SHARE Facebook Twitter Linkedin Email Munich, Germany 9 February 2016 - Cinegy, which develops and produces software technology for digital...

20/11/2025

2016

22 June 2016 SHARE Facebook Twitter Linkedin Email Munich, Germany 21 June 2016 - Cinegy today announced that ABS BROADCAST, one of the largest independentl...

20/11/2025

Cinegy News - nominee of NewBay Media Awards 2016

10 January 2017 SHARE Facebook Twitter Linkedin Email Find us on page 12 of the Program Guide 2016 Tags NewBay Media Awards , Program Guide 2016 , broadc...

20/11/2025

Freeview Thailand deploys Cinegy Air PRO Bundles for multi-channel playout

15 March 2017 SHARE Facebook Twitter Linkedin Email Munich, Germany 15 March 2017 - Cinegy today announced that Thailand's Next Step direct-to-home Free...

20/11/2025

2017

12 December 2017 SHARE Facebook Twitter Linkedin Email Munich, Germany 13 December 2017 - Cinegy today announced that it is making its Cinegy Air Cloud Pack...

20/11/2025

2018

25 June 2018 SHARE Facebook Twitter Linkedin Email Munich 25th June 2018 - Cinegy today announced that Canada-based Accessible Media Inc. (AMI) has implemen...