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

12/11/2026

Blackmagic Design Announces Blackmagic Ambisonic Microphone

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

12/11/2026

CES Honors LGs Signature OLED, Wallpaper TVs

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

12/11/2026

Broadsmart launches monetization capabilities to power OT...

Broadpeak and Magnite enable advertising on Afree TV to unlock new revenue opportunities for African content providers Broadsmart, a technology integrator deli...

12/11/2026

PlayBox Neo makes an impact delivering flexible broadcast...

PlayBox Neo is perceived in the industry as an innovator way ahead of its time, already making a profound impact in the Asia-Pacific region, where the company i...

12/11/2026

Filmbankmedia selects Fincons Group s AllRights to manage...

This agreement marks the next step in a multi-year digital transformation programme as distribution expands across more clients and markets, requiring reliable ...

12/11/2026

Euro TV Upgrades OB Vehicle With Lawo Console

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

12/11/2026

Scripps Names Christina Hartman Chief Technology Officer

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

12/11/2026

ABC Names Martin Ortiz GM of WTVD-TV Raleigh-Durham

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

12/11/2026

Adobe, Google Expand AI and Creative Tool Integration

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

12/11/2026

NIH awards $7 million to study what makes immune responses last

LA JOLLA, CA-Central to many immune responses are antibodies, which identify foreign substances and help remove them from the body. The immune cells that produc...

12/11/2026

Bill & Ted Rock Opera Taken to New Heights After Student Workshop

Bill & Ted Rock Opera Taken to New Heights After Student Workshop Emerging artists from Berklee, Boston Conservatory, and Emerson collaborated with industry p...

12/11/2026

RT Coverage of European Political Community Summit in Dublin

RT will provide extensive coverage of the European Political Community Summit in Dublin across television, radio and online on Thursday, 12 November 2026. As p...

11/11/2026

Charlotte Hornets Become One of NBAs First Teams With WiFi 7 at Spectrum Center

Hornets Sports & Entertainment (HSE) and Spectrum have installed WiFi 7 as part of Spectrum's Managed WiFi solution within Charlotte's recently renovate...

11/11/2026

The Minor League Resolution Crisis: Bridging the Gap Between Living Room 4K and In-Venue Reality

As 4K displays normalize in living rooms and economy flights, aging minor league...

11/11/2026

Northwestern University Taps Grass Valley for Control Room Tech at Ryan Field

Northwestern University has deployed Grass Valley production switching and camera technology at its new Ryan Field stadium in Evanston, Illinois. The installati...

11/11/2026

Central Christian Church Links Remote Production Teams With Clear-Com's Gen-IC Virtual Intercom

Central Christian Church has transformed communication across its live productio...

11/11/2026

Capital One Arena Receives New Tech Enhancements to Upgrade the Fan Experience

Monumental Sports & Entertainment developed the new Cisco Command Center for all of the building's technology Prior to the start of the busy October schedu...

11/11/2026

OutKick Debuts New Studio for The Craig Carton Show in New York as Nashville Powers Distributed Production Operation

The new Manhattan set is the latest addition to a network of studios, home setup...

11/11/2026

MLB Network Turns Up the Production for Fourth-Annual MLB Awards in Las Vegas

With a remodeled set, an expanded camera package, and a Steve Aoki performance, MLB Network's production team raises the bar again at The Chelsea...

11/11/2026

Spitfire Audio & Eric Whitacre launch Eternity

Third collaboration with Grammy-winning composer & conductor Spitfire Audio have announced the release of Eternity, the third sample library to be created a...

11/11/2026

Modbap release Wax Theory

Eurorack experts launch vinyl-inspired plug-in When praised Eurorackers Modbap revealed their first software effect recently, they stated it was the first r...

11/11/2026

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

New York, NY - November 10, 2026 - Neptune BidCo US Inc. (the Issuer or the C...

11/11/2026

Pliant Technologies Ships CrewCom Flex

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

11/11/2026

Blue Lucy Integrates With Comcast Technology Solutions

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

11/11/2026

Hitomi Broadcast appoints Hibino Technos Inc. as value-ad...

New partnership strengthens local access to Hitomi s precision timing solutions, with MatchBox, MatchBox Glass and Spectra on show at Inter BEE 2026 Hitomi Br...

11/11/2026

Frequency Ads and OpenGlass Deploy Stream-Native In-Scene...

Frequency, the engine behind many of the worlds leading streaming television channels, and OpenGlass, the first SSP built for advanced CTV advertising, today an...

11/11/2026

Operative Appoints Brian Beirne as Senior Vice President...

Operative today announced the appointment of Brian Beirne as Senior Vice President, Commercial Growth. Beirne returns to Operative at a pivotal moment, as its U...

11/11/2026

U.S. Streamers Triple Amount of Creator Led-Programming in One Year

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

11/11/2026

Adobe Upgrades Creative Suite

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

11/11/2026

NABA Joins Trusted Partner Networks Fix It or Risk It Campaign

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

11/11/2026

Apple TV to Debut Sign Language Option

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

11/11/2026

Senator Questions Carr's Future at FCC

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

11/11/2026

Flanders Scientific Launches Seven New Monitors

Flanders Scientific (FSI), an Atomos company, has introduced seven new QD-OLED reference monitors across two new series, the VP and V. Designed for professional...

11/11/2026

Pliant Technologies Announces CrewCom Flex Now Shipping i...

Pliant Technologies' highly anticipated CrewCom Flex product line is now shipping in the United States. As the industry's first frameless matrix interc...

11/11/2026

Desert Palms Captured with Blackmagic URSA Cine Immersive

Desert Palms Captured with Blackmagic URSA Cine Immersive Brie Clayton November 10, 2026 0 Comments Director Tristan Seniuk premieres immersive short ...

11/11/2026

Avid launches Ready to Play, putting new AI creative capabilities into editors' hands

Avid launches Ready to Play, putting new AI creative capabilities into editors&#...

11/11/2026

Adobe Powers a New Era of Creativity, Bringing Agents and Tools to Creatives Wherever and However They Create

Adobe Powers a New Era of Creativity, Bringing Agents and Tools to Creatives Whe...

11/11/2026

If your fraud tool detects invalid traffic, what happens next?

Fraud detection and removal tools play an important role in defending advertising budgets against invalid traffic. A robust fraud tool, independently accredited...

11/11/2026

Irish culture and music take centre stage at COP31 event in Turkiye this Friday in partnership with RT lyric fm

RT lyric fm is partnering with the Department of Climate, Energy, and the Envir...

11/11/2026

Meet the eight finalists for RT TODAY's Christmas Home Cook Competition

RT TODAY show has announced the eight finalists for its festive amateur cook competition Christmas Home Cook'. Following the success of TODAY TV Home C...

10/11/2026

ENCO Provides Live Captioning and Voice Translation at NAB Show New York

ENCO provided live stage captioning, multilingual translation and new audio pass-through services at NAB Show New York, held Oct. 21-22 at the Javits Center, an...

10/11/2026

Vizrt Demonstrates Story-Aware Graphics With Story Object Model Open Standard

Vizrt has built a proof-of-concept integration with the Story Object Model (SOM), shown at IBC 2026 in Amsterdam as part of the Smart Stories Accelerator projec...

10/11/2026

Gravity Media Delivers Live Vertical Feed for Meta Connect 2026

Gravity Media's Creative and Managed Services team produced a dedicated live 9:16 vertical broadcast workflow for Meta Connect 2026. Meta asked for more tha...

10/11/2026

Blue Stream Fiber Taps Ateme for OTT Delivery Modernization

Blue Stream Fiber has standardized its OTT streaming services on Ateme's end-to-end video platform for its high value linear channels, providing more effici...

10/11/2026

Haivision Releases Survey for the 2027 Broadcast Transformation Report

Haivision has opened the survey for its 2027 Broadcast Transformation Report, inviting broadcast, media, and production professionals worldwide to share their p...

10/11/2026

League of Live Stream Theater Leverages LiveU to Deliver Rent: The 30th Anniversary Concert to 70,000 Streaming Ticket Buyers Worldwide

The League of Live Stream Theater (LOLST), the nonprofit organization partnering...

10/11/2026

USA Sports To Broadcast All Three Inaugural Races of The Horse Racing League in Spring 2027

USA Sports and The Horse Racing League (HRL) has announced a partnership to air ...

10/11/2026

Matrox Video Launches The Sync, a New Customer-Led Video Podcast

Matrox Video has launched The Sync, a new video podcast series bringing together Matrox Video experts, customers, and partners to explore the technical and busi...

10/11/2026

The CW Network, Professional Bull Riders Sign Multi-Year Extension to Broadcast PBR Team Series Events

The CW Network and Professional Bull Riders (PBR) have announced a new multi-yea...