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

01/06/2026

Dolby Sets the New Standard for Premium Entertainment at CES 2026

January 6 2026, 05:30 (PST) Dolby Sets the New Standard for Premium Entertainment at CES 2026 Throughout the week, Dolby brings to life the latest innovatio...

01/05/2026

NBCUniversal's Peacock to Be First Streamer to Integrate Dolby's Full Suite of Premium Picture and Sound Innovations

January 5 2026, 18:30 (PST) NBCUniversal's Peacock to Be First Streamer to ...

01/04/2026

DOLBY AND DOUYIN EMPOWER THE NEXT GENERATON OF CREATORS WITH DOLBY VISION

January 4 2026, 18:00 (PST) DOLBY AND DOUYIN EMPOWER THE NEXT GENERATON OF CREATORS WITH DOLBY VISION Douyin Users Can Now Create And Share Videos With Stun...

24/01/2026

Pay TV Groups Rebut NABs ATSC 3.0 Transition Plans

Share Share by: Copy link Facebook X Linkedin Pinterest Bluesky Email...

24/01/2026

APTS, PBS Tell FCC Not to Set a Firm Date for ATSC Sunset

Share Share by: Copy link Facebook X Linkedin Pinterest Bluesky Email...

24/01/2026

Baron Weather Promotes Senior Executives Steve Bray, Cherie Smyly

Share Share by: Copy link Facebook X Linkedin Pinterest Bluesky Email...

23/01/2026

UEFA Women's EURO 2025 drives surge in ad-funded streaming as Yospace powers 6 billion one-to-one advertisements

Staines-upon-Thames, UK, 29 July, 2025 - Yospace, the global leader in Dynamic A...

23/01/2026

WWE's Virtual Production Playbook: How the Professional Wrestling Super Power Built Creative Flexibility in the Studio

WWE's Virtual Production Playbook: How the Professional Wrestling Super Powe...

23/01/2026

Tight Set Up: Squeezing the PSA's Tournament of Champions Into Grand Central Station for the Annual Squash Extravaganza

Tight set up: Squeezing the PSA's Tournament of Champions into Grand Central...

23/01/2026

AFC Championship Preview: Behind the Scenes With NFL on CBS' Producer Jim Rikhoff and Director Mike Arnold

AFC Championship Preview: Behind the Scenes With NFL on CBS' Producer Jim R...

23/01/2026

NFC Championship Preview: FOX Sports Director Rich Russo Talks Technology, Storytelling Heading Into Season Finale

NFC Championship Preview: FOX Sports Director Rich Russo Talks Technology, Story...

23/01/2026

Introducing the Best New Artist 2026 Nominees

Spotify's annual Best New Artist celebration honors the rising stars whose talent, creativity, and dedication have propelled them to the music industry'...

23/01/2026

L3Harris Data Links: Resilient, Mission-Proven C5ISR Solutions

Coalition military forces operating across the vast geography of the Indo-Pacific rely on interoperable, secure data links to share intelligence, surveillance a...

23/01/2026

Why Air Forces Are Choosing L3Harris Airborne Early Warning and Control

Artist rendering of L3Harris Technologies' AERIS next generation airborne early warning and control solution....

23/01/2026

The C-130 Cockpit Advantage

The U.S. Air Force AMP Increment II aircraft at L3Harris' facility in Waco, Texas. L3Harris has modernized C-130 avionics since 1985, delivering digital coc...

23/01/2026

A Game-Changer for Caption & Subtitle QC - Now Integrated!

Paramount is transforming its operations by unifying the media supply chains of their top brands into a scalable global pipeline. This transformation enhances ...

23/01/2026

Should we automate or augment with AI?

Every delay costs. When a subtitle fails QC, even the smallest issue can mean missed deadlines, extra vendor costs, or frustrated teams. The new Accurate.Video ...

23/01/2026

Nielsen Renews Partnership With Gray Media for Local TV Measurement Across All of Its 113 DMAs

Multi-year deal utilizes Nielsen's full suite of local audience marketing in...

23/01/2026

Nielsen Announces Pricing of Upsized $1.5 Billion Offering of Senior Secured Notes by its Affiliate

New York, NY January 21, 2026 - Neptune BidCo US Inc. (the Issuer or the Co...

23/01/2026

ALT Systems Launches PixSpan Data - Making PixMover Platf...

ALT Systems, Inc., a leading system integrator and technology solutions provider for the media and entertainment industry, today announced the launch of PixSpan...

23/01/2026

AIMS to Officially Launch IPMX as a Fully Developed Stand...

The Alliance for IP Media Solutions (AIMS) will mark a major milestone for Pro AV-over-IP at ISE 2026 with the official launch of Internet Protocol Media Experi...

23/01/2026

KRK to Premiere New Flagship V Series Five Monitors for P...

KRK, a leader in professional studio monitoring for nearly four decades, will unveil the all new V Series Five at the 2026 NAMM Show, offering attendees an excl...

23/01/2026

SMPTE Announces Steve LLamb as ISO-TC 36 Cinematography C...

SMPTE , the home of media professionals, technologists, and engineers, today announced Steve LLamb, Vice President of Technology Standards and Solutions for Cin...

23/01/2026

IBC announces call for Technical Papers for IBC2026 Confe...

IBC today announces that the call for Technical Papers is now open for the IBC2026 Conference, inviting innovators from across the global media, entertainment, ...

23/01/2026

Asharq News AMPPs up its Cloud-Based Disaster Recovery

Grass Valley has announced that Asharq News, the leading multi-platform Arabic news service owned by the Saudi Research & Media Group (SRMG), has expanded its c...

23/01/2026

Rohde & Schwarz, Qualcomm, and Motorola demonstrate succe...

At the SET Expo 2025, a consortium including Qualcomm Technologies, Inc., Motorola, and Rohde & Schwarz successfully demonstrated a real-world proof-of-concept ...

23/01/2026

Dalet Appoints Gwen Braygreen as Executive Vice President...

Dalet, a leading technology and service provider for media-rich organizations, today announced the appointment of Gwen Braygreen as Executive Vice President and...

23/01/2026

Industry Leaders Unite to Create First-Ever End-to-End Cr...

Alfalite, Brainstorm, Dejero, Domo Broadcast Systems, FOR-A, KitPlus, Ontario Soluciones and RGB Spectrum partner to demonstrate revolutionary integrated soluti...

23/01/2026

Vizrt Powers a New Era of Corporate Viewer Engagement wit...

Vizrt, the leader in live production technology revolutionizing viewer experience and engagement, expands its team to ignite a new era of professional-grade pro...

23/01/2026

LOGIC media solutions becomes launch partner of the AWS E...

LOGIC media solutions, an Amazon Web Services (AWS) Advanced Partner specialising in AWS-based media workflows, is one of the official launch partners of the ne...

23/01/2026

Chyron Promotes Owen Seaton to VP, Venue Solutions

Share Share by: Copy link Facebook X Linkedin Pinterest Bluesky Email...

23/01/2026

MPA Backs ATSC 3.0 Content Security Protections in FCC Comments

Share Share by: Copy link Facebook X Linkedin Pinterest Bluesky Email...

23/01/2026

NDI 6.3 Core Tech Update to Be Demoed at ISE

Share Share by: Copy link Facebook X Linkedin Pinterest Bluesky Email...

23/01/2026

ISE: Sony Electronics Announces Crystal LED S Series

Share Share by: Copy link Facebook X Linkedin Pinterest Bluesky Email...

23/01/2026

SMPTE Announces Steve LLamb as ISO/TC 36 Cinematography Chair

Share Share by: Copy link Facebook X Linkedin Pinterest Bluesky Email...

23/01/2026

RTDNA Foundation Announces 2026 First Amendment Award Honorees

Share Share by: Copy link Facebook X Linkedin Pinterest Bluesky Email...

23/01/2026

Paramount+ Launches Programmatic Access to Marquee Live Sports

Share Share by: Copy link Facebook X Linkedin Pinterest Bluesky Email...

23/01/2026

Sky appoints Lisa Clark as Commissioning Executive for SNL UK

Friday 23 January 2026 Sky appoints Lisa Clark as Commissioning Executive for SNL UK Lisa Clark headshot PNG (468KB) Lisa Clark joins Sky as Commissioning E...

23/01/2026

Pavane' Drops Teaser Ahead of February 20 Debut - A Tender Story of Three Hearts Finding Their Way

Back to All News Pavane' Drops Teaser Ahead of February 20 Debut - A Tende...

23/01/2026

FY2025 Full Year Results

FY2025 Full Year Results...

23/01/2026

Oscar nomination for RT supported film Retirement Plan

RT is delighted to announce that the RT and F s ireann / Screen Ireland supported short film Retirement Plan has been nominated for Best Animated Short at th...

22/01/2026

SVG Students To Watch: Chuck Luarasi, Curry College

SVG Students To Watch: Chuck Luarasi, Curry CollegeThe Massachusetts native is cutting his teeth with Harvard Athletics, Cape Cod Baseball LeagueBy Brandon Cost...

22/01/2026

Follow the Money, Episode 4: Talking Tech, Sports, and Private Capital With Sam McCleery and Alysse Soll

Follow the Money, Episode 4: Talking Tech, Sports, and Private Capital With Sam ...

22/01/2026

Fever Pitch: WRC is Back for the Start of the 2026 Season With Rallye Monte-Carlo in 1080p For the First Time

Fever pitch: WRC is back for the start of the 2026 season with Rallye Monte-Carl...

22/01/2026

FloSports Prepares To Broadcast Outdoor Hockey Game Amidst Brutally Cold Temperatures in Southern Minnesota

FloSports Prepares To Broadcast Outdoor Hockey Game Amidst Brutally Cold Tempera...

22/01/2026

As Paramount+ Enters the Octagon, UFC's Craig Borsari Previews Production Plans, Teases Innovations

As Paramount Enters the Octagon, UFC's Craig Borsari Previews Production Pl...

22/01/2026

A Recluse Goes on a Quest To Save His Dog and Fight a Demon in OBEX

By Jordan Crucchiola It's a desire you hear so often among those in filmmaking circles. I just want to make cool stuff with my friends. With the NEXT selec...

22/01/2026

Lyrical Seeds Is a Stunning Portrait of Black Generational Farmers

Brittany Shyne attends the 2025 Sundance Film Festival premiere of Seeds at The Ray Theatre on January 25, 2025, in Park City, UT. (Photo by Robin Marshall/Sh...