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

02/12/2026

Riedel, ARRI Announce New Leadership for Americas

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

02/12/2026

Circle Studios and ionoco announce global partnership com...

Circle Studios and ionoco today announced a global partnership to develop and deliver dynamic, interactive and gamified experiences for clients around the world...

02/12/2026

LiveU Technology Helps Students Bridge the Broadcast and...

Media postgraduates at Complutense University in Madrid will once again gain hands-on experience with professional live broadcast and Pro AV technology this Dec...

02/12/2026

Blue Lucy Partners with QMPLY to Bring Automated Complian...

Blue Lucy, the workflow orchestration and integration platform for broadcasters, rights owners and production companies, today announced a new integration conne...

02/12/2026

Inside the Palais Garnier with URSA Cine Immersive

Inside the Palais Garnier with URSA Cine Immersive Brie Clayton December 1, 2026 0 Comments INIT Lab produces an extended run Apple Immersive Video ex...

02/12/2026

Berklee Music and Health Institute to Lead National Coalition Advancing Musics Role in Well-Being

Berklee Music and Health Institute to Lead National Coalition Advancing Musics R...

02/12/2026

Entravision Settles with FCC Over Kidvid Violations

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

02/12/2026

Hearst Names Arleda Hackett President and GM of KSBW Monterey-Salinas

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

02/12/2026

Courtney Gross Joins Television Academy Foundation as Senior Director, Development

Share {alert(Link copied)}).catch(err => {console.error(Failed to copy: , er...

02/12/2026

QuickLink Introduces 2 All-in-One Production Platforms

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

02/12/2026

BMG Completes Live Replay Upgrade

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

02/12/2026

Geronimo Creek Adopts Pliant's MicroCom XR Wireless Intercom

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

02/12/2026

Miris and Evercast announce high-fidelity 3D asset stream...

Miris, a 3D streaming infrastructure provider, and Evercast, a leading provider of real-time media review tools, today announced the beta of an Evercast Present...

02/12/2026

QuickLink Launches StudioPro Ascent and StudioPro Apex Ex...

QuickLink, the leading provider of multi-camera video productions and remote contribution solutions, announces the launch of StudioPro Ascent and StudioPro Ap...

02/12/2026

Christmas Crackers on RT: Can't Wait

Settle in for Documentaries, Sport, Entertainment and more Festivities begin as Christmas kicks off on RT with The Late Late Toy Show, a packed weekend of liv...

02/12/2026

RT Supporting the Arts is supporting 30 cultural events nationwide this December

RT Supporting the Arts is proudly rounding off the year with a vibrant programme of events and exhibitions celebrating creativity across theatre, opera, film, ...

01/12/2026

William Kamau wins Young Journalist Award 2026

William Kamau, a journalist with the investigative media house Africa Uncensored in Nairobi, has been named Thomson Foundation Young Journalist of the Year 2026...

01/12/2026

Gravity Media Acquires MOOV to Expand Broadcast Graphics and Virtual Production Capabilities

Gravity Media has acquired MOOV, a UK broadcast graphics and virtual production ...

01/12/2026

PanMetro and Alliance Broadband Launch IPTV and Hybrid TV Platform with Ateme and CAASTV

Ateme and CAASTV have announced that PanMetro (Pan Metro Convergence) and Allian...

01/12/2026

CP Communications Supports Live With Kelly & Mark in Clearwater Beach

CP Communications provided broadcast engineering and production support for Live With Kelly & Mark in Clearwater Beach, FL, Nov. 16-17. A 10-person crew led by...

01/12/2026

Riedel DIVA+ Connects Linzer Klangwolke with Easy5G

Riedel Communications supported the Klangwolke festival in Linz with a DIVA+ infrastructure. On behalf of Linzer Veranstaltungsgesellschaft (LIVA), Riedel Manag...

01/12/2026

TF1 Partners with Ateme to Power TF1+ Across Screens

TF1, France's private broadcaster, has chosen Ateme as its technology partner for TF1 . Ateme supports the service on TF1's own apps, connected TVs, ope...

01/12/2026

AIMS Announces Winter 2027 IPMX Product Testing and Certification Event

The Alliance for IP Media Solutions (AIMS), together with the Video Services Forum (VSF) and the European Broadcasting Union (EBU), has announced the next IPMX ...

01/12/2026

Clark Wire & Cable Develops Custom Cable for Broadcast Infrastructure at New Highmark Stadium

Clark Wire & Cable supplied broadcast infrastructure cable, panels and SMPTE com...

01/12/2026

2026 Sports Broadcasting Hall of Fame: Bucky Gunts, Treasured Director, Mentor, and Olympics Storyteller

Over the past three decades, no sports entity has set a higher bar for storytell...

01/12/2026

SVG Sit-Down: MASV's Gene Villeneuve on How Gameday Speeds Transfer of Media From Away Venues to Home Base

Sports media has become one of the few reliable growth areas in an otherwise slu...

01/12/2026

ESPN Details Massive Santa Monica Beach Studio Operation for Super Bowl LXI

Studio 61 will feature four production sets, more than 30 cameras, aerial systems, AR, and nearly 100 hours of live programming during Super Bowl week...

01/12/2026

ESPN, NFL Films, Anamorph Build Super Bowl Generations,' an Interactive Super Bowl Archive Experience for ESPN Beach

On-site activation will use touchscreen inputs and Anamorph technology to assemb...

01/12/2026

ESPN Deportes Unveils Super Bowl LXI Commentary Team, with Rebeca Landa Set To Make History

ESPN Deportes has announced its commentary team for Super Bowl LXI: Rebeca Landa...

01/12/2026

ESPN Announces First-Ever In-Game Super Bowl Ad and Fan Casting Call, Unveils Were Going' Finale

With Super Bowl LXI 75 days away, ESPN and The Walt Disney Company have announce...

01/12/2026

The House of the Mouse: ESPN Adds 10 Hours of Live Programming From Disneyland

ESPN and ABC will punctuate ESPN's Year of the Super Bowl with 10 hours of live programming from Disneyland Resort in Anaheim, CA, on Monday, Feb. 15, mere ...

01/12/2026

ESPN Unveils 24-Hour Super Bowl LXI Pregame Operation Across Santa Monica, SoFi Stadium

Five-hour Super Bowl LXI Countdown, multiple studio locations, Disney+ simulcast...

01/12/2026

ESPN Honors Legacy of NFL Primetime With Upcoming Rumblin', Bumblin', Stumblin Documentary

As ESPN prepares for its historic first Super Bowl presentation, the network wil...

01/12/2026

ESPN Adds Streaming-Only Red Carpet Show to Super Bowl LXI Pregame Lineup

Disney+, Hulu, and ESPN App will carry Live From Super Bowl LXI Red Carpet from the NFL VIP Tailgate at SoFi Stadium...

01/12/2026

The State of AI in Sports Broadcast': 88 Projects in Live Production Fit Into Eight Categories

To help determine where the industry stands, SVG AI Innovation Lab analyzed and ...

01/12/2026

ESPN, Omaha Productions Revive The All-Madden Team' for Super Bowl LXI Week

Peyton Manning and Rich Eisen will host the hour-long ESPN Original, produced with NFL Films and The Montag Group...

01/12/2026

ESPN Lays Out Super Bowl Plans; ESPN Beach Studios, 200+Cameras Set to Dazzle

By Jason Dachman and Ken Kerschbaumer ESPN today took some additional wraps off of its Super Bowl LXI plans, including more details about ESPN Beach will prese...

01/12/2026

StageBox 2 arrives

Audio inputs, backing playback, PDF support & more In the April 2026 issue, we ran a review on StageBox, a handy macOS and Windows application designed to h...

01/12/2026

Universal Audio release Paradise Guitar Studio 2

Three new high-gain amps added Universal Audio's all-in-one amp and effects modelling software has just been treated to a major update that introduces t...

01/12/2026

Telepathic Instruments launch Orchid V

Innovative instrument gains virtual counterpart Telepathic Instruments have just released a new plug-in that recreates their innovative Orchid instrument, a...

01/12/2026

Waves introduce Rogue Modules

Vintage-inspired effects suite revealed Waves latest release brings together a set of creative effects plug-ins that promise to capture the sound and charac...

01/12/2026

Rohde & Schwarz and Zurich Instruments back the London Quantum Cluster to support quantum technology development

Rohde & Schwarz and Zurich Instruments back the London Quantum Cluster to suppor...

01/12/2026

Weekly Live Sports Viewership Summary

Nielsen has released its Top 25 Live Sports Events Telecasts ranker for the week of November 16 - November 22. The list highlights a dynamic week in sports broa...

01/12/2026

BBC Weather Modernizes Production Sites for New Met Office Data

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

01/12/2026

Jeremy Broggi Becomes FCC General Counsel

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

01/12/2026

NAB Show Introduces Marketplace Pass

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

01/12/2026

On Giving Tuesday, Support Broadcasters in Need

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

01/12/2026

NESN Taps Ron Wechsler as Chief Content 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...

01/12/2026

Appear X20 Passes DTV+ POC Test With Brazil's TV Globo

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