Sony Pixel Power calrec Sony

Video Platform Observability using Agama AWE SDK - Part 2: Layout & Style

25/05/2022

25 May, 2022

Blog

By Anders Svensson

In our previous article Par1 of this series, we presented the Agama AWE SDK, the requirements needed to create a simple application to provide real use for Agama customers and the configuration of the project.

In the second part of the series, we're diving into how to create the layout and styling, and also elaborate on the application logic.

We have created a boilerplate application and defined the configuration parameters that shall be possible for the users to adapt. It is now time to start creating the actual functionality of the application. An important part of that is the actual layout and structure of the presentation, which for these applications is controlled by standard HTML, CSS, and JavaScript. In the application index.html below, we have modified the boilerplate HTML structure and instead defined a set of div:s used as placeholders for the configured test name and a div for the status indicator.

The ADE will automatically update the UI while editing and saving HTML so the structural changes will be shown immediately. The result is not interesting right now as we have not yet populated the div:s with any content and styling, so the result is still just an empty screen.

The Application logic To start populating the application with the configured content, test logic and the test status results, we need to start adding JavaScript code.

The main application entry point that is called by the Agama application framework is the onUpdate function. This function has two parameters, state and reason. The state parameter is an object that contains the configuration of the application. So, all the parameters that we defined in the JSON returned in the onConfiguration function, will be available in this object. The reason parameter is an integer stating why the function is being called; it allows us to implement different handling and behavior depending on this. In our application we must handle the create and configuration change reason. In the code above one can see how easily and obviously we can access and use the different configuration parameters that we have defined.

The program logic needed to implement the functionality is quite simple. When the application is created, we set up a timer that ensures that our test function update() is called at the user configured interval. The update() function in turn calls the defined REST API and checks the result codes against the configured, and depending on the result adding either a fail or ok CSS class to the status div.

The current result is now as above. We can now see the defined test name, in this case VoD system (which is the name we configured) but we do not see any status symbol. That is correct and it is because we have not yet added the styling for the status div.

Styling Adding CSS styling for the application is the last step in getting the applications appearance and functionality in-place. We use the automatically created file css/style.css and add the following.

It is here where we define the fail to indicate with an orange background, and ok to indicate with a green background.

Yes, now it looks more promising!
LINK: https://agama.tv/video-platform-observability-using-agama-awe-sdk-seri...
See more stories from agama

Europe Stories

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

04/08/2026

Dalet Announces Commercial Availability of Dalia, Bringing Media-Aware Agentic AI to Enterprise Productions

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

04/07/2026

Detective Conan: Fallen Angel of the Highway Opens in Dolby Cinemas Across Japan, Presented in Dolby Atmos and Dolby ...

April 7 2026, 19:00 (PDT) Detective Conan: Fallen Angel of the Highway Opens in...

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

21/04/2026

5 Years of Spotify in Pakistan: The Trends Shaping the Country's Music Scene

Five years ago, Spotify arrived in Pakistan, opening a new chapter in the country's music scene. Since then, local listeners have explored across genres, ge...

21/04/2026

The Next Wave of RADAR Spain Artists Arrives for 2026

Since its launch in 2020, RADAR has been our program for spotlighting emerging artists around the world. This year marks the sixth edition of RADAR Spain, our o...

21/04/2026

EverSync SP-10 from Cloudvocal

Offers compact wireless solution for pedalboards Taiwanese audio brand Cloudvocal have announced the availability of a new pedalboard-friendly wireless syst...

21/04/2026

Arturia launch Augmented Persia

Latest hybrid sampling/synthesis instrument arrives Arturia's Augmented series offerings rely on a mixture of sampling and synthesis, allowing users to ...

21/04/2026

Rohde & Schwarz to host Power Electronics Online Conference From Design to Validation in May

Rohde & Schwarz to host Power Electronics Online Conference From Design to Vali...

21/04/2026

A first look at The Cathy Newman Show, live from 27 April

Tuesday 21 April 2026 A first look at The Cathy Newman Show, live from 27 April Everything you need to know Sky News has announced The Cathy Newman Show, a m...

21/04/2026

Sky Sports to make ICC Womens T20 World Cup 2026 available to all

Tuesday 21 April 2026 Sky Sports to make ICC Women's T20 World Cup 2026 available to all The opening matches for all the home nations plus final will be a...

21/04/2026

Comscore Continues Building Momentum in Local Measurement Through New Agreements with More than 15 Clients

Comscore Continues Building Momentum in Local Measurement Through New Agreements...

21/04/2026

Cultivating creativity: Super Garden is back for another season

Summer is nearly here and Super Garden is returning to our screens to spark some gardening inspiration. The new series kicks off on Thursday 23 April at 7pm on ...

20/04/2026

3 New Ways to Dive Deeper Into the Music You Love

A song that captures a moment can feel like magic. But when you uncover the story behind it-who made it, what inspired it, and the meaning woven into the lyrics...

20/04/2026

Deity Microphones announce the PR-4

Ultra-compact 32-bit recorder set for launch Deity Microphones will soon be launching a new 32-bit six-track recorder that's been designed with producti...

20/04/2026

Lectrosonics preview the S1

Uncoming lightweight shotgun mic announced Production-sound experts Lectrosonics have recently announced the upcoming launch of a new lightweight shotgun mi...

20/04/2026

The story of Focusrite ISA

New 20-minute documentary explores iconic preamp In 2025, Focusrite commissioned a new short-form documentary with filmmaker Chris Mayes-Wright - the direct...

20/04/2026

Sampleson release Boomcha

Turn quick sketches into real drum grooves Sampleson have been experimenting with assitive production tools recently, and their latest creation aims to make...

20/04/2026

Rohde & Schwarz rolls out its full ARDRONIS counter UAS suite in a demonstration van at Counter UAS Technology Europe 2026

Rohde & Schwarz rolls out its full ARDRONIS counter UAS suite in a demonstration...

20/04/2026

Ready for the Next Step?

Thomas Valter Director of Product Management, RTW March 26, 2026 For users of the classic TouchMonitor, one obvious question is: what does the TMxCore offer...

20/04/2026

Fox Corporation Executives to Discuss Third Quarter Fiscal 2026 Financial Results Via Webcast

Fox Corporation Executives to Discuss Third Quarter Fiscal 2026 Financial Result...

19/04/2026

Waves update Sync Vx

Now available in VST3, AU and AAX formats Waves have recently released an update that extends their vocal-alignment plug-in's capabilities to all DAWs -...

19/04/2026

Riedel's SimplyLive Solution Powers Centralized VAR for Argentina's Top Football League

Wuppertal April 19, 2026 Riedel's SimplyLive Solution Powers Centralized V...

19/04/2026

Bridge Digital and Riedel Build CampusWide ST 2110 Network for Eastern Kentucky University

Wuppertal April 19, 2026 Bridge Digital and Riedel Build Campus Wide ST 2110 N...

19/04/2026

Riedel Showcases Next Advances in IP-Based Production at NAB 2026

Wuppertal April 19, 2026 Riedel Showcases Next Advances in IP-Based Production at NAB 2026MediorNet HorizoN ST 2110 MultiViewer App, SmartPanel Commentary Con...

19/04/2026

Harmonic Enables DIRECTV to Reimagine Nationwide DTH Service

Harmonic's Cloud-Native VOS Media Software Lowers Costs by Unifying Media Playout to Delivery on a Single Platform SAN JOSE, Calif. - April 19, 2026 - Harmo...

18/04/2026

Blackmagic Design introduce Fairlight Live

Free software mixer now in public beta Blackmagic Design are best known for their high-end video hardware and DaVinci Resolve editing software, but the latt...

17/04/2026

Nuvo Flight mic kit from AEA

Versatile ribbon mic kit revealed The latest arrival to the AEA line-up brings together three contrasting models from their Nuvo range, delivering a versati...

17/04/2026

MPG Awards 2026: Winners announced

Revealed following sold-out MPG Awards ceremony Following another sold-out MPG Awards ceremony at The Troxy in London, the MPG have released a full list of ...

17/04/2026

VEON to Release 1Q26 Earnings Update on May 13, 2026

17 Apr 2026 VEON to Release 1Q26 Earnings Update on May 13, 2026 Dubai and New York, April 17, 2026 - VEON Ltd. (Nasdaq: VEON), a global digital operator (toge...

16/04/2026

Introducing a Smarter, Smoother Experience for Tablets

At Spotify, we want your experience to feel intuitive and personal across every moment of the day. Whether you're streaming your favorite playlist while you...

16/04/2026

Telsie T - SonicWorlds extended classic German Equaliser

Vintage broadcast experts release second plug-in Telsie T is the second plug-in to be released by SonicWorld, a German audio company who specialise in servi...

16/04/2026

Softube unveil Flow Studio

Compact unit offers hands-on plug-in control Softube have just announced the launch of their latest hardware unit, the Flow Studio. Housed in a compact desk...

16/04/2026

Fiedler Audio release Armada

Use any VST3 plug-in on immersive audio Fiedler Audio have just released a powerful new plug-in wrapper that brings full VST3 processing to Dolby Atmos and ...

16/04/2026

Nugen Audio update Halo Vision

Analysis plug-in gains enhanced frequency readouts Nugen Audio's real-time analysis plug-in has just received a significant update that introduces some ...

16/04/2026

GearExpo UK Announced

Recording & Music Technology Show Sound On Sound are pleased to announce a new recording and music technology exhibition taking place in London on Saturday ...

16/04/2026

RTS Ireland Awards / Gradaim RTS 2026 Winners Announced

RTS Ireland Awards / Gradaim RTS 2026 Winners Announced Awards hosted by RT | Presented by Louise Duffy & Aisling Bonner Thursday, 16 April 2026 | Dublin Roy...

16/04/2026

Teaser released for hit U&alibi drama, Bookish ahead of return this Summer

Bookish is created, written by and starring Mark Gatiss, with series one available on Sky, Virgin Media and NOW Praise for series one: Daily Mail - 5**** The...

16/04/2026

Fox Corporation Names Amazon Web Services its Preferred AI Cloud Provider

Fox Corporation Names Amazon Web Services its Preferred AI Cloud Provider New York, NY and Los Angeles, CA - April 16, 2026 - Fox Corporation (Nasdaq: FOXA, F...

16/04/2026

Midnight in Vegas have been revealed as the fourth act set to compete on The Late Late Show Opening Act

The search for Ireland's newest country music star takes place live on Frida...

15/04/2026

Spotify Podcast Awards Return to Celebrate Latin America's Most Influential Voices

From immersive storytelling to laugh-out-loud comedies, podcasts are booming in ...

15/04/2026

Spotify Expands Audiobook Features, and Printed Book Sales Go Live in the US and UK

Books have always moved with us, whether tucked in our bags or humming in our he...

15/04/2026

Spotify and NIVA Partner to Support Independent Venues Across the US

For many artists, independent venues are where music careers begin and fan communities take shape. Independent venue operators work hard every day to keep local...

15/04/2026

Spotify Editors Reveal Their Picks for Best Book of the Century (So Far)

From gripping thrillers to poignant memoirs, the 21st century has had no shortage of unforgettable books. To celebrate the standout storytelling of our modern e...

15/04/2026

SonicWorld introduce Telsie T

Vintage broadcast experts release second plug-in Telsie T is the second plug-in to be released by SonicWorld, a German audio company who specialise in servi...

15/04/2026

UAD Explore Free from Universal Audio

Includes eight free UAD plug-ins Universal Audio's latest bundle brings together a selection of their renowned plug-ins and virtual instruments, and is ...

15/04/2026

Maximum uptime for broadcasters: Rohde & Schwarz launches R&SBroadcastShield at NAB 2026

Maximum uptime for broadcasters: Rohde & Schwarz launches R&S BroadcastShield at...

15/04/2026

aconnic launches ACCEED 4430 10 Gigabit system for high volume enterprise and business service aggregation

aconnic AG (ISIN: DE000A0LBKW6), Munich, announces the market launch of the ACCE...