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

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

09/07/2026

Omaha Productions Goes All-In as World Series of Poker Main Event Returns to ESPN

With 50+ cameras, three trucks, 60+ EVS channels, RFID hole-card workflows, and ...

09/07/2026

SVG Students To Watch: Dana Shearer, Syracuse University

A recent graduate from Westchester, NY, this experienced technician has already started her first gig in the industry, as a REMI A2 Comms Specialist at ESPN In...

09/07/2026

SVG New Sponsor Spotlight: Lightcasts Andreas Kisslinger on the Role of Automation, Cloud-Based Workflows in Streaming

Live sports production is a fast-paced industry with no signs of slowing down. W...

09/07/2026

TV Skyline, thinXpool, DMC Production Collaborate on Deutsche Telekom's World Cup From NYC

From a rooftop studio in Manhattan, multiple Germany-based companies share respo...

09/07/2026

FOX One and Overtime Announce Creator Series Race to Glory for FIFA World Cup 2026

Overtime has announced a content partnership with FOX One to produce Race to Glo...

09/07/2026

Ross Production Services Standardizes on Clear-Com Intercom Across Mobile Production Fleet

Clear-Com has announced that Ross Production Services (RPS) has standardized on ...

09/07/2026

NetApp Returns as Presenting Partner of 2026 NFL Madrid Game

The NFL has announced that NetApp will return as Presenting Partner of the NFL Madrid Game, featuring the Atlanta Falcons against the Cincinnati Bengals at the ...

09/07/2026

The R&A and Cisco Announce Multi-Year Network Infrastructure Partnership

The R&A and Cisco have announced a multi-year partnership making Cisco the Official Network Supplier of The R&A and its Championships. Cisco will deploy AI-read...

09/07/2026

Fox Television Stations, Extreme Reach, and LTN Complete Live Syndication of 25 Words or Less LIVE

Fox Television Stations, Extreme Reach (XR), and LTN have announced the completi...

09/07/2026

Wynn Records Launches Direct-to-Consumer Streaming Platform Powered by Kiswe

Kiswe has announced a partnership with Wynn Records to launch the Wynn Records Network streaming platform, debuting Saturday, July 11 with a Salita Promotions b...

09/07/2026

NEP Europe Announces Multi-Year Agreement as Wimbledon Broadcast Services Provider

NEP Europe has announced a new multi-year agreement with Wimbledon Broadcast Ser...

09/07/2026

Thropic Games Raises Pre-Seed Round Led by The Famous Group

Thropic Games, a company offering casual mobile games tied to fan fundraising for sports programs, has announced a pre-seed funding round led by The Famous Grou...

09/07/2026

Game Creek Video Purchases 10 Grass Valley K-Frame Switchers for Fleet Expansion

Game Creek Video has reached an agreement with Grass Valley to purchase 10 K-Frame production switchers as part of a two-year fleet expansion. Two systems have ...

09/07/2026

Gravity Media Powers ITVs FIFA World Cup Coverage with Three-Hub Remote Production

Gravity Media is delivering a three-hub remote production workflow for ITV's...

09/07/2026

Report: North American Broadcast Journalists Spend Up to 75% of Time on Technical Workflows

A new report from Quickplay and Caretta Research, The Broadcaster Revolution Wi...

09/07/2026

DAZN to Broadcast Esports World Cup Free to Global Audiences

DAZN, the world's leading sports entertainment platform, has announced a long-term strategic partnership with the Esports World Cup Foundation to serve as t...

09/07/2026

YES Networks Mike Webb on Finding Opportunity for Innovation in Live Regional Sports Production

The regional sports network is staying busy this summer with broadcasts of the N...

09/07/2026

Universal Audio Black Box HG-2 & elysia karacter

Latest analogue-emulation plug-ins revealed Universal Audio have just added two new analogue-emulation plug-ins to their DSP-powered UAD line-up. Developed ...

09/07/2026

Neumann launch U 47 FET Bon Scott Edition

Limited-edition mic celebrates rock icon Neumann have partnered with the Bon Scott Estate to create a limited-edition version of the U 47 FET that honours b...

09/07/2026

Plugin Station: Plug-in management software

Handles organisation, updates, troubleshooting & more Created by pro-audio software developer Julian Worden, Plugin Station from Julian Michael Technologies...

09/07/2026

LANDR expand Fair Trade AI programme

Introduces new $1 million advance programme LANDR have just announced the next phase of their Fair Trade AI programme, a pioneering opt-in music-licensing p...

09/07/2026

Spitfire Audio expand low-cost Originals range

Four new titles now available Spitfire Audio have just introduced four new titles in their Originals range, bringing the total count of libraries in the low...

09/07/2026

SBS statement Royal Commission on Antisemitism and Social Cohesion

SBS statement Royal Commission on Antisemitism and Social Cohesion 9 July, 2026 Media releases SBS acknowledges the gravity of the matters before the Roy...

09/07/2026

Press Release: NFVF Sixth Presidential Employment Stimulus Programme (PESP6) Status Update

08 July 2026, Johannesburg - The National Film and Video Foundation (NFVF), an a...

09/07/2026

Blackmagic Design Announces New UltraStudio Express 3G

Blackmagic Design Announces New UltraStudio Express 3G Brie Clayton July 9, 2026 0 Comments New extremely portable capture and playback models with 3G...

09/07/2026

Miri Introduces Self-Service Cellular Data and SIM Card Management Platform for NetConnect+ Plans

Miri Introduces Self-Service Cellular Data and SIM Card Management Platform for ...

09/07/2026

Hong Kong Jockey Club Expands Intercom Infrastructure Wit...

Riedel Communications today announced that the Hong Kong Jockey Club (HKJC), one of Asia's most prestigious horse racing organizations, has significantly up...

09/07/2026

Game Creek Video Switches On Next-Gen Production with K-F...

Leading North American mobile production facility provider standardizes on Grass Valley's fully IP-native K-Frame production switchers for its fleet of next...

09/07/2026

Miri Introduces Self-Service Cellular Data and SIM Card M...

Miri Technologies Inc. is rolling out a new online portal that provides customers and resellers with self-serve management tools and usage analytics for the com...

09/07/2026

Beeble Introduces AI-Driven SwitchHDR Converter

Share Copy link Facebook X Linkedin Bluesky Email...

09/07/2026

DP Aakash Subramaniam Chooses ZEISS Supreme and Nano Prim...

Cinematographer Aakash Subramaniam, WICA faced a conceptual challenge: how could he make a film about dying that doesn't feel like one? The film, Our Weird...

09/07/2026

The Search for Leah Croucher: A Parent's Nightmare for U and U&W

Years in the making, this intimate documentary draws on rare access to Leah Crouchers family to tell the story behind one of Britains most high-profile missing ...

09/07/2026

Enjoy Gigafast speeds and Ultimate TV pack for less

Thursday 9 July 2026 Enjoy Gigafast speeds and Ultimate TV pack for less The latest deals have dropped from Sky TV and Sky Broadband, the award-winning provid...

09/07/2026

Local campaigns with impact

Hands up who would like to dress up as a giant crisp packet? The call that went out across the agency as our anti-litter campaign, Wish you weren't here fo...

09/07/2026

GeForce NOW Turns Up the Heat With New GeForce RTX 5080-Powered Toronto Server

This GFN Thursday brings more games, more power and more ways to play on GeForce NOW. The cloud gaming service is expanding with a new GeForce RTX 5080-powere...

08/07/2026

Aqueduct Racetrack Goes Silent

The end of the Big A' marks the demise of one more iconic sports venue and its signature sound After 132 years as one of the preeminent horse-racing track...

08/07/2026

Memphis Athletics, Learfield Continue Long-Term Partnership

Memphis Athletics and Learfield have signed a long-term renewal to their 25-year relationship, which sees Learfield's Tiger Sports Properties continue repre...

08/07/2026

T-Mobile Brings ABS Challenge System, 5G Batting Practice Cams to 2026 MLB All-Star Game in Philadelphia

MLB All-Star Week returns to Philadelphia for the first time in 30 years as Amer...

08/07/2026

SVG Enterprise Launches Inaugural Enterprise Video Summit, Oct. 19 in New York

Former Wall Street Video event expanded to include all Enterprise sectors SVG Enterprise has announced the inaugural Enterprise Video Summit, taking place Oct....

08/07/2026

Wrigley Field Revamp: Chicago Cubs Upgrade LED Videoboards To Match New 1080p Control Room

An offseason project enhanced eight video displays around the venue in time for ...

08/07/2026

A Beacon on Biscayne Bay: Miami Heat Reflect on Ambitious Renovation at SVG Venues & Teams Summit

Kaseya Center has a ton of new features that weren't available to the indust...

08/07/2026

FIPRESCI Establishes Jury at Sundance Film Festival

The International Federation of Film Critics (FIPRESCI) and the Sundance Film Festival are pleased to announce the establishment of a FIPRESCI jury beginning wi...

08/07/2026

Universal Audio introduce Black Box HG-2 & elysia karacter

Latest analogue-emulation plug-ins revealed Universal Audio have just added two new analogue-emulation plug-ins to their DSP-powered UAD line-up. Developed ...

08/07/2026

Pitch Innovations release Loop2Kit

Turn any audio loop into a playable kit Pitch Innovations have recently introduced an interesting new tool that's capable of creating playable kits from...

08/07/2026

MonkeyC update Rando sampler plug-in

Adds new keyboard-split function MonkeyC have recently launched an update that overhauls their powerful software sampler. Described as the sampler that mad...

08/07/2026

Strymon unveil the TimeLine MX

Four new delay algorithms & dual-engine functionality Strymon have just announced that the much-anticipated MX version of their hugely popular delay pedal i...

08/07/2026

Well over half of Australia have tuned in to watch the FIFA World Cup on SBS

Well over half of Australia have tuned in to watch the FIFA World Cup on SBS 7 July, 2026 Media releases Australia's Round of 32 match against Egypt a...