
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...
04/08/2026
Dalet, a leading technology and service provider for media-rich organizations, t...
27/07/2026
Lightware announces SNMPv3-based monitoring support for selected Taurus devices, available from firmware v1.20.0. The update enables IT administrators and AV in...
27/07/2026
Mediagenix, a global leader in smart content solutions to profitably connect the right content to the right audience, will showcase its vision for the Real-Time...
27/07/2026
Luxembourg, July 27, 2026 - SES, a leading space solutions company, issued the following statement following the U.S. Federal Communications Commission approval...
27/07/2026
Open source software is a critical pillar of the global economy. It underpins cloud computing, financial services, manufacturing, telecommunications, government...
26/07/2026
What is Audio Vivid? A New Destination for Immersive Audio Over the past several years, immersive audio has evolved from a niche production consideration into a...
26/07/2026
The complexity of modern chip design continues to grow as engineering teams work to develop increasingly sophisticated CPUs, GPUs and AI systems. To help meet t...
25/07/2026
New app turns vocal percussion into polished loops
Vochlea, the company behind the voice-to-MIDI instrument Dubler 2, have just announced the launch of a ne...
25/07/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
25/07/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
25/07/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
25/07/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
25/07/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
25/07/2026
Export FCP7 to XML Without Needing FCP7 Installed
Dave Rice July 24, 2026
0 Comments
I've created an open source tool that allows you to export FC...
25/07/2026
Documentary Sell Your House Edited with DaVinci Resolve Studio
Brie Clayton July 24, 2026
0 Comments
Filmmakers post feature documentary from opposite...
25/07/2026
Time to Act: Bringing a New Opera to Life Boston Conservatory at Berklee vocal arts students played a vital role in shaping the opera's creative developme...
25/07/2026
Beyond the Score For Dean of Music Kevin Haden, the boundless possibilities of classical music begin with process.
July 24, 2026
By
Kevin Haden
Michelle ...
25/07/2026
Reading the Room As music director of two major orchestras, conductor Jonathon Heyward aims to make the concert hall a space for everyone.
July 24, 2026
By
...
25/07/2026
Saturday 25 July 2026
First look revealed for YAGA, a seductive mystery thrille...
24/07/2026
Referee hat cameras, player/coach mics, and virtual graphics will be deployed at the three-day event for the first time
The NFL FLAG Championships return to ES...
24/07/2026
Qvest, Ateme, and Scaleway have partnered to offer broadcasters, media organizat...
24/07/2026
LTN has completed satellite-to-IP migrations for more than 3,000 broadcaster, MVPD (Multi-Channel Video Programming Distributor), head-end, and content owner si...
24/07/2026
Chyron has released Virtual Placement 8.1, an update to its live sports virtual graphics platform. The release adds workflow and graphics changes across chroma ...
24/07/2026
Riedel's RefCam Live was used for the first time at an international soccer match during a friendly between the German men's national team and Ghana in ...
24/07/2026
USSI Global said it is prepared to help broadcasters, satellite network operators, and media organizations manage the next phase of C-band spectrum clearing, fo...
24/07/2026
FuboTV and The Athletic have launched The Athletic Video Hub on Fubo, bringing The Athletic's sports video content to connected TV (CTV) for the first time....
24/07/2026
Tagboard and Momento have partnered to bring Momento's fan reaction photos to venue videoboards in real time following big plays. The Seattle Mariners will ...
24/07/2026
Stephen Arnold Music (SAM) created an anthem called The World Is Here for Fox ...
24/07/2026
Caz TV has acquired Brazilian broadcast rights to the entire WTA Tour driven by Mercedes-Benz, covering all WTA 250, WTA 500, and WTA 1000 tournaments. The agre...
24/07/2026
SiriusXM and WWE have launched WWE Radio on SiriusXM channel 156, beginning Monday, July 27. The channel will carry live audio of WWE Premium Live Events, audio...
24/07/2026
Harvard Athletics produces more than 325 live NCAA Division 1 sports events and 500 edited videos per year. To manage video capture, streaming, recording, and s...
24/07/2026
Chyron's PRIME 5 graphics platform supported live graphics workflows for NBCUniversal Telemundo's FIFA World Cup 2026 coverage across Telemundo, Univers...
24/07/2026
Wearable tech returns to the coverage, and a brand-new mobile unit is rolled out for the 2026 edition
The 21-stage Tour de France is nearing its conclusion. Th...
24/07/2026
More than 20 cameras, extensive player and coach audio, and a REMCO production model will power coverage of the league's showcase
For an event designed to ...
24/07/2026
New broadcast tool uses live timing, telemetry, and predictive analysis to decode real-time team decision-making for fans at home...
24/07/2026
Ratings Roundup is a rundown of recent rating news and is derived from press rel...
24/07/2026
First string library captured at Studio Richter Mahr
The latest sample library to be created at Max Richter's Studio Richter Mahr facility captures the ...
24/07/2026
Official emulation of Blackbird Studios reverb chamber
In their latest collaboration with Blackbird Studios, KIT Plugins have captured the sound of the Stud...
24/07/2026
Sohonet's partners at BIND Studio have published a great case study on the V...
24/07/2026
Angela Gomez brings over 14 years of experience in broadcast communications and audio engineering, specialising in live outside broadcasts, live sports and larg...
24/07/2026
Between the maturation of IP and remote production workflows, collegiate sports production is advancing rapidly. For an Ivy League institution like Harvard, kee...
24/07/2026
iWedia, a global provider of software solutions for connected TV devices, today announces the launch of Teatro Factory, a new operator-facing software factory o...
24/07/2026
Yospace, the trusted leader in Dynamic Ad Insertion (DAI), stitched 11.57 billion one-to-one addressable advertisements into live video streams during the 2026 ...
24/07/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
24/07/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
24/07/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
24/07/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...