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

10/11/2026

Flanders Scientific Unveils New Reference Monitors

Share {alert(Link copied)}).catch(err => {console.error(Failed to copy: , err)}) data-platform=copy_link data-action= class=font-ui-heading py-2 text-sm tex...

10/11/2026

Northwestern Ups Production Game in New Stadium

Share {alert(Link copied)}).catch(err => {console.error(Failed to copy: , err)}) data-platform=copy_link data-action= class=font-ui-heading py-2 text-sm tex...

10/11/2026

Parks: Netflix Is Top SVOD Service of 2026

Share {alert(Link copied)}).catch(err => {console.error(Failed to copy: , err)}) data-platform=copy_link data-action= class=font-ui-heading py-2 text-sm tex...

10/11/2026

Clear-Com Supports Global Student Broadcast On Air 2026 W...

Clear-Com supported On Air 2026, a 24-hour student-led broadcast connecting 45 universities across 30 countries. Using Station-IC virtual intercom panels, an ...

10/11/2026

Matrox Video Launches The Sync - a New Customer-Led Video...

Matrox Video today announced the launch of The Sync, a new video podcast series bringing together Matrox Video experts, customers, and partners to explore the t...

10/11/2026

Adobe Brings Agentic AI to the Content Supply Chain with CX Enterprise Coworker

Adobe Brings Agentic AI to the Content Supply Chain with CX Enterprise Coworker Brie Clayton November 10, 2026 0 Comments Adobe empowers brands to bui...

10/11/2026

Amplify Berklee Gala Raises More Than $1.3 Million for Berklee City Music Scholarships

Amplify Berklee Gala Raises More Than $1.3 Million for Berklee City Music Schola...

10/11/2026

Avid's Ready to Edit Brings AI to Media Composer

Share {alert(Link copied)}).catch(err => {console.error(Failed to copy: , err)}) data-platform=copy_link data-action= class=font-ui-heading py-2 text-sm tex...

10/11/2026

Skydance Confirms HBO Max-Paramount+ Bundle

Share {alert(Link copied)}).catch(err => {console.error(Failed to copy: , err)}) data-platform=copy_link data-action= class=font-ui-heading py-2 text-sm tex...

10/11/2026

Scripps Criticizes FCC's C-Band Reimbursement Plans

Share {alert(Link copied)}).catch(err => {console.error(Failed to copy: , err)}) data-platform=copy_link data-action= class=font-ui-heading py-2 text-sm tex...

10/11/2026

Northwestern University Ushers in a New Era of Live Produ...

Grass Valley K-Frame switching and LDX cameras support live sports production at the Northwestern Wildcats' new stadium, providing a common technology platf...

10/11/2026

League of Live Stream Theater Uses LiveU Technology to Br...

The League of Live Stream Theater (LOLST), the nonprofit organization partnering with theaters and producers to bring live theater to audiences worldwide throug...

10/11/2026

COW Jobs: Several remote positions at Chakrra

COW Jobs: Several remote positions at Chakrra Brie Clayton November 10, 2026 0 Comments Several remote positions at Chakrra November 6, 2026COW Jobs...

10/11/2026

Blackmagic Design Unites Live Solutions for Reggae Land 2026

Blackmagic Design Unites Live Solutions for Reggae Land 2026 Brie Clayton November 10, 2026 0 Comments Festival relies on ATEM Constellation 8K and UR...

10/11/2026

Where Video Editors Earn the Most and Where the Paycheck Goes Furthest

Where Video Editors Earn the Most and Where the Paycheck Goes Furthest Mark Santos November 10, 2026 0 Comments Sooner or later every editor asks what...

10/11/2026

Caroline Davis to Perform with Berklee Student Ensemble for Signature Series Concert

Caroline Davis to Perform with Berklee Student Ensemble for Signature Series Con...

10/11/2026

Adobe Awards $1 Million in Grants to 10 Filmmakers

Share {alert(Link copied)}).catch(err => {console.error(Failed to copy: , err)}) data-platform=copy_link data-action= class=font-ui-heading py-2 text-sm tex...

10/11/2026

Hearst TV Ups WCVB's Kevin Kalia to Regional Director of Engineering

Share {alert(Link copied)}).catch(err => {console.error(Failed to copy: , err)}) data-platform=copy_link data-action= class=font-ui-heading py-2 text-sm tex...

10/11/2026

Haivision Seeks Survey Takers

Share {alert(Link copied)}).catch(err => {console.error(Failed to copy: , err)}) data-platform=copy_link data-action= class=font-ui-heading py-2 text-sm tex...

10/11/2026

FCC Chairman Carr Adds Will Holloway as a Legal Adviser

Share {alert(Link copied)}).catch(err => {console.error(Failed to copy: , err)}) data-platform=copy_link data-action= class=font-ui-heading py-2 text-sm tex...

10/11/2026

Matthews Intros the 33 Sliding Leg C-Stand with Grip Head...

New Compact industry-standard Support Fits in the Trunk of a Small Car Pioneering C-Stand innovator, Matthews Studio Equipment, introduces the 33 Sliding Leg...

10/11/2026

NVIDIA Expands Open Source Commitment With OpenShell Donation and New AI Infrastructure

Kubernetes, the open source system that manages how applications run across thou...

10/11/2026

RT documentary for Science Week explores the realities of neurodivergence through lived experience and groundbreaking research

Thursday 12 November, 10.15pm, RT One and RT Player Neurodivergence - The Mak...

09/11/2026

Reinvigorated AES Show Nashville Debuts in Music City

In a new home, the show had its traditional focus on music production, but broadcast themes received significant emphasis The Audio Engineering Society (AES) c...

09/11/2026

Sportel Panel Recap: How AI Is Impacting Everything Private Equity to Broadcasters, Streamers, Federations

Content creation and rights, YouTube archive, production workflows, investment, ...

09/11/2026

Building the REMI Hub of Today (and Tomorrow): Broadcasters and Vendors Share Their Strategies

Industry leaders from Prime Video, NASCAR, FOX Sports, and more discuss the tech...

09/11/2026

SMT Provides Broadcast Graphics and Shot Data for Inaugural WTGL Season

SMT (SportsMEDIA Technology) is delivering on-air graphics and shot data for the Women's Team Golf League (WTGL), which made its debut Sunday, Nov. 8, at So...

09/11/2026

BKB Names Michael Ridout Managing Director, UK

BKB Bare Knuckle Boxing has appointed Michael Ridout Managing Director, UK. He will lead BKB's operations in the United Kingdom and take on wider operationa...

09/11/2026

SMPTE Media Technology Summit 2026 Set for Nov. 16-19 in Pasadena

SMPTE's Media Technology Summit (MTS2026) takes place Nov. 16-19 at the Pasadena Convention Center. The schedule: Media Tech Business Forum (Monday, Nov. 1...

09/11/2026

AES Show Nashville 2026 Draws Nearly 3,000 Registrations

The Audio Engineering Society (AES) held AES Show Nashville 2026 Oct. 30-Nov. 1 at the Gaylord Opryland Resort & Convention Center. AES reports nearly 3,000 reg...

09/11/2026

Devoncroft Partners To Present Enterprise Video Survey Findings at Silicon Valley Video Summit

Analyst Josh Stinehour will share results Jan. 26 in Mountain View, Calif. Devo...

09/11/2026

Behind The Mic: Tirico Misses SNF Due to Health Issue; Wilbon Takes Leave of Absence From PTI

Behind The Mic provides a roundup of recent news regarding on-air talent, includ...

09/11/2026

Cleveland Cavaliers Boost In-Venue Energy With The Famous Group's Virtual Camera Tech

Permanent mixed-reality activation debuted against the Brooklyn Nets at Rocket A...

09/11/2026

The College Football Playoff Will Expand to 24 Teams in 2027; ESPN Secures Rights to 12 Additional Games

The new agreement brings the Playoff to 23 games, including 16 on-campus matchup...

09/11/2026

SMT Supports All Three NASCAR National Series Championship Broadcasts at Homestead-Miami Speedway

SMT provided production technology and graphics support for all three NASCAR nat...

09/11/2026

Vertikal from Native Instruments

Captures Nils Frahms upright concert grand In their latest collaboration with composer Nils Frahm, Native Instruments have captured a vertical concert grand...

09/11/2026

Sonic Days 2026

18-19 November 2026, Sonic College, UC SYD, Kolding, Denmark Sonic College have announced that their annual Sonic Days conference is set to return to Koldin...

09/11/2026

Sonuscore release The Score Elements

Cinematic scoring tool gains free entry-level version Sonuscore's Elements range offers a free entry point into the company's line-up of scoring too...

09/11/2026

Rohde & Schwarz and ZES ZIMMER present test solutions for power systems and automation at SPS 2026

Rohde & Schwarz and ZES ZIMMER present test solutions for power systems and auto...

09/11/2026

Hercule: further casting unveiled for forthcoming series with Edward Bluemel

The BBC and BritBox have announced further casting for the forthcoming six-part series Hercule from Mammoth Screen and Agatha Christie Limited for the BBC and B...

09/11/2026

Sonys Shotgun Mic Deployed in Drifter' Shoot

Share Copy link Facebook X Linkedin Bluesky Email...

09/11/2026

Fox Closes Roku Acquisition

Share {alert(Link copied)}).catch(err => {console.error(Failed to copy: , err)}) data-platform=copy_link data-action= class=font-ui-heading py-2 text-sm tex...

09/11/2026

Indianapolis TV Stations Return to DirecTV After Lengthy Absence

Share Copy link Facebook X Linkedin Bluesky Email...

09/11/2026

Vizrt Completes Proof-of-Concept Integration With Story Object Model

Share Copy link Facebook X Linkedin Bluesky Email...

09/11/2026

Broadcast Dominated Midterms Coverage

Share Copy link Facebook X Linkedin Bluesky Email...

09/11/2026

Berklee's Singers Showcase Celebrates Whitney Houston's Music and Her Gospel Roots

Berklee's Singers Showcase Celebrates Whitney Houston's Music and Her Go...

09/11/2026

Life in the fast lane

Monday 9 November 2026 Life in the fast laneTurn on cookies to view this content. Go to Privacy options and select Accept All'. Privacy options From Tik...

09/11/2026

Cathy Newman to revist defining moments in recent history with the people who lived through them in new Sky News podcast

Monday 9 November 2026 Cathy Newman to revist defining moments in recent histor...

09/11/2026

Sky VIP unwraps over one million free rewards for customers this Christmas

Monday 9 November 2026 Sky VIP unwraps over one million free rewards for customers this Christmas This Christmas, Sky VIP is giving away more than one million...