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

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

01/05/2026

NBCUniversal's Peacock to Be First Streamer to Integrate Dolby's Full Suite of Premium Picture and Sound Innovations

January 5 2026, 18:30 (PST) NBCUniversal's Peacock to Be First Streamer to ...

01/04/2026

DOLBY AND DOUYIN EMPOWER THE NEXT GENERATON OF CREATORS WITH DOLBY VISION

January 4 2026, 18:00 (PST) DOLBY AND DOUYIN EMPOWER THE NEXT GENERATON OF CREATORS WITH DOLBY VISION Douyin Users Can Now Create And Share Videos With Stun...

22/01/2026

IBC Issues Call for Technical Papers for IBC2026 Conference

Share Share by: Copy link Facebook X Linkedin Pinterest Bluesky Email...

22/01/2026

Spectrum to Award $1 Million in 2026 Digital Education Grants

Share Share by: Copy link Facebook X Linkedin Pinterest Bluesky Email...

22/01/2026

StreamGuys Bolsters Its Audio Advertising Ranks

Share Share by: Copy link Facebook X Linkedin Pinterest Bluesky Email...

22/01/2026

NAB, Broadcasters Press FCC to End Ownership Caps

Share Share by: Copy link Facebook X Linkedin Pinterest Bluesky Email...

22/01/2026

Maxon Hires Steve Forde as Chief Product Officer

Share Share by: Copy link Facebook X Linkedin Pinterest Bluesky Email...

22/01/2026

Details Emerge About Adobe Film & TV Fund Commitment

Share Share by: Copy link Facebook X Linkedin Pinterest Bluesky Email...

22/01/2026

Flight Controls Are Cleared for Takeoff on GeForce NOW

The wait is over, pilots. Flight control support - one of the most community-requested features for GeForce NOW - is live starting today, following its announce...

22/01/2026

From Pilot to Profit: Survey Reveals the Financial Services Industry Is Doubling Down on AI Investment and Open Source

AI has taken center stage in financial services, automating the research and exe...

22/01/2026

How to Get Started With Visual Generative AI on NVIDIA RTX PCs

AI-powered content generation is now embedded in everyday tools like Adobe and Canva, with a slew of agencies and studios incorporating the technology into thei...

21/01/2026

Australia's Greatest Conman? premieres 24 February on SBS and SBS On Demand

Australia's Greatest Conman? premieres 24 February on SBS and SBS On Demand Media releases The $900 million dollar mystery that fooled our nation Austra...

21/01/2026

SBS ignites Lunar New Year with bold storytelling for The Year of the Fire Horse

SBS ignites Lunar New Year with bold storytelling for The Year of the Fire Horse 21 January, 2026 Media releases SBS is charging into Lunar New Year 2026 w...

21/01/2026

Nielsen's All Screens Video Landscape Report Reveals Shift in Polish Media Rankings and Deeper Audience Engagement

The Living Room Remains Central: Nielsen Highlights Growing TV Screen Dominance ...

21/01/2026

NAB Urges Swift Action by FCC on NextGen TV Transition

Share Share by: Copy link Facebook X Linkedin Pinterest Bluesky Email...

21/01/2026

SmallHD Releases Major PageOS Software Update

Share Share by: Copy link Facebook X Linkedin Pinterest Bluesky Email...

21/01/2026

WBGU-TV in Ohio to Drop PBS Affiliation

Share Share by: Copy link Facebook X Linkedin Pinterest Bluesky Email...

21/01/2026

Telestream DIVA Now Certified with Quantum ActiveScale an...

Telestream , the industry's leading provider of content lifecycle management and media workflow orchestration, and Quantum Corporation (NASDAQ: QMCO) today ...

21/01/2026

Lightware introduces new Matrix Management Unit for their...

Lightware s TPN ecosystem brings a new level of predictability and structure to 10G AV-over-IP deployments, offering professional AV integrators a deterministic...

21/01/2026

Wisycom Introduces New Wideband Antenna Matrix MATF for C...

Wisycom, a global leader in advanced wireless RF solutions, launches its new wideband antenna matrix, MATF, which supports RF and fiber for demanding multi-zone...

21/01/2026

Grass Valley Showcases Scalable Future-Ready Live Product...

Grass Valley will demonstrate how it is powering scalable, future-ready live production at FOMEX 2026, taking place February 2 4 in Riyadh, Saudi Arabia. Exhibi...

21/01/2026

OKAST Implements BCNEXXT Vipe to Accelerate Monetization...

BCNEXXT, the developers of the advanced playout platform Vipe, today announced that OKAST, the monetization-first OTT platform provider, is using BCNEXXT's ...

21/01/2026

Magewell Introduces New IP to HDMI Decoder at ISE 2026 an...

Revamped design enables advanced capabilities, leading with powerful IP to HDMI conversion Magewell, developer of innovative, high-performance video I/O and I...

21/01/2026

Kiloview Expands Its AV-over-IP Ecosystem with AVX24-4 Me...

Jan 20th 2026, Changsha Kiloview today announced the launch of two major additions to its AV-over-IP ecosystem: the AVX24-4 Media HUB and KiloLink Station, ma...

21/01/2026

Bitfocus delivers high availability high security and hig...

Latest version of enterprise-class Buttons brings simple, coherent control to more than 700 professional devices and applications Bitfocus, the specialist in ...

21/01/2026

Clear-Com Announces Kari Eythorsson as New Regional Sale...

Clear-Com is pleased to announce the appointment of Kari Eythorsson as the new Regional Sales Manager (RSM) for Southeast Asia & Australia, based in Singapore,...

21/01/2026

Netflix Amends Warner Bros Discovery Bid to Offer All Cash

Share Share by: Copy link Facebook X Linkedin Pinterest Bluesky Email...

21/01/2026

Advanced Systems Group Inks Exclusive Partnership With Nu-Studio

Share Share by: Copy link Facebook X Linkedin Pinterest Bluesky Email...

21/01/2026

SWIT Ships New Powercell Camera Battery Series

Share Share by: Copy link Facebook X Linkedin Pinterest Bluesky Email...

21/01/2026

Netflix Q4 Earnings Exceed Expectations as Subs Top 325 Million

Share Share by: Copy link Facebook X Linkedin Pinterest Bluesky Email...

21/01/2026

Largest Infrastructure Buildout In Human History': Jensen Huang on AI's Five-Layer Cake' at Davos

From skilled trades to startups, AI's rapid expansion is the beginning of th...

21/01/2026

Tribeca Films to Release Independent Documentary Film We Are Pat by Rowan Haber; Alan Cumming Joins as Executive Producer

January 21st, 2026 TRIBECA FILMS TO RELEASE INDEPENDENT DOCUMENTARY FILM WE...

21/01/2026

Backing Britain on the global stage: Sky becomes an official partner of Team GB and ParalympicsGB

Wednesday 21 January 2026 Backing Britain on the global stage: Sky becomes an o...

21/01/2026

What's Next on Netflix Korea: Every Emotion, One Bold 2026 Slate

Back to All News What's Next on Netflix Korea: Every Emotion, One Bold 2026 Slate Entertainment 21 January 2026 GlobalSouth Korea Link copied to clipbo...

21/01/2026

Netflix Presents Its Italian 2026 Slate: The Year of the Stars

Back to All News Netflix Presents Its Italian 2026 Slate: The Year of the Stars (Photo credit: Virginia Bettoja / Netflix) Entertainment 21 January 2026 Gl...

21/01/2026

Fox Corporation Executives to Discuss Second Quarter Fiscal 2026 Financial Results Via Webcast

Fox Corporation Executives to Discuss Second Quarter Fiscal 2026 Financial Resul...

21/01/2026

FilmLight releases Baselight v7

Baselight v7 brings colourists and post-houses smarter mattes, faster workflows and deeper control FilmLight, known for its detailed colour toolset and longsta...

21/01/2026

RT News announces new Washington Correspondent

RT News is pleased to announce the appointment of Jackie Fox as its new Washington Correspondent. Jackie is a multimedia journalist with RT News and has repor...

21/01/2026

Largest Infrastructure Buildout In Human History: Jensen Huang on AI's Five-Layer Cake at Davos

From skilled trades to startups, AI's rapid expansion is the beginning of th...

20/01/2026

SVG Sit-Down: BitFire's Jim Akimchuk on the Future of Cloud, Remote, Software-Defined Live Production

SVG Sit-Down: BitFire's Jim Akimchuk on the Future of Cloud, Remote, Softwar...

20/01/2026

From Architecture to Reality: What CBC's Milano Cortina 2026 Workflows Tell Us About DMF and MXL in Live Sport

From architecture to reality: What CBC's Milano Cortina 2026 workflows tell ...

20/01/2026

Milano Cortina 2026: Making the Winter Olympics and Paralympics Workflow Work for France Tlvisions

Milano Cortina 2026: Making the Winter Olympics and Paralympics workflow work fo...

20/01/2026

Countdown to Milano Cortina 2026: SVG Launches SportsTechLive Blog in Lead-up to Winter Games

Countdown to Milano Cortina 2026: SVG Launches SportsTechLive Blog in Lead-up to...

20/01/2026

Grand Finale: Rally Saudi Arabia Pushes WRC to Make the Most of Cameras and Drones for Sandy Spectacle

Grand finale: Rally Saudi Arabia pushes WRC to make the most of cameras and dron...

20/01/2026

State of Change: What's Happening in the Remote-Production Business?

State of Change: What's Happening in the Remote-Production Business?NEP Group, Game Creek Video, Dome Productions, Mobile TV Group, Program Productions exec...

20/01/2026

CFP National Championship 2026: A Look Back at SVG's Complete Coverage

CFP National Championship 2026: A Look Back at SVG's Complete CoverageGo behind the scenes with ESPN, Game Creek Video, Van Wagner, and the champion Indiana...

20/01/2026

Centering the Artist: Why We're Launching the AI Literacy Initiative

The Gotham, Film Independent, and Creators Coalition on AI Join Alliance by Michelle Satter, Founding Senior Director, Sundance Institute's Artist Programs...

20/01/2026

19th Annual South African Film and Television Awards (SAFTAs) open the call for Discretionary Award Nominations

The National Film and Video Foundation (NFVF), an agency of the Department of Sp...