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

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

06/09/2026

Dolby and MagentaTV Bring Fans Closer to the FIFA World Cup 2026 in Germany with Dolby Vision and Dolby Atmos

June 9 2026, 23:00 (PDT) Dolby and MagentaTV Bring Fans Closer to the FIFA Worl...

04/09/2026

EVS, Matrox Partner on EBUs Dynamic Media Facility Initiative

Share Copy link Facebook X Linkedin Bluesky Email...

04/09/2026

TAG Video Systems Unveils TAG Blue

Share Copy link Facebook X Linkedin Bluesky Email...

04/09/2026

Orlando Magic and Gray Media Ink Full Season Broadcast Deal

Share Copy link Facebook X Linkedin Bluesky Email...

03/09/2026

Yospace releases new Ad Presentation solution, unlocking revenue opportunities with non-linear ad formats

Yospace will be at IBC from 11th - 14th September (booth 5.C78). For more inform...

03/09/2026

Creative Technology Group Announces Leadership Transition Effective January 2027

NEP Group has announced leadership changes at Creative Technology Group. Founder and CEO Graham Andrews will step away from day-to-day leadership at the end of ...

03/09/2026

NFL and TikTok Renew Multi-Year Partnership

The NFL and TikTok have announced a multi-year partnership renewal expanding the league's presence on the platform. NFL posts on TikTok increased more than ...

03/09/2026

Grass Valley Appoints Ronny Van Geel as Vice President, Cameras

Grass Valley has appointed Ronny Van Geel as Vice President, Cameras. Van Geel began his career in 1999 at Philips DVS and moved into product management in 2005...

03/09/2026

IBC 2026: Telestream to Preview Vantage Super Resolution

Telestream has announced Vantage Super Resolution, an AI-powered upscaling capability for the Vantage media workflow platform, developed in collaboration with N...

03/09/2026

IBC 2026: Solid State Logic TCA Tour

Solid State Logic (SSL) will debut the TCA Tour at IBC2026 (Hall 8, Stand 8.B45), a portable production system built from System T components in a desktop frame...

03/09/2026

IBC 2026: DPA Microphones Launches 6388 CORE+ Headset Microphone

DPA Microphones has announced the 6388 CORE Headset Microphone, making its debut at IBC2026 (Hall 8, Stand D60). The supercardioid headset features a physicall...

03/09/2026

IBC 2026: Qvest to Demonstrate Multi-Vendor Dynamic Media Facility Showcase

Qvest will present a multi-vendor Dynamic Media Facility (DMF) showcase at IBC2026 (Booth 10.C24), demonstrating how the EBU's DMF architecture can be imple...

03/09/2026

IBC 2026: Imagine Communications Debuts Magellan PanelFlex

Imagine Communications will showcase the Magellan PanelFlex control surface and other control portfolio updates at IBC2026 (Stand 1.B73, RAI Amsterdam, Septembe...

03/09/2026

IBC 2026: Bridge Technologies Launches Software-Based VB440 Deployment Option

Bridge Technologies will announce at IBC2026 (Booth 1.A71) that its VB440 production probe is now available as a software-based solution, deployable on commerci...

03/09/2026

Audio-Technica Launches BP350ST Mid-Side Stereo Microphone in Two Variants

Audio-Technica has unveiled the BP350ST MS (mid-side) microphone in two versions: the camera-mount BP350ST-UL and the boundary or gooseneck-mountable BP350ST-UB...

03/09/2026

IBC 2026: Jnger Audio flexAI Adds CastCompanion, 12G-SDI, NDI, and TVU MediaMesh Integration

Telos Alliance will introduce updates to the J nger Audio flexAI audio processin...

03/09/2026

DUNKMAN to Expand in 2027 with Team Competitions, Junior Division, and Global Qualifiers

DUNKMAN, the professional dunk league founded by Shaquille O'Neal in partner...

03/09/2026

Orlando Magic Tap DAZN as DTC Streaming Partner, Will Join OTA Distribution Plans for 2026-27 Season

Orlando's WRDQ TV 27, WFTV Channel 9 previously named over-the-air broadcast...

03/09/2026

EverPass Media Expands NFL Agreement with Netflix for Commercial Venues

EverPass Media has announced a multi-year commercial distribution agreement with Netflix, expanding on an existing partnership that has delivered NFL Christmas ...

03/09/2026

Yahoo Sports and Apple TV Partner on MLB and MLS Alternate Broadcasts

Yahoo Sports and Apple TV have announced a partnership to deliver alternate broadcasts of select Friday Night Baseball and MLS games on the Yahoo Sports website...

03/09/2026

BIG EAST's Scott Hecht on the Evolution of Campus Production and What Comes Next

With another academic year underway, college athletic departments across the cou...

03/09/2026

ESPN Debuts Revamped, Cutting-Edge Studio W in Bristol as New Home to NFL Live, College Football, and More

Facility becomes permanent home of NFL Live on Sept. 9; centerpiece studio for c...

03/09/2026

Anthony Marinelli launches Bass DNA course

Create musical synth bass sounds from scratch Anthony Marinelli Music have recently announced the launch of Bass DNA, a new online course that teaches music...

03/09/2026

IK Multimedia unveil the Tonex Board

Most powerful Tonex hardware to date IK Multimedia's latest release introduces their most advanced Tonex hardware unit to date, combining their AI Machi...

03/09/2026

Penteo Audio Plugins announce Penteo 8

Upmix & downmix software upgraded Penteo Audio Plugins have announced that the latest version of their powerful upmix and downmix software is now available....

03/09/2026

Young talents begin their training at SGL Carbon in Germany

With the start of the new apprenticeship year, young talent has once again begun their professional careers at SGL Carbon's sites in Germany. Recently, the ...

03/09/2026

Calrec advances EBU's Dynamic Media Facility vision at IBC 2026

With the industry increasingly embracing hybrid, software-defined production models, Calrec will preview a series of Argo and ImPulseV software enhancements at ...

03/09/2026

NAB Backs Most Proposed EAS Changes at FCC

Share Copy link Facebook X Linkedin Bluesky Email...

03/09/2026

TiVo Expands FAST Channels, AI Discovery with Latest OS Update

Share Copy link Facebook X Linkedin Bluesky Email...

03/09/2026

Eluvio Advances Content Fabric, AI at IBC 2026

Share Copy link Facebook X Linkedin Bluesky Email...

03/09/2026

Haivision Adds Bonded 5G Cellular Support to Makito ONE

Share Copy link Facebook X Linkedin Bluesky Email...

03/09/2026

Alex Pannell Joins Gravity Media as Chief Business Officer

Share Copy link Facebook X Linkedin Bluesky Email...

03/09/2026

AI-Media To Feature Multilingual AI Developments At IBC2026

Share Copy link Facebook X Linkedin Bluesky Email...

03/09/2026

Tuxera and ATTO collaborate to deliver blistering macOS n...

Recognizing the ever-increasing demands for media throughput in challenging environments like post-production, two leaders in network technology have worked tog...

03/09/2026

EVS and Matrox Video Join Forces to Accelerate Dynamic Me...

EVS, a leader in live video technology and production infrastructure solutions, and Matrox Video, a leader in software-defined media technology and IP-based vid...

03/09/2026

AJA Debuts OG-FiDO-4 openGear Four-Channel SDI/Fiber Conversion Cards

AJA Debuts OG-FiDO-4 openGear Four-Channel SDI/Fiber Conversion Cards Brie Clayton September 3, 2026 0 Comments New product family expands 12G-SDI and...

03/09/2026

Nice Touch launches V2 of its AI edit assistant for professional editors

Nice Touch launches V2 of its AI edit assistant for professional editors Brie Clayton September 3, 2026 0 Comments Built by two editors with twelve ye...

03/09/2026

Accedo and MediaKind Launch End-to-End Streaming Solution...

Accedo, a global provider of video streaming software and services, and MediaKind, a world-leading video technology company and the number one independent provi...

03/09/2026

14 Percent of live sports viewers have considered switchi...

International research from Big Blue Marble puts a consumer churn number against a technical failure, and sets out what streaming providers must fix before 2030...

03/09/2026

Broadpeak expands CDNaaS for streaming at scale with new...

High-performance points of presence power video streaming delivery to large audiences across Latin America with guaranteed quality of experience Broadpeak , a ...

03/09/2026

Dalia Delivers New Agentic Workflows Changing How Media W...

Dalet, a leading technology and service provider for media-rich organizations, will unveil the next evolution of Dalia at IBC2026 (7.A43), its media-aware agent...

03/09/2026

CGI showcases AI-assisted newsroom and radio workflows pa...

CGI (TSX: GIB.A) (NYSE: GIB), one of the world's largest independent IT and business consulting services firms, will showcase CGI OpenMedia Evolve and CGI d...

03/09/2026

LiveU Joins IBC Accelerator Smart Stories Consortium to D...

LiveU is participating in the IBC Accelerator Incubator 2026: Smart Stories The New Knowledge Architecture for Content Production, an industry-wide initiative...

03/09/2026

Christer Palsson brings global experience to Broadcast So...

Broadcast Solutions, a leading systems integrator and provider of innovative solutions for the broadcast and media industry, has taken another major step in its...

03/09/2026

Quortex brings AI and IP transition into focus at IBC 202...

Quortex today announced that it will showcase how it is accelerating innovation and the transition to IP at IBC 2026. The company will debut its newest intellig...

03/09/2026

Grass Valley Names Ronny Van Geel Vice President Of Cameras

Share Copy link Facebook X Linkedin Bluesky Email...

03/09/2026

VisualOn and EZDRM Enable Visualization of C2PA Provenanc...

The EZDRM approach to Revenue Security on streaming video can be visualized as a multi-dimensional set of solutions. A growing dimension of that approach is the...

03/09/2026

Kiloview Brings Hybrid AV-over-IP to Life at IBC 2026 wit...

From field capture to management, control and production, Kiloview will demonstrate one connected Hybrid AV-over-IP workflow including a complete 4RU producti...