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

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

07/10/2026

Dalet Flex LTS Delivers Smarter Media Operations from Ingest to Distribution

Dalet, a leading technology and service provider for media-rich organizations, today announced the latest Long-Term Supported (LTS) release of Dalet Flex. Build...

06/09/2026

Dolby and MagentaTV Bring Fans Closer to the FIFA World Cup 2026 in Germany with Dolby Vision and Dolby Atmos

June 9 2026, 23:00 (PDT) Dolby and MagentaTV Bring Fans Closer to the FIFA Worl...

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

24/07/2026

Mediagenix To Feature 'Real-Time Media Enterprise Platform At IBC 2026

Share Copy link Facebook X Linkedin Bluesky Email...

24/07/2026

Peacock Posts First Profits, Adds 2 Million Subs in Q2 2026

Share Copy link Facebook X Linkedin Bluesky Email...

24/07/2026

Edward F. OKeefe Named President and CEO of The WNET Group

Share Copy link Facebook X Linkedin Bluesky Email...

24/07/2026

TiVo Ads, OpenGlass Launch Programmatic Access to the TV Homescreen

Share Copy link Facebook X Linkedin Bluesky Email...

24/07/2026

Digital Alert Systems DASDEC Platform Supports FCCs New P...

Current DASDEC software enables customers to comply with the FCC's new 15-character password mandate without requiring updates LYNDONVILLE, N.Y. July 23,...

24/07/2026

SDVI to Showcase Next-Generation Rally Platform and New T...

At the IBC2026 Show, SDVI will give European media organizations their first hands-on look at the next-generation Rally media supply chain management platform f...

24/07/2026

Sonnet Technologies at IBC2026

Sonnet Technologies at IBC2026 Brie Clayton July 23, 2026 0 Comments Hero image: Sonnet Twin25G T5 Thunderbolt 5 Adapter At this year's IBC Sho...

24/07/2026

Musora Enhances Online Music Lessons with Blackmagic Design

Musora Enhances Online Music Lessons with Blackmagic Design Brie Clayton July 23, 2026 0 Comments Director of Production Josh Holliday details workflo...

24/07/2026

Kerry and Mayo fans Up For The Match as excitement builds in Croke Park on the eve of the football final

Kerry and Mayo fans Up For The Match as excitement builds in Croke Park on the e...

23/07/2026

Record-breaking World Cup has advertisers cheering

Staines-upon-Thames, UK, 23rd, JULY, 2026 - Yospace, the trusted leader in Dynamic Ad Insertion (DAI), stitched 11.57 billion one-to-one addressable advertisem...

23/07/2026

SVG Students To Watch: Shansley Glenn, University of Oklahoma

This Spring 2026 graduate from Honolulu found a home at SoonerVision as a live-production star and is ready to enter the industry as a replay op on Prime Video&...

23/07/2026

Miked Up Is an Everyday Deal for the Athletes Unlimited Softball League

As the AUSL postseason begins tonight, listening in to players during games enhances fan engagement for the young organization Ballplayers chatting with announ...

23/07/2026

Snap Announces AR and Creator Activations at Esports World Cup 2026 in Paris

Snap Inc. and the Esports Foundation have announced Snap's activations at the Esports World Cup 2026 in Paris, running July 6 through August 23. For the fir...

23/07/2026

Sony Introduces FX5 Full-Frame Cinema Line Camera

Sony has announced the FX5, a full-frame Cinema Line camera built around a newly developed fully stacked Exmor RS CMOS image sensor and BIONZ XR2 image processi...

23/07/2026

TNDV Powers Pickleball Slam 4 Broadcast for Ohlmeyer Kusserow Group

TNDV (a division of Live Media Group) provided technical production support for the Pickleball Slam 4 live broadcast from Seminole Hard Rock Live in Hollywood, ...

23/07/2026

LTN Surpasses 3,000 Satellite-to-IP Migrations as FCC Approves Upper C-Band Auction Rules

LTN has announced it has completed satellite-to-IP migrations for more than 3,00...

23/07/2026

Daktronics Announces 2026 DakClassroom Student Showcase Winners

Daktronics has announced the winners of the 2026 DakClassroom Student Showcase, a national competition recognizing student work in media production, storytellin...

23/07/2026

beIN Sports Extends Exclusive Roland-Garros Rights Across 10 Asian Markets Through 2031

The French Tennis Federation (FFT) and beIN Media Group have announced a five-ye...

23/07/2026

Clear-Com Provides Intercom System for Fryderyk Awards Gala at Tauron Arena Krakw

Clear-Com provided the communications infrastructure for the Fryderyk Awards Gal...

23/07/2026

How the FIFA World Cup's Record Revenue Masks a Structural Market Contraction

The 2026 FIFA World Cup is, on paper, an unparalleled financial success. Total t...

23/07/2026

From Green Screen to LED: How BBC Sport's World Cup Studio Became the Blueprint for Match of the Day

Standing inside HQ3 at MediaCity Studios during the FIFA World Cup 2026, it quic...

23/07/2026

How the 2026 FIFA World Cup Tightened the Bond Between the FOX Sports Digital, Linear Teams

Having attracted upwards of 17 billion views throughout the tourney, the broadca...

23/07/2026

Low End Candy release Preverb

Quickly creates reverse reverb effects Low End Candy have recently released a new plug-in that offers a quick and simple way to create reverse reverb effect...

23/07/2026

Expressive E Noisy 2.6 arrives

New engines, resonators, effects & more Expressive E's versatile soft synth has just been treated to an update that greatly expands its sonic range. Noi...

23/07/2026

SGL Carbon expands photovoltaic capacity at its Ort im Innkreis site

SGL Carbon has further expanded its photovoltaic capacity at its Ort im Innkreis site in Austria. With the commissioning of new PV carports, the sites solar sys...

23/07/2026

NITV launches new By Mob For Mob series in partnership with NRMA Insurance

NITV launches new By Mob For Mob series in partnership with NRMA Insurance 23 July, 2026 Media releases National Indigenous Television (NITV) has launched ...

23/07/2026

Rohde & Schwarz presents new software for three-phase power analysis on MXO series oscilloscopes

Rohde & Schwarz presents new software for three-phase power analysis on MXO seri...

23/07/2026

Why The Next Big Opportunity in Sports Lies Outside the Stadium

In our latest blog, Laura Rognoni explores how the launch of Play Snooker reflects a wider shift in sports economics - from monetising peak broadcast audiences ...

23/07/2026

Scaling Smart with Vivid Broadcast

Download Now! To receive a short case study showcasing Vivid Broadcast's audio setup, please enter the following details: -- First Name* First Name ...

23/07/2026

Sony Unveils FX5 Full-Frame Camera

Share Copy link Facebook X Linkedin Bluesky Email...

23/07/2026

Sachtler To Show Akti8T Fluid Head, Flowtech75 Tripod At IBC 2026

Share Copy link Facebook X Linkedin Bluesky Email...

23/07/2026

NextGen TV Launches in Cleveland

Share Copy link Facebook X Linkedin Bluesky Email...

23/07/2026

Yospace Stitched 11.57 Billion Ads into Live Streams During World Cup

Share Copy link Facebook X Linkedin Bluesky Email...

23/07/2026

At IBC2026 Witbe Will Showcase Tests That Build Themselve...

Witbe brings its AI-native testing and monitoring infrastructure to Amsterdam: demonstrations on real devices, a peer-reviewed technical paper in the conference...

23/07/2026

Quickplay Caretta Research Evergent and Yospace Announce...

Quickplay, Caretta Research, Evergent, and Yospace have announced that the renowned IBC Pride Happy Hour will once again bring the vibe and fun back to IBC on F...

23/07/2026

IBC2026 Interra Systems Brings Trusted Media Intelligence...

At IBC2026, Interra Systems will present this year's focus: operational AI at scale for QC, monitoring, and captioning workflows. The industry has moved pas...

23/07/2026

Illusionfx is finally coming!

Illusionfx is finally coming! Alex Perea July 23, 2026 0 Comments The new website is now live to mark the occasion. Since the last update, feedback h...

23/07/2026

Evergent showcases AI agents for streaming retention at I...

Evergent (5.A86) will showcase its Agentic Revenue Orchestration Platform for streaming services, sports leagues, pay-TV operators at IBC2026 (RAI Amsterdam, 11...

23/07/2026

Brian Jones Named NCTCs New CFO

Share Copy link Facebook X Linkedin Bluesky Email...

23/07/2026

Scripps Unites TV Operations Under Dean Littleton's Leadership

Share Copy link Facebook X Linkedin Bluesky Email...

23/07/2026

2D House is First North American Rental Facility to Offer...

David Dvir, 2D founder (left), Sundeep Reddy (center), and Jean-Marc Bouchut (right), both of Zeiss...

23/07/2026

Screen Australia announces new national documentary accelerator program

Screen Australia announces new national documentary accelerator program 23 July 2026 Screen Australia has today announced the Above the Line Documentary Accel...

23/07/2026

At AI Summit, South Korea Outlines Its AI Future With NVIDIA and Partners

At this week's AI Summit in San Francisco, South Korean President Jae Myung Lee and some of the country's top business leaders and researchers are meeti...

23/07/2026

X-Rite Pantone and Fashion Institute of Technology (FIT) Partner to Advance Digital Color Education

X-Rite Pantone and Fashion Institute of Technology (FIT) Partner to Advance Digi...

23/07/2026

New Samsung Galaxy Foldable range available now to pre-order on Sky Mobile

Thursday 23 July 2026 New Samsung Galaxy Foldable range available now to pre-order on Sky Mobile Sky Mobile, the award-winning network voted this year by Expe...

23/07/2026

Jason Statham leads Sky Original action thriller MUTINY in explosive new trailer

Thursday 23 July 2026 Jason Statham leads Sky Original action thriller MUTINY in explosive new trailerTurn on cookies to view this content. Go to Privacy optio...