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

14/10/2026

Court Extends Restraining Order Against President Trump's White House News Ban

Share Copy link Facebook X Linkedin Bluesky Email...

14/10/2026

IPC to Demo One Connect Comms Platform at NAB Show New York

Share Copy link Facebook X Linkedin Bluesky Email...

14/10/2026

SMPTE Expands Engagement in Africa with South African Eve...

SMPTE, the home for media professionals, technologists and engineers, is expanding its presence in Africa through a series of industry events in South Africa th...

14/10/2026

FEMA Offers Two Webinars Ahead of National EAS Test

Share Copy link Facebook X Linkedin Bluesky Email...

14/10/2026

American Amplifier Technologies Acquires ERI

Share Copy link Facebook X Linkedin Bluesky Email...

14/10/2026

LTN, Sony Integrate Cloud Media Management, Real-Time Playout

Share Copy link Facebook X Linkedin Bluesky Email...

14/10/2026

DirecTV Launches Build Your Own Multiview

Share Copy link Facebook X Linkedin Bluesky Email...

14/10/2026

Wooden Camera Releases Redesigned Sony FX6 Accessory System

Share Copy link Facebook X Linkedin Bluesky Email...

14/10/2026

HuskerVision Builds IP Production Facility with Grass Val...

HuskerVision, the video production and multimedia operation for University of Nebraska Athletics, has deployed Grass Valley K-Frame production switchers and LDX...

14/10/2026

Eden Project Grows Live Learning with LiveU Technology

Eden Project, the UK-based visitor attraction, social enterprise and educational charity, is using the LiveU EcoSystem to produce and deliver its new Eden Proje...

14/10/2026

Rise AV Launches North American Mentoring Council

Share Copy link Facebook X Linkedin Bluesky Email...

14/10/2026

NAB Show New York Exhibitor Insight: Grass Valley

Share Copy link Facebook X Linkedin Bluesky Email...

14/10/2026

NAB Show New York Exhibitor Insight: Cobalt Digital

Share Copy link Facebook X Linkedin Bluesky Email...

14/10/2026

IPC Announces Plans to Showcase its One Connect Intercom...

IPC Announces Plans to Showcase its One Connect Intercom Platform at NAB New York 2026 Visit IPC as a Featured Vendor in the Dale Pro Audio Booth IPC, a le...

14/10/2026

Dr Trauma selected for Dynamic Television Scripted Initiative

Dr Trauma selected for Dynamic Television Scripted Initiative 14 October 2026 L-R: Sarah Bailey, Troy Lum. Screen Australia and Dynamic Television today annou...

14/10/2026

3D Artists Design Cars for GTA VI in a No-AI Rendering Challenge

3D Artists Design Cars for GTA VI in a No-AI Rendering Challenge Brie Clayton October 13, 2026 0 Comments 3DModels.org has opened its annual Car Rende...

14/10/2026

RE:Vision Effects Announces ARRI Film Lab 1.5 Release

RE:Vision Effects Announces ARRI Film Lab 1.5 Release Brie Clayton October 13, 2026 0 Comments ARRI Film Lab 1.5 adds many user requested features inc...

14/10/2026

MTI FILM DRS Nova V7.0 Major Release Now Available

MTI FILM DRS Nova V7.0 Major Release Now Available Brie Clayton October 13, 2026 0 Comments A step forward in digital film restoration DRS Nova V7.0 ...

13/10/2026

#GALSNGEAR's Tequity Talk Podcast Returns for Third Season

#GALSNGEAR has released Season 3 of its Tequity Talk podcast, with new episodes dropping every Tuesday through December 15. Hosted and executive produced by #GA...

13/10/2026

Most Valuable Promotions Appoints Joe Setley as SVP of Products and Digital Media

Most Valuable Promotions (MVP) has appointed Joe Setley as Senior Vice President...

13/10/2026

Zixi and TAG Video Systems Extend Integration for SCTE-35 Verification and Content Matching

Zixi and TAG Video Systems have announced an extended integration enabling the Z...

13/10/2026

LTN and Sony Integrate Ci Media Cloud with LTN Schedule Playout

LTN has announced an integration between LTN Schedule Playout and Sony's Ci Media Cloud platform, connecting cloud-based media management with linear playou...

13/10/2026

Infront Productions Announces New Management Structure

Infront has established a new management structure for Infront Productions. Amikam Kranz, Senior Vice President Media, Betting, Technology and Production, assum...

13/10/2026

Just Women's Sports Acquires Victra Sports, Launches App and Sport-Specific Channels

Just Women's Sports (JWS) has announced three developments: the acquisition ...

13/10/2026

Cinematographer Philip Lozano AFC Uses Sony Rialto Mini for Evil Dead Burn Car Fight Sequence

Cinematographer Philip Lozano AFC used the Sony Rialto Mini (VENICE Extension Sy...

13/10/2026

Op-Ed: Beyond the Newsroom - Why the Story Object Model Is Sports Media's Next Big Economic Shift

In a fundamental change, one expensive act of content creation could become many...

13/10/2026

SVG Digital Engagement Forum 2026 Hits NYC on December 15; HBS Director of Digital Johannes Franken to Keynote

The annual event will explore streaming, personalization, partnering with indepe...

13/10/2026

Freestyle Chess Partners with Game+ for North American Distribution

Freestyle Chess has announced a partnership with Game+, bringing coverage to 3.5 million households across Canada and the United States. The partnership launche...

13/10/2026

St. Louis Blues and Gray Media To Simulcast 10 Blue Note+ Games on First Alert ABC

The St. Louis Blues and Gray Media have announced a multi-year partnership to si...

13/10/2026

Spalk Expands NBA and NFL Multilingual Commentary Partnerships

Spalk has announced expanded multilingual commentary partnerships with the NBA and NFL. For the NBA, Spalk will provide remote broadcasts in Greek, Portuguese, ...

13/10/2026

All 32 Teams, One Night: ESPN's NHL Frozen Frenzy Returns for Fourth Season

Every NHL team. Five hours of nonstop hockey. ESPN's Frozen Frenzy is back The busiest night of the NHL season returns tonight with ESPN's NHL Frozen F...

13/10/2026

Mobile TV Group Goes Full-Stack With the MTVG Production Platform, Mountain Media Center

The longtime production-facilities provider also continues to roll out new mobil...

13/10/2026

Behind the Mic: Andrew McCutchen Joins SiriusXM for MLB Post Season; Eddie Olczyk Returns to Chicago

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

13/10/2026

Cal Opens On-Campus Twitch Studio for Student-Athletes Through StreamU

StreamU, the college athletics livestreaming network from TheLinkU and Twitch, has opened its first on-campus content studio at UC Berkeley. Cal student-athlete...

13/10/2026

Give Me the Backstory: Get to Know Noah Segan, the Director of The Only Living Pickpocket in New York

By Ramona Flume One of the most exciting things about the Sundance Film Festiva...

13/10/2026

Penombra Celli & Viole from Sonora Cinematic

Two new MPE-capable libraries announced Sonora Cinematic's The Founders Locker line-up has just gained two new additions: Penombra Celli and Penombra Vi...

13/10/2026

Modbap release Fidelity Theory

Debut offering in new oneTHNG plug-in series Modular synth experts Modbap have just announced the launch of Fidelity Theory, a new creative effect that mark...

13/10/2026

SGL Carbon celebrates capacity expansion at its St. Marys site

Last week, SGL Carbon celebrated the expansion of its production capacity at its St. Marys site (USA). SGL Carbon has invested around USD 100 million in the exp...

13/10/2026

Rohde & Schwarz presents unique R&S NTS transfer standards for RF power traceability applications up to 170 GHz

Rohde & Schwarz presents unique R&S NTS transfer standards for RF power traceabi...

13/10/2026

APPLICATIONS TO SERVE ON THE INDEPENDENT PANEL FOR THE APPOINTMENT OF THE NATIONAL FILM AND VIDEO FOUNDATION COUNCIL

The Minister of Sport, Arts and Culture, Mr Gayton McKenzie, invites suitably qu...

13/10/2026

NOMINATION OF CANDIDATES TO SERVE ON THE COUNCIL OF THE NATIONAL FILM AND VIDEO FOUNDATION (NFVF)

The Minister of Sport, Arts and Culture, Mr Gayton McKenzie, invites members of ...

13/10/2026

Latest LYNX yellobrik Converter Enables Synchronization across both SDI and IP Environments

Share Copy link Facebook X Linkedin Bluesky Email...

13/10/2026

SBE 39 Plans Tech Symposium for November

Share Copy link Facebook X Linkedin Bluesky Email...

13/10/2026

Apple Makes Siri AI the Focus of its New Apple TV 4K

Share Copy link Facebook X Linkedin Bluesky Email...

13/10/2026

Report: Increasing Number of Viewers Prefer Highlights Over Full Episodes

Share Copy link Facebook X Linkedin Bluesky Email...

13/10/2026

Tegna, Disney Renew ABC Affiliation Pacts in 13 Markets

Share Copy link Facebook X Linkedin Bluesky Email...

13/10/2026

GatesAir Will Introduce High-Efficiency UHF Transmitters at NAB Show New York

Share Copy link Facebook X Linkedin Bluesky Email...

13/10/2026

Court TV Taps Yospace for Streaming Ad Insertion

Share Copy link Facebook X Linkedin Bluesky Email...

13/10/2026

Tegna Taps Trio of Regional Group GMs

Share Copy link Facebook X Linkedin Bluesky Email...