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

20/05/2026

DSPolitical and FreeWheel Partner on Political CTV Ads

Share Copy link Facebook X Linkedin Bluesky Email...

20/05/2026

Amazon, Netflix and Google to Capture Half of CTV Ad Market by 2030

Share Copy link Facebook X Linkedin Bluesky Email...

20/05/2026

Roku Introduces 'Creator Hub

Share Copy link Facebook X Linkedin Bluesky Email...

20/05/2026

First Nations Factual Co-production Development Fund launched to elevate Indigenous storytelling in global markets

First Nations Factual Co-production Development Fund launched to elevate Indigen...

19/05/2026

Young Journalist' finalists visit London for training and networking

The winner of Thomson Foundation's Young Journalist of the Year 2025, Tracy Bonareri Onchoke, and runner up Wangu Kanuri enjoyed a three-day trip to London ...

19/05/2026

Cisco and USGA Announce Multiyear Partnership Extension

Cisco and the USGA have announced a multiyear extension of their partnership, which began in 2018. Cisco serves as the Official Technology Partner of the USGA, ...

19/05/2026

Urban Edge Network and Spiideo Partner to Enhance NAIA Sports Streaming

Urban Edge Network (UEN), a streaming platform for NAIA sports, has announced a partnership with Spiideo to provide streaming and production tools to UEN's ...

19/05/2026

Warner Bros. Discovery Announces Expanded Roland-Garros 2026 Coverage

Warner Bros. Discovery (WBD) will provide live coverage of all 900 Roland-Garros matches across its platforms beginning with qualifiers on May 18. In Europe, 21...

19/05/2026

Tubi Launches FIFA World Cup 2026 FOX Hub

Tubi, Fox Corporation's free streaming service, has announced the launch of the FIFA World Cup 2026 FOX Hub, a dedicated destination for World Cup programmi...

19/05/2026

Telefnica and Sony Conduct 5G mmWave Broadcast Trial at Movistar Arena

Telef nica, in collaboration with Sony, has conducted a 5G connectivity trial at the Movistar Arena in Spain using the 26 GHz millimetre wave (mmWave) band. The...

19/05/2026

Ross Production Services Integrates Calrec Argo M into New Hypermax-1 Truck

Ross Production Services (RPS) has installed a Calrec Argo M console into its new Hypermax-1 remote production truck, replacing one of three Argo S consoles pre...

19/05/2026

Panasonic Projector and Display Acquires HIVE Media Control

Panasonic Projector and Display Corporation has announced the acquisition of 100% of the shares of UK-based media technology company Hive Media Control Ltd. (HI...

19/05/2026

Globecast Completes Major Renovation of Singapore Facility

Globecast has announced the completion of a nine-month renovation of its Singapore facility, converting it from a traditional linear broadcast operation into a ...

19/05/2026

Grass Valley Signs Three-Year Enterprise Agreement with Phoenix Broadcast Solutions

Grass Valley has announced a three-year enterprise agreement with Phoenix Broadc...

19/05/2026

Watch Brasil Selects Bitmovin for Streaming Player, Encoder, and Observability

Bitmovin has announced that Watch Brasil, a streaming platform operating across Brazil and Europe since 2018, has replaced its legacy systems with Bitmovin'...

19/05/2026

Ateme and Akamai Power Nepal Premier League Live Streaming

Ateme has announced the migration of Dish Home Nepal's Nepal Premier League (NPL) streaming infrastructure to Ateme's TITAN Live solution deployed on Ak...

19/05/2026

CMSI Supports ESPNs NCAA Gymnastics Championships Coverage

CMSI provided workflow, media management, and HDR support for ESPN during coverage of the NCAA Gymnastics Semifinals and Championships. The company supported fi...

19/05/2026

SVG Rewind: TGLs SmartPin Cam Offers a Whole New Perspective for Golf

In advance of this year's Sports Emmy Awards, SVG is taking a deep dive into the six production-technologies nominated for this year's George Wensel Tec...

19/05/2026

SVG Rewind: FOX IndyCar Takes In-Car AR Graphics to New Heights

In advance of this year's Sports Emmy Awards, SVG is taking a deep dive into the six production-technologies nominated for this year's George Wensel Tec...

19/05/2026

NEP Supershooter 11 and 65 Roll Out To Meet Different Production Needs

Featuring a fully IP infrastructure, Supershooter 11 is intended for large-scale events. Enabling remote and distributed workflows, Supershooter 65 joins the RE...

19/05/2026

Boots Riley Unpacks His Vision of Power, Style, and Time at Sundance Institute's I Love Boosters Denver Screening

By Jessica Herndon The line wrapped around the building outside Denver's La...

19/05/2026

Building a More Trusted Podcast Experience for Creators and Listeners

Podcasting continues to evolve, and so does Spotify. As we build what comes next, one thing remains constant: This is a medium built on connection. It lives in ...

19/05/2026

GC Audio & Looptrotter announce the Emperor Signature Cartridge

Popular design joins Inherit cartridge line-up When GC Audio introduced their modular Inherit system, it was available with a selection of the company's...

19/05/2026

oeksound introduce Soothe3

Resonance-suppression plug-in gets ground-up rebuild Following on from its 10-year anniversary, oeksound's flagship plug-in has just reached its third m...

19/05/2026

Novation unveil the FLKey 2

Dedicated FL Studio controller keyboard range refreshed Novation's dedicated FL Studio controller family has just been upgraded, with four new models ex...

19/05/2026

Rohde & schwarz strengthens its in-vehicle networks test portfolio with the launch of new ASA-ML compliance solution

Rohde & schwarz strengthens its in-vehicle networks test portfolio with the laun...

19/05/2026

Lawful Intelligence: Rohde & Schwarz stellt neues Portfolio fr moderne Polizeiarbeit vor

Lawful Intelligence: Rohde & Schwarz stellt neues Portfolio f r moderne Polizeia...

19/05/2026

Press Release: South Africa to be celebrated as European Film Market's Country in Focus at the Berlinale 2027

Press Release 18 May 2026, Johannesburg South Africa has been selected as the...

19/05/2026

To Deliver for the Warfighter, Acquisition Reform Must Provide a Level Playing Field

When all companies in the market are allowed to compete under the same set of ru...

19/05/2026

Unjammable Lifeline: L3Harris Fiber-Optic Tethers Keep Warfighters Connected

Battle-proven technology withstands electronic warfare threats across air, maritime surface and subsea domains....

19/05/2026

WESCAM MX-Series: Defining the Moment Before the Target Moves

WESCAM MX-Series EO/IR systems provide high-precision targeting across domains, including counter-UAS applications...

19/05/2026

Cobalt Digital and SineSix Media Partner to Transform Accessibility Compliance into a More Engaging Viewer Experience at NAB Show 2026

CHAMPAIGN, Ill. April 16, 2026 - Cobalt Digital today announced a partnership ...

19/05/2026

Cobalt Digital Announces Launch of blueCORE at NAB Show 2026: Compact Powerhouse Signal Processors for SDI and ST 2110 Workflows

Las Vegas - April 18, 2026 Cobalt Digital, the leading designer and manufactur...

19/05/2026

Advanced HDR by Technicolor and Cobalt Digital Address Live Production Gap as HDR Adoption Collides With Legacy Workflows

LAS VEGAS April 18, 2026 - Advanced HDR by Technicolor and Cobalt Digital are ...

19/05/2026

Cobalt Digital Wins Two Future Best of Show Awards at 2026 NAB Show

LAS VEGAS - May 4, 2026 - Cobalt Digital, the leading designer and manufacturer of signal processing products, and a founding partner in the openGear initiativ...

19/05/2026

Cobalt Digital Brings Flexible End-to-End IPMX/ST 2110 Ecosystem to MPTS

London - 11 May 2026 Cobalt Digital, the leading designer and manufacturer of award-winning signal processing products, and a founding partner in the openGear...

19/05/2026

Clear-Com Enhances Musikal Perahu Kertas with Eclipse HX and FreeSpeak II

eds3_5_jq(document).ready(function($) { $(#eds_sliderM519).chameleonSlider_2_1({ content_source:......

19/05/2026

Ross Production Services Flexes Infrastructure with Console Switch

Celebrating its ability to quickly adapt to changing requirements, Ross Production Services (RPS) has put its flexible infrastructure to good use, switching one...

19/05/2026

NFL Pushes Back Against Critics of Games on Streaming

Share Copy link Facebook X Linkedin Bluesky Email...

19/05/2026

NEP Group Rolls Out Two New Mobile Production Units In U.S.

Share Copy link Facebook X Linkedin Bluesky Email...

19/05/2026

Phoenix Broadcast Solutions Raises its Live Production Ga...

Grass Valley has entered into a three-year enterprise agreement with Phoenix Broadcast Solutions as the Singapore-based company expands its live production oper...

19/05/2026

Clear-Com Enhances Musikal Perahu Kertas with Eclipse HX...

Clear-Com supported Musikal Perahu Kertas, a large-scale musical theater production in Indonesia adapted from the acclaimed novel by Dee Lestari, through the d...

19/05/2026

METEO CONSULT and La Chaine Meteo Select Actus Digital fo...

Actus Digital, a LiveU company, and a leading provider of intelligent media monitoring and broadcast compliance platforms, announced today that METEO CONSULT ha...

19/05/2026

Transforming Broadcast Operations - Globecast Unveils Sta...

Globecast, a leading provider of managed services for the broadcast and media industry, today announced the completion of a major renovation of its Singapore fa...

19/05/2026

Calrec Console Switch Helps Ross Production Services Fle...

Following a major upgrade to its Connecticut remote production centre with the installation of three 60-fader Argo S consoles in 2023, RPS has switched one of t...