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

07/04/2026

Prompted Playlist Levels Up to Include Podcasts, Helping You Explore More Interests and Curiosities

Starting today, Prompted Playlist is expanding beyond music to now include podca...

07/04/2026

VSL release Synchron Harpsichord (Blanchet)

Launched alongside piano promotion The latest instalment in VSL's Synchron Series line-up captures the sound of a faithful copy of a Fran ois tienne Bl...

07/04/2026

Roland announce SPD-SX Pro Version 2.0

Flagship sampling pad gets an update Roland's flagship sampling pad has just received a major update that kits it out with an array of new features and ...

07/04/2026

Sound Devices unveil the Astral Mini Plus

Popular compact wireless system upgraded Sound Devices have recently introduced a new and improved version of their compact wireless transmitter bodypacks, ...

07/04/2026

Harmonic will showcase fiber innovations and a new AI-powered network operations intelligence solution at FTTH Conference 2026 in London.

SAN JOSE, Calif. - April 7, 2026 - Harmonic (NASDAQ: HLIT) today announced it wi...

07/04/2026

FOX to Integrate Kalshi Forecasts Across FOX News Media and FOX One Platforms

FOX to Integrate Kalshi Forecasts Across FOX News Media and FOX One Platforms NEW YORK, NY (April 7, 2026) - Kalshi, the world's largest prediction market...

07/04/2026

The GAA Championships on RT

THE GAA CHAMPIONSHIPS ARE BACK WITH A BANG LIVE AND FREE TO AIR ACROSS ALL RT PLATFORMS The Sunday Game and The Sunday Game Live return on Sunday 12 April L...

06/04/2026

K-Pop Artist ENHYPEN Host The Blood Diary,' a New Video Podcast Series From HYBE

Like the immortal lives of vampires, some stories never really end. That's t...

06/04/2026

From Audio to IRL: How Let's Get Haunted' Is Building Community With Spotify RADAR

As podcasting continues to evolve, growth increasingly means building beyond aud...

06/04/2026

FSK Audio update Bark24 Dyn

Multiband dynamics plug-in enhanced California-based developer FSK Audio have released a significant update for their innovative multiband dynamics processo...

06/04/2026

IK Multimedia introduce ToneNET Preset Sharing

Share official & user-created full-rig presets IK Multimedia's latest TONEX update makes it possible for users of the popular amp and effects modelling ...

06/04/2026

Re-Architectured PCC Software Streamlines and Enhances the Full High-Speed Imaging Workflow

Wayne, N.J., April 6th, 2026 Phantom High-Speed announces the release of PCC 4...

05/04/2026

Latest SoundBridge update now live

Tackles all reported bugs! SoundBridge have just announced the launch of a new update that introduces a couple of minor changes to their remote collaboratio...

04/04/2026

Flock Audio's latest Patch App DX update

Faster, cleaner and more intuitive than ever The control software for Flock Audio's digitally controlled patchbay systems has just been treated to an up...

03/04/2026

Electro-Harmonix release EHX Classics Bundle

Iconic guitar pedals now available in plug-in form Guitar effects experts Electro-Harmonix have teamed up with MixWave to turn a collection of their most pr...

03/04/2026

FAC launch Bandit 2

New multi-band AUv3 plug-in announced Fred Anton Corvest (FAC) offer an extensive range of AUv3 plug-ins and iOS/iPadOS Apps, and their multiband effects pr...

03/04/2026

Pulsar-23: 1984 from SOMA Laboratory

Just 84 units to be released in the US Experimental synthesizer and sound-machine extraordinaires SOMA Laboratory have revealed an upcoming special-edition ...

03/04/2026

Iconic Instruments release Model 350 Tube Preamp

Emulates the input section of an Ampex 350 One of the latest arrivals to the Iconic Instruments range delivers a new tube preamp plug-in inspired by the cir...

03/04/2026

VIZ Media Lands Rumiko Takahashi's MAO, Sets April 4 Premiere on Hulu in the U.S. and Disney+ in Select International Markets

VIZ Media Lands Rumiko Takahashi's MAO, Sets April 4 Premiere on Hulu in the...

02/04/2026

VEMIA Auction incoming

4 - 11 April 2026 VEMIA's latest gear auction is just around the corner, and there's already a wealth of sought-after instruments and studio gear li...

02/04/2026

Universal Audio's Voice Of God now native

Little Labs emulation now available to all The latest Universal Audio plug-in to become available outside of the company's DSP-powered UAD2 platform has...

02/04/2026

Red Seat Ventures Launches Speakeasy, a New Hosting, Distribution and Monetization Platform Built for the Next Generation of Creator Media

Red Seat Ventures Launches Speakeasy, a New Hosting, Distribution and Monetizati...

02/04/2026

Continuing to connect with Young Ireland: 2FM Announces Brand-New Daytime Schedule

2FM Breakfast to extend on weekday mornings from 6am to 10am Doireann Garrihy m...

02/04/2026

RT NEWS ANNOUNCES BARRY LENIHAN AS NEW POLITICAL CORRESPONDENT

RT News & Current Affairs is pleased to announce the appointment of RT Radio 1 reporter, Barry Lenihan, as Political Correspondent. Barry has reported across...

01/04/2026

From Buenos Aires to Mexico City, EQUAL Days Bring Latin America Together for Women in Audio

This year, Spotify celebrates the five-year anniversary of EQUAL, our global pro...

01/04/2026

FourFingers announce Tape Splice Pro plug-in

Analogue-style tape splicing in the digital domain In this era of digital recording and multiple layers of Undo, it seems that the fading art of tape splici...

01/04/2026

Zero G introduce Morphology Evolved

Latest release introduces new Orbita Engine Zero G's latest release marks the start of a new series of libraries, as well as introducing an all-new engi...

01/04/2026

Warm Audio introduce the WA-8TRX

Until now, one format has largely been left behind Warm Audio's extensive product range includes modern-day recreations of all manner of sought-after s...

01/04/2026

The Crow Hill Company announce Crystal Pianos

A piano with glass vessels for strings! The Crow Hill Company's recently released Gong Piano offered a refreshing new take on piano libraries, harnessin...

01/04/2026

ESSENCE RS from Aim Audio

Remote Streaming Studio Condenser Aim Audio have just revealed their latest creation, the ESSENCE RS Remote Streaming Studio Condenser, which becomes the wo...

01/04/2026

AgileTV powers Liwest's next-generation TV experience with the launch of next IPTV platform in Austria

Bilbao, April 1st, 2026 - AgileTV, a leading provider of end-to-end TV technolog...

01/04/2026

UKTV announces expanded remit for Jonathan Newman and appoints David Swetman as Director of Content Partnerships & Sales

UKTV today announces that Jonathan Newman has formally stepped into the role of ...

01/04/2026

Binghamton University Strengthens StudentRun Productions With Riedel's SimplyLive RiMotion R12

Wuppertal April 1, 2026 Binghamton University Strengthens Student Run Producti...

01/04/2026

TDF Expands Broadcast Channel Lineup with Harmonic

Harmonic's Media Processing Solutions Maximize Bandwidth Efficiency for Terrestrial Broadcast Delivery SAN JOSE, Calif. - April 1, 2026 - Harmonic (NASDAQ: ...

01/04/2026

RT and Virgin Media Television kick off comprehensive freetoair coverage of the 2026 Women's Six Nations Championship

Rugby fans won't miss a moment of the action this spring, with full Women...

01/04/2026

Bluey as Gaeilge starts on RT KIDSjr on Easter Monday

T Bluey ag teacht go RT ! Beginning on Monday 6 April 2026, Bluey will be available as Gaeilge on RT KIDSjr and RT Player. Children will be able to connect w...

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

31/03/2026

Spotify Introduces New Formats, Tools, and Research to Help Brands Become Part of the Fan Experience

Spotify has evolved from a streaming platform to an interactive, multiformat eco...

31/03/2026

Make Noise Music introduce the GTE

Lastest New Universal Synthesizer System module announced Make Noise Music have recently announced the launch of the latest addition to their New Universal ...

31/03/2026

Two notes unveil the Captor X+

True Stereo DynIR Engine, Virtual Load Shaper & more Two notes Audio Engineering's Captor X reactive load box and cabinet simulator has built up a solid...

31/03/2026

VEON Announces 2026 AGM and Board Nominees

31 Mar 2026 VEON Announces 2026 AGM and Board Nominees Notice of the 2026 Annual General Meeting of Shareholders of VEON Ltd. Dubai and New York, March 31, 20...

31/03/2026

Jack Whitehall announced as next host of Saturday Night Live UK

Jack Whitehall will be joined by musical guest Jorja Smith - (Show 4 - 11 April)Tuesday 31 March 2026 Jack Whitehall announced as next host of Saturday Night L...

31/03/2026

Sky Sports announces major womens boxing deal with Most Valuable Promotions

Tuesday 31 March 2026 Sky Sports announces major women's boxing deal with Most Valuable Promotions Sky Sports and NOW will become the home of Most Valuabl...

31/03/2026

NAB. Las Vegas. April 19-22, 2026

Stand #N1311 (North Hall) April 19-22, 2026 Discover why colourists and DITs rely on Baselight and Daylight v7. Explore the latest updates about Nara, our pla...

31/03/2026

The Federal Archives of Germany use their DFT Polar HQ Film Scanners for Flagship Project Metropolis

31. March 2026 News DFT is pleased to announce that three Polar HQ scanners...