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

04/08/2026

Dalet Announces Commercial Availability of Dalia, Bringing Media-Aware Agentic AI to Enterprise Productions

Dalet, a leading technology and service provider for media-rich organizations, t...

04/07/2026

Detective Conan: Fallen Angel of the Highway Opens in Dolby Cinemas Across Japan, Presented in Dolby Atmos and Dolby ...

April 7 2026, 19:00 (PDT) Detective Conan: Fallen Angel of the Highway Opens in...

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

29/05/2026

FCC Reminds Broadcasters of Their Public Interest Obligations

Share Copy link Facebook X Linkedin Bluesky Email...

29/05/2026

Roku Unveils New TV Home Screen

Share Copy link Facebook X Linkedin Bluesky Email...

29/05/2026

Sinclair and AMP Sports Announce New 'Style of Play' Podcast

Share Copy link Facebook X Linkedin Bluesky Email...

29/05/2026

Study: YouTube Leads Global Streaming Ad Growth

Share Copy link Facebook X Linkedin Bluesky Email...

29/05/2026

TV Pharma Ads Are Getting Longer, According to VAB

Share Copy link Facebook X Linkedin Bluesky Email...

29/05/2026

At the Intersection of Music and Dance, an Epic Collaboration

At the Intersection of Music and Dance, an Epic Collaboration Boston Conservatory musicians and dancers found creative parallels in their recent performance o...

29/05/2026

Super Garden 2026 winner revealed

At just 20 years old, Sean Melia from Summerhill Co. Meath has been revealed as the winner of Super Garden 2026. Sean is the youngest ever contestant and winner...

29/05/2026

May 28, 2026

Experimental HIV vaccine achieves a long-sought goal In a first for the field, all non-human primates given a new series of vaccines generated antibodies capabl...

28/05/2026

How Thomson's Climate Crisis Toolkit is helping journalists tell the climate story

Thomsons Climate Crisis Toolkit is already being put to work, helping journalist...

28/05/2026

Matt Gangl and Pete Macheska on FOX MLB's Huge Night and Unforgettable Postseason Run

FOX Sports' MLB coverage dominated the night at the 47th Annual Sports Emmy ...

28/05/2026

FOX's Mike Davies and Team on Win as Outstanding Technical Team for 2025 World Series

One of the most memorable postseasons in baseball history would have had no memo...

28/05/2026

NBC Sports' Rob Hyland Reflects on an Unforgettable Sunday Night Football Season

NBC's Sunday Night Football is among the most-decorated and most-watched pro...

28/05/2026

Prime Video's John Ward and Mike Francis on Groundbreaking NBA on Prime Video Studio

The 2026 Sports Emmys marked a watershed moment for Prime Video Sports. After bu...

28/05/2026

18th-Annual SVG College Sports Media Awards Crown Years Best Work in Atlanta

Hosted by ESPN Senior Writer Ryan McGee, the ceremony honored winners from athletic departments, conference offices, professional networks, production companies...

28/05/2026

Networks Unveil 2026 College Football Broadcast Schedules

Major rights-holders rolled out their 2026 college football slates today, offering a first look at marquee windows, kickoff partners, and conference distributio...

28/05/2026

NHL's Steve Mayer on the Behind-the-Scenes Access of 4 Nations Face-Off: Unveiled

The 4 Nations Face-Off, an international competition that launched in February 2...

28/05/2026

ESPN's Manny de la Fe on the Gratifying Conclusion to Inaugural Season in Spanish

Soccer is a truly global sport, and, to match the U.S. viewing audience's in...

28/05/2026

CBS Sports' Graphics Team on the Vision of The NFL Today's Virtual Time Machine

The NFL Today, CBS Sports' top-of-the-line NFL studio show, has a storied hi...

28/05/2026

Prime Video's Mike Muriano on the Immediate Success of Fan Optionality Feature

Prime Video is no stranger to innovation, and, within the realm of live streamin...

28/05/2026

FOX Sports' Jamie McCombs on Showcasing MLB Atmosphere With Immersive Audio

The crack of the bat, the pop of the glove, and the cheer of the crowd: those are three prime examples of the glorious sounds fans hear on televised baseball ga...

28/05/2026

CBS Sports' Harold Bryant on Capturing the Essence of March Madness in the Studio

Every year, March Madness captivates the entire sports world. Nonstop action, un...

28/05/2026

NBC Sports' Chad Hudson on Developing Graphics for the Return of NBA on NBC

NBA on NBC was an integral part to live sports production in the 1990s, and, when the league made these media rights available, NBC Sports saw an opportunity to...

28/05/2026

MLB's Ryan Zander on the Tech Innovation Behind the League's UmpCam AR System

UmpCam is a technological wrinkle that has given fans unprecedented views of wha...

28/05/2026

T-Mobile Brings America's Best Network to the USGA

T-Mobile and the United States Golf Association (USGA) announced a multi-year partnership, making T-Mobile the Official 5G Network Partner of the U.S. Women'...

28/05/2026

Time and Water Is a Moving Portrait of Family History and a Warming Iceland

By Gina McIntyre (L-R) Sara Dosa and Andri Sn r Magnason attend the Time and Water premiere during the 2026 Sundance Film Festival at Library Center Theatre ...

28/05/2026

More Control, Faster Playlist Editing, and Other Updates for Everyday Listening on Spotify

A little refresh can go a long way. We've been making behind-the-scenes upda...

28/05/2026

Introducing the Newest Winners of Spotify's Creator Milestone Awards

Since early last year, our quarterly Creator Milestone Awards have celebrated podcasts from around the world that hit major streaming milestones on Spotify. Tod...

28/05/2026

Rapid Flow launch Omniclock

New software-based MIDI multi-clock announced Rapid Flow have just announced the launch of a new MIDI utility plug-in that aims to solve one of the most per...

28/05/2026

SSL announce the SSL 1

Company introduce most affordable interface yet SSL's range of audio interfaces has just gained its latest, and smallest member, the SSL 1. Designed to ...

28/05/2026

Deconstruct Minimal from Sonicware

New compact drum machine & sampler announced The latest instrument from Sonicware sees the company kick off an all-new Deconstruct series with a compact dru...

28/05/2026

Get fit for the FIFA World Cup 2026 with new SBS On Demand features for the ultimate viewing experience

Get fit for the FIFA World Cup 2026 with new SBS On Demand features for the ult...

28/05/2026

Hellenic Civil Aviation Authority modernizes nationwide ATC voice communications with Rohde & Schwarz CERTIUM Radios

Hellenic Civil Aviation Authority modernizes nationwide ATC voice communications...

28/05/2026

Amazon MGM Studios, AWS Launch GenAI Creators' Fund

Share Copy link Facebook X Linkedin Bluesky Email...

28/05/2026

AudioShake Launches Copyright Compliance System

Share Copy link Facebook X Linkedin Bluesky Email...

28/05/2026

Big Blue Marble Advances 5G Broadcast

Share Copy link Facebook X Linkedin Bluesky Email...

28/05/2026

Will Must-Carry Make It to NextGen TV?

Share Copy link Facebook X Linkedin Bluesky Email...

28/05/2026

Swiss Broadcaster Canal Alpha Streamlines Playout to Deli...

Harmonic (NASDAQ: HLIT) today announced that Swiss broadcaster Canal Alpha has deployed Harmonics award-winning, software-based XOS Advanced Media Processor to ...

28/05/2026

Calrec Scales ImPulseV to Expand Choice in Virtualized Audio Workflows

Share Copy link Facebook X Linkedin Bluesky Email...

28/05/2026

Berliner Ensemble Upgrades Backstage Infrastructure With...

Riedel Communications today announced that Berliner Ensemble, one of Berlin's five major theater companies, has expanded its backstage communications and te...

28/05/2026

Digital Alert Systems Ed Czarnecki to Speak on Advanced E...

Company's VP Government and International to Address How Broadcasters Can Operationalize Advanced Emergency Information for NextGen TV Digital Alert Syst...

28/05/2026

Radio BGM Upgrades and Futureproofs with DHD SX2 Audio Mi...

Radio BGM (https://radiobgm.org.uk/), Llanellis multiple-award-winning community and hospital radio station, has invested in a DHD SX2 audio mixing console and ...

28/05/2026

Calrec Scales ImPulseV to Empower Broadcasters with Great...

Further strengthening its virtualisation strategy to fully support broadcasters as they enter a new broadcast age, Calrec announces an expansion to its ImPulseV...

28/05/2026

NAB, MPA and NCTA Defend Current TV Ratings System

Share Copy link Facebook X Linkedin Bluesky Email...

28/05/2026

Amazon MGM Studios, AWS Launch the GenAI Creators' Fund

Share Copy link Facebook X Linkedin Bluesky Email...

28/05/2026

AudioShake Launches New Copyright Compliance System

Share Copy link Facebook X Linkedin Bluesky Email...

28/05/2026

ITV Studios Deploys Cuez Live Production Platform

Share Copy link Facebook X Linkedin Bluesky Email...