
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!
Most recent headlines
05/01/2027
Worlds first 802.15.4ab-UWB chip verified by Calterah and Rohde & Schwarz to be ...
07/10/2026
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
June 9 2026, 23:00 (PDT) Dolby and MagentaTV Bring Fans Closer to the FIFA Worl...
03/09/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
03/09/2026
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
From field capture to management, control and production, Kiloview will demonstrate one connected Hybrid AV-over-IP workflow including a complete 4RU producti...
03/09/2026
Mediagenix, a global leader in smart content solutions to profitably connect the right content to the right audience, today announced Mediagenix Curation, a new...
03/09/2026
LucidLink, the Emmy-winning cloud-native file streaming platform for instant, secure access to large files, today announced the next step in its vision to make ...
03/09/2026
Fraudulent communications purportedly from Screen Australia 3 September 2026
Screen Australia is aware of scam attempts involving fake emails and promotional m...
03/09/2026
AJA Introduces FS8, Next-Gen 12G-SDI/SMPTE ST 2110 Media Processor
Brie Clayton September 2, 2026
0 Comments
AJA Video Systems unveiled FS8, a video a...
03/09/2026
Shooting Deadheading with Blackmagic URSA Cine 12K LF
Brie Clayton September 2, 2026
0 Comments
Bringing a small story to the big screen with dark com...
03/09/2026
OOONA Launches OOONA Go: Professional Localization Management for Small Companie...
03/09/2026
DURHAM, N.C. - East of Texas Durham has officially opened its doors at American ...
02/09/2026
Professional and collegiate clubs, leading vendors discuss current trends in stadium production
On. Aug. 12, the 2026 SVG Venues & Teams Summit explored the ev...
02/09/2026
SoFi Stadium, YouTube Theater, and Hollywood Park have completed an infrastructure upgrade expanding game presentation and broadcast production capabilities acr...
02/09/2026
Comcast Technology Solutions (CTS) has announced a suite of AI-powered workflow applications for broadcasters, content owners, and operators, built on its Video...
02/09/2026
The North American Broadcasters Association (NABA) and the Association of Professional Wireless Production Technologies (APWPT) have announced a partnership to ...
02/09/2026
Carolina Hurricanes, Anaheim Ducks, Columbus Blue Jackets, Dallas Stars, Minneso...
02/09/2026
New LED provides enhanced quality control, quicker show prep, detailed productio...
02/09/2026
Combines the Phat Drive with high-voltage valve circuit
The latest pedal from Keeley Electronics combines their popular Phat Mode drive pedal with an all-ne...
02/09/2026
Free version of virtual mixing room plug-in introduced
Lewitt's Space Replicator plug-in provides users with a virtual monitoring environment that aims ...
02/09/2026
Two new mixing & mastering plug-ins revealed
AIR Music Tech have just introduced the Stereophonic Bundle, a pair of processing plug-ins designed to provide ...
02/09/2026
Rohde & Schwarz has achieved initial verification of 3GPP Rel. 17 power-saving f...
02/09/2026
Bilbao - 3rd September 2026 -AgileTV, a leading provider of end-to-end TV and vi...
02/09/2026
Why agentic media supply chains need experience design built around visibility, reversibility and human authority
When AI can generate a functional interface ...
02/09/2026
Six-country survey finds 26% of sports fans frequently unable to determine where...
02/09/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
02/09/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
02/09/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
02/09/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
02/09/2026
KOKKEDAL, DENMARK, SEPTEMBER 1, 2026 DPA Microphones announces its new 6388 CORE Headset Microphone, a high-performance directional headset designed for dema...
02/09/2026
Pliant Technologies will highlight its CrewCom CXD 32CF 32x32 Dante /AES67 Digital Audio Network Interface, a powerful connectivity solution designed to expand ...
02/09/2026
iWedia, a leading provider of software solutions for connected TV devices, today announced two enhancements to Teatro Pulse, its end-to-end TV service operation...
02/09/2026
Signiant, trusted by the media industry for accelerated content movement for more than 20 years, will showcase the latest evolution of the Signiant Platform at ...
02/09/2026
With a contractual agreement to supply a leading UK sports broadcaster with outside broadcast services for 104 football matches per season over the next four ye...
02/09/2026
IBC2026 will put sport firmly at the centre of the global media and entertainment technology conversation with the strongest sports showing in the event's h...
02/09/2026
PTZOptics will bring a hands-on showcase of intelligent video production to IBC2026 (11-14 September, RAI Amsterdam), with demonstrations spanning new camera te...
02/09/2026
OOONA, a global provider of professional management and production tools for the media localization industry, today announced the launch of OOONA Go, a ready-to...
02/09/2026
EON Media will make its European debut at IBC2026 (September 11-14, RAI Amsterdam) in the show's Future Tech Zone (Hall 14.FT5). The company is launching it...
02/09/2026
Frequency, the engine behind many of the worlds leading streaming television channels, will demonstrate at IBC2026 how integrating intelligence throughout chann...
02/09/2026
On-device AI platform gives broadcasters and content creators purpose-built tools for real-time vertical video production and AI-enhanced sports coverage...
02/09/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
02/09/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
02/09/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
02/09/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
02/09/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
02/09/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
02/09/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
02/09/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
02/09/2026
Next-Generation Freeform Control Surfaces Lay the Foundation for AI-Enabled Media Operations
At IBC2026 (Sept. 11 14, RAI Amsterdam, Stand #1.B73), Imagine Com...