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

09/10/2026

Dolby Expands Dolby OptiView Platform with New Capabilities at IBC 2026

September 10 2026, 06:00 (PDT) Dolby Expands Dolby OptiView Platform with New Capabilities at IBC 2026 New Sports Intelligence helps providers better unders...

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

18/09/2026

IBC 2026 Tech Moves Beyond the Gloss and Into the Rack

IBC 2026 Tech Moves Beyond the Gloss and Into the Rack If you spent any time in the halls of the RAI this year, you noticed a clear shift in conversation. The c...

18/09/2026

SVG GameDay, Ep. 31: Seattle Mariners Tim Walsh - Creative Content in the Emerald City

In-venue and creative video staffers at the professional and collegiate level ha...

18/09/2026

Qvest Appoints Jens Miedek as SVP Sales, Media and Entertainment

Qvest has appointed Jens Miedek as Senior Vice President Sales, Media and Entertainment. Before joining Qvest, Miedek spent 16 years at Riedel Communications an...

18/09/2026

Fonn Group Acquires everviz, Relaunches as Teikna Graphics Platform

Fonn Group has acquired full ownership of everviz, a cloud-native platform for interactive charts, maps, and data-driven graphics, and will rebrand it as Teikna...

18/09/2026

OWC Acquires OpenDrives to Expand Enterprise Storage Portfolio

Other World Computing (OWC) has announced the acquisition of OpenDrives, a provider of software-defined video and rich media storage management solutions. The a...

18/09/2026

Kaltura and Verimatrix Partner on Content Security for OTT and Cloud TV

Kaltura and Verimatrix have announced a partnership integrating Verimatrix's Digital Rights Management and security capabilities into Kaltura's Cloud TV...

18/09/2026

Movicom's Robycam Aerial Cable System Deployed at World Nomad Games

The sixth edition of the World Nomad Games combined traditional sports, large-scale cultural performances, and some decidedly modern broadcast technology. Held ...

18/09/2026

DAZN and Super League Basketball Extend Partnership for 2026-27 Season

DAZN and Super League Basketball (SLB) have extended their partnership for the 2026-27 season. Every Championship, Cup, and Play-Off fixture will be available l...

18/09/2026

Nielsen Shifts Streaming Content Ratings to Daily Delivery Cadence

Nielsen has announced that its Streaming Content Ratings (SCR) product will move from weekly to daily data delivery, with clients now receiving viewership data ...

18/09/2026

ABC to Air LALIGAs ElClsico for First Time on October 25

ESPN will present LALIGA's ElCl sico on ABC for the first time, with FC Barcelona vs. Real Madrid airing Sunday, October 25 at 4 p.m. ET. A one-hour pre-mat...

18/09/2026

University of Pennsylvania and JMI Sports Extend Multimedia Rights Partnership Through 2035-36

The University of Pennsylvania's Division of Recreation and Intercollegiate ...

18/09/2026

Charlotte Hornets Name DAZN Exclusive Direct-to-Consumer Streaming Partner

The Charlotte Hornets have announced DAZN as their exclusive direct-to-consumer streaming partner for the 2026-27 NBA season. The service launches immediately, ...

18/09/2026

With New AM Radio Act, Live Sports Remain on the Air - and on the Road

Broadcast sports' original medium will let drivers keep on hearing the plays thanks to a new bill set to pass the Senate....

18/09/2026

Apple TV Expands iPhone Camera Deployment for Friday Night Baseball' Finale at Dodger Stadium

Fourteen iPhone 18 Pro devices - eight connected over a T-Mobile Private 5G Netw...

18/09/2026

Minnesota Lynx to Air Final Regular Season Local Broadcast on FOX 9+

The Minnesota Lynx have announced that their final local broadcast of the 2026 regular season will air free on FOX 9 following the shutdown of Victory . The Ly...

18/09/2026

Monumental+ Now Available on Prime Video

Monumental Sports Network (MNMT) has announced that its Monumental+ streaming service is now available as a subscription through Prime Video, giving Capitals an...

18/09/2026

WTGL Announces Inaugural Season Schedule on ESPN, ABC, and ION

WTGL, the women's team golf league created by TMRW Sports in partnership with the LPGA, has announced its inaugural season schedule. The season premieres Su...

18/09/2026

Ratings Roundup: NFL Week 1 Down 13% From Record 2025; ESPN Earns Its Best US Open Mens Final on Record

Ratings Roundup is a rundown of recent ratings news and is derived from press re...

18/09/2026

SNS Wins IAMT Award For Addressing What Video Editors Need In The AI Era

Studio Network Solutions (SNS) has won Best Journal Article at the 2026 IAMT Impact Awards for What Video Editors Need When Everything Is Changing Around Them, ...

18/09/2026

ReSing Voices Vol 2 from IK Multimedia

10 new voice models join line-up The latest expansion for IK Multimedia's AI-powered vocal-modelling software has arrived, delivering a set of 10 new vo...

18/09/2026

Museum of Synthesizers present the Arturia World Tour

A day of hands-on synthesis, sound design & performance On Saturday 26 September 2026, The Museum of Synthesisers will be hosting a full day of hands-on syn...

18/09/2026

Fix It or Risk It: recognize risk in ordinary moments

HPA is supporting Fix It or Risk It, a non-commercial, industry-wide public-service campaign helping organizations across the media and entertainment supply cha...

18/09/2026

AgileTV wraps up IBC 2026 with two industry awards

AgileTV has successfully wrapped up its participation at IBC 2026 in Amsterdam, following four days of conversations with customers, partners and industry profe...

18/09/2026

aconnic AG invites to a Virtual Investor Conference

aconnic AG (ISIN: DE000A0LBKW6), Munich, invites its shareholders and investors to a Virtual Investor Conference on Tuesday, September 29th, 2026, at 11.00 am. ...

18/09/2026

DHD Demonstrates the Future of Broadcast Audio Production...

DHD reports a high level of interest in its range of audio production equipment on all four days of the September 11-14 International Broadcasting Convention in...

18/09/2026

Sonnet Announces Thunderbolt 5 eGPU With 850-Watt Power Supply and Integrated Dock for Windows 11 Computers

Sonnet Announces Thunderbolt 5 eGPU With 850-Watt Power Supply and Integrated Do...

18/09/2026

DeckBridge adds live Resolve playback and Fairlight controls to Stream Deck

DeckBridge adds live Resolve playback and Fairlight controls to Stream Deck Brie Clayton September 17, 2026 0 Comments DeckBridge starting profiles ac...

18/09/2026

Learn to arrange tracks using Color With Live's Free Stencil Pack

Learn to arrange tracks using Color With Live's Free Stencil Pack Brie Clayton September 17, 2026 0 Comments Stencils are Color With Live's or...

18/09/2026

Berklee Establishes Susan Tedeschi Scholarship in Honor of Grammy-Winning Alumna

Berklee Establishes Susan Tedeschi Scholarship in Honor of Grammy-Winning Alumna The scholarship is announced as Tedeschi returns to headline the Berklee Bloc...

18/09/2026

The inside scoop on attention-grabbing market assets from those in the know

The inside scoop on attention-grabbing market assets from those in the know 17 September 2026 (L-R): Sophie Green, Todd Brown and Edwina Waddy Find this episo...

18/09/2026

The new iPhone 18 Pro, iPhone 18 Pro Max, Apple Watch Series 12, and AirPods 5 now available to buy on Sky Mobiles award-winning network

Friday 18 September 2026 The new iPhone 18 Pro, iPhone 18 Pro Max, Apple Watch ...

18/09/2026

Grand finale: Bringing a distinctly stylized visual identity to all five seasons of The Boys

Senior Colorist Siggy Ferstl of Company 3 has been grading The Boys since the sh...

17/09/2026

Prime Video Embarks on Fifth Exclusive Season of Thursday Night Football With Innovation, Experience in Tow

Lions vs. Bills will also be the first regular-season game at new Highmark Stadi...

17/09/2026

Teradek Launches Bolt 7 with Integrated 900MHz Data Pipeline

Teradek has announced Bolt 7, a wireless video and data system that adds an integrated 900MHz radio to the Bolt's zero-delay video pipeline. The 900MHz chan...

17/09/2026

DAZN Announces Three Executive Appointments

DAZN has announced three appointments to its executive leadership team, all reporting to CEO Shay Segev effective immediately. Patrick Delany has been appointe...

17/09/2026

Monumental Sports and Entertainment Announces Leadership Changes

Monumental Sports and Entertainment (MSE) has announced a leadership restructuring. Zach Leonsis has been named President and Vice Chairman, a newly created pos...

17/09/2026

CP Communications and Red House Streaming Named 2026 Best of Florida Winners

CP Communications has been named Best of Florida for Audio-Visual Services, and its subsidiary Red House Streaming has been named Best Movie and Recording Studi...

17/09/2026

Scripps Sports and ION to Broadcast Shriners Childrens East-West Bowl

Scripps Sports and ION have announced a broadcast partnership for the Shriners Children's East-West Bowl, the nation's oldest college all-star football ...

17/09/2026

espnW Announces Full Agenda for 2026 Women + Sports Summit

The 17th annual espnW: Women + Sports Summit, presented by Toyota, will take place October 14-16 at the Ojai Valley Inn in Ojai, California, with virtual attend...

17/09/2026

PAMA and Shure Announce 2026 Mark Brunner Professional Audio Scholarship Recipients

The Professional Audio Manufacturers Alliance (PAMA) and Shure Incorporated have...

17/09/2026

LNK Group Migrates Five Networks to Grass Valley AMPP

Lithuanian broadcaster LNK Group has completed a migration of playout and media management for its five national television networks - LNK, BTV, TV1, InfoTV, an...

17/09/2026

Net Insight Establishes Pan-Asian Live Media Network for Nimbra 520 Trials

Net Insight has announced a pan-Asian live media network created with its regional partners, giving broadcasters, production companies, and media service provid...

17/09/2026

SVG Students to Watch: Adam Black, University of South Florida

After a high school football injury, the Orlando native found a new path in video production, gaining experience on ESPN college football broadcasts, Tampa Bay ...

17/09/2026

Image-Line & Antares reveal AutoTune Go

Popular DAW gains free pitch-correction tool Image-Line have teamed up with Antares to kit their popular DAW software out with a built-in pitch-correction p...

17/09/2026

Gibson & Baggs unveil HiFi DNA pickup

Promises unprecedented realism, dynamic nuance and clarity Gibson have teamed up with acoustic pickup experts Baggs, creating a next-generation' pickup...

17/09/2026

VSL introduce Synchron Cimbalom & World Percussion II

Two new libraries join percussion line-up VSL (Vienna Symphonic Library) have just launched two new libraries that bring some intriguing new instruments int...

17/09/2026

Arturia update the MiniFreak

Hardware & plug-in versions gain new features Arturia have just released a free update that brings some significant new features to their MiniFreak synthesi...