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

03/12/2026

Thumann Severs FCC Confirmation Put on Hold

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

03/12/2026

Budget-Conscious Viewers Decrease Spending on Streaming

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

03/12/2026

Calrec expands into the Pro AV market with Type RT at ISE 2027

Calrec expands into the Pro AV market with Type RT at ISE 2027 Brie Clayton December 3, 2026 0 Comments Type RT makes its first ISE appearance, as Cal...

03/12/2026

LUTs Are Dead - Here's What's Replaced Them

LUTs Are Dead - Here's What's Replaced Them Kasia Jarco December 3, 2026 0 Comments If you want great color grading results, forget about usin...

03/12/2026

Boston Conservatory at Berklee Center Stage Returns in February

Boston Conservatory at Berklee Center Stage Returns in February The spring Center Stage season will spotlight Conservatory student talent in opera, theater, a...

03/12/2026

ESPN, Disney Unveil Super Bowl Plans

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

03/12/2026

White Paper Details the Critical Role Affordable Converters Play in the Success of ATSC 3.0

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

03/12/2026

Spanish University Master Class Offers Hands-On Use of LiveU EcoSystem

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

03/12/2026

Sony Unveils Three New 4K Pro BRAVIA Displays

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

03/12/2026

Emergent Launches AI-Assisted Production for Houses of Wo...

Sunday comes every week. For most church production teams, so does the scramble. They build graphics for the sanctuary walls, rebuild them for the stream, then ...

03/12/2026

Wisycom MPR60 IEM IFB Receiver Named 2027 NAMM TEC Award...

Wisycom is pleased to announce that its MPR60 Wideband True Diversity IEM/IFB Receiver has been named a finalist in the Wireless Technology category for the 202...

03/12/2026

Screen Australia identifies opportunities to strengthen local audiences and returns for Australian film

Screen Australia identifies opportunities to strengthen local audiences and retu...

03/12/2026

How can Aussie films win over cinema audiences?

How can Aussie films win over cinema audiences? 3 December 2026 Australians are passionate movie-goers*, but are they watching local film? Find this episode ...

03/12/2026

Australia/Korea Co-production unites to fright audiences

Australia/Korea Co-production unites to fright audiences 3 December 2026 Image credit: Mark Taylor The first official feature film under the Australia/Korea C...

03/12/2026

RT Prime Time reveal ongoing abuse of exported Irish calves

Live exports won't be here in ten years predicts leading animal welfare expert Tonight at 9:35pm on RT One and RT Player Secretly recorded footage of ...

03/12/2026

NVIDIA's Rory Kelleher: In Healthcare, AI Agents Head to the Bedside and the Bench

At a time when the world is expected to face a shortage of 11 million healthcare...

03/12/2026

RT Prime Time footage reveals ongoing abuse of exported Irish calves

Live exports won't be here in ten years predicts leading animal welfare expert Tonight at 9:35pm on RT One and RT Player Secretly recorded footage of ...

02/12/2026

International Sports Broadcasting Inks Equity Deal with Zoom Communication

ZOOM Communications Private Limited (ZOOM) announces a significant strategic equity investment in International Sports Broadcasting Company (ISB), Spain. This i...

02/12/2026

YouTube LiveCon 2026 To Explore the Future of Live Streaming in New York City on Dec. 8-9

The summit connects broadcasters and technology providers directly with YouTube&...

02/12/2026

SVG Students To Watch: Corey Townsend, Texas Christian University

From directing TCU baseball broadcasts on ESPN+ to working major events at AT&T Stadium, this senior from Texas is embracing every opportunity to grow as a live...

02/12/2026

Beyond the Conference Network: Big 12 Builds Its Sports-Media Future With Production Partnerships

Collaborations with BYUtv, JWP Productions, and member institutions fuel enhance...

02/12/2026

The Crow Hill Company release GUM

Ambitious project inspired by General MIDI The Crow Hill Company's latest release marks the start of a bold project that aims to culminate in the ultima...

02/12/2026

Tarn Audio reveal Wavefile & Overview

Two new handy Mac mix-check Apps announced Tarn Audio is the latest venture of Tim Lloyd, a developer who spent 13 years creating pro-audio tools for the li...

02/12/2026

Q Up Arts MusicSketch 4.0 now available

Free songwriting & notation iOS App upgraded Q Up Arts have just launched the latest version of their free songwriting and notation App for the iPhone and i...

02/12/2026

Big stories. Big moments. A standout year for SBS.

Big stories. Big moments. A standout year for SBS. 2 December, 2026 Media releases SBS reached an average of 13.8 million Australians each month - up 8% Yo...

02/12/2026

Rohde & Schwarz and Altair Semiconductor advance 3GPP Rel 18 eRedCap readiness with verification of first test cases

Rohde & Schwarz and Altair Semiconductor advance 3GPP Rel 18 eRedCap readiness w...

02/12/2026

AgileTV to take control of TV complexity at IBC2026, helping operators focus on growth

The company will showcase how its end-to-end TV platform unifies experiences, op...

02/12/2026

AgileTV to showcase TV Solutions for Hotels & Hospitals at IBC2026, helping operators and telcos unlock new growth opportunities beyond traditional TV

The company will present its vision for the future of TV operations through four strategic pillars, with TV Solutions for Hotels & Hospitals taking center stage...

02/12/2026

Colorfront Extends Its Industry-Leading Color Science to RED Connect

December 2, 2026 Colorfront has partnered with RED DIGITAL CINEMA to integrate native Colorfront color management into RED Connect, extending its renowned col...

02/12/2026

Nielsen Scales Ad Intel AI Internationally, Unifying Competitive Media Intelligence Across 95+ Markets

New enhancement helps multi-market brands and agencies turn fragmented ad data i...

02/12/2026

ESPN, Disney Unveil Super Bowl LXI Plans

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

Pliant Technologies MicroCom XR Sets a New Standard for M...

Geronimo Creek Inc., a leading lighting and grip company specializing in fast moving, location based production, has adopted Pliant Technologies' MicroCom X...

02/12/2026

Miris and Evercast announce high-fidelity 3D asset streaming in Presenter

Miris and Evercast announce high-fidelity 3D asset streaming in Presenter Brie Clayton December 2, 2026 0 Comments Miris, a 3D streaming infrastructur...

02/12/2026

Lawrence Virtual Studio Relies on Blackmagic Design

Lawrence Virtual Studio Relies on Blackmagic Design Brie Clayton December 2, 2026 0 Comments Digital film cameras and DaVinci Resolve Studio bring fle...

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

Jensen Huang Joins Agent Safety Panel at GTC Washington, DC

Safety and capability aren't a trade-off. NVIDIA founder and CEO Jensen Huang made that case Wednesday at GTC Washington, D.C., joining Advancing Safety ...