
In our previous article (part one 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 project's configuration.
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 logicTo 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 creation 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 adds either 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.
StylingAdding 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
13/03/2025
WASHINGTON FCC Chairman Brendan Carr announced that the agency has launched a massive, new deregulatory initiative that could potentially subject virtually all ...
13/03/2025
SUNNYVALE, Calif. SDVI has announced that it has integrated its Rally media supply chain management platform with the Spectra Vail multi-cloud data management s...
13/03/2025
ATLANTA Gray Media has announced that the Federal Communications Commission (FCC) has granted a waiver of its local ownership rules to permit Gray Media to acqu...
13/03/2025
TV Tech: What do you anticipate will be the most significant technology trends at the 2025 NAB Show?...
13/03/2025
Watch Student Naomi Soleils Folk Pop Performance on The Voice The songwriting major sang Stars by Grace Potter and the Nocturnals during the blind auditions.
...
12/03/2025
O Spotify acaba de lan ar o relat rio Loud & Clear deste ano, uma vis o transpar...
12/03/2025
Spotify acaba de presentar el informe Loud & Clear de este a o, una mirada trans...
12/03/2025
Ramadan, a period of profound spiritual significance for Muslims worldwide, is a time for fasting, prayer, reflection, and community. Enrich your experience thi...
12/03/2025
Spotify has just unveiled this year's Loud & Clear report, a transparent loo...
12/03/2025
More than 70% of FAST programming has been produced since 2010, according to new Gracenote report
NEW YORK March 12, 2025 Gracenote, the content data busin...
12/03/2025
GEONA, Nev. Independent digital and linear advertising rep firm Viamedia will adopt cloud-based ShowSeeker Pilot as its primary ad campaign and order management...
12/03/2025
BRUSSELS Mediagenix has announced that Wael Yasin has joined the company as sales director Central Europe....
12/03/2025
LONDON A new study highlights opportunities for shoppable TV and the massive impact online consumer spending is having on the economy, with Omdia predicting tha...
12/03/2025
CUPERTINO, Calif. Interra Systems has announced that Comcast Technology Solutions has integrated recent updates to BATON Version 9 into its operations....
12/03/2025
Nevion announces new 400G addition to its eMerge SDN media fabric offering
Brie Clayton March 12, 2025
0 Comments
High-capacity switch enhances existi...
12/03/2025
DaVinci Resolve Studio Delivers Cinematic Sound for Adam Bol
Brie Clayton March 12, 2025
0 Comments
Feature film relies on DaVinci Resolve Studio for ...
12/03/2025
SVT Leverages Ateliere Live to Pioneer 100% Software-Defined Production at Rally...
12/03/2025
Berklee Awards Fenway Neighborhood Improvement Grant to Four Organizations A total of $17,000 will be distributed among the Boston-based nonprofits.
By
Madd...
12/03/2025
TVBEuropes Jenny Priestley sits down with new SMPTE president Richard Welsh to discuss his aims for the organisation going forward, its efforts to attract a you...
12/03/2025
The new process has significantly enhanced operational efficiencies, with automation freeing up creators to concentrate on higher value tasks
By Matthew Corrig...
12/03/2025
Jellyfish Pictures, which has offices in London and Sheffield, said it has been battling hard in the face of strong headwinds over the last 12 months
By Jenny ...
12/03/2025
Visit Booth #W2213 to Experience the Latest in AI-Driven Content Discovery and Workflow Automation
Bitcentral, a leader in media workflow solutions, is set to ...
12/03/2025
CHICAGO Jeff Lilly has been named WGN-TV director of technology effective March 17, 2025, according to Ric Harris, WGN-TV vice president and general manager....
12/03/2025
MOUNTAIN VIEW, Calif. A new study from LG Ad Solutions indicates that consumers want more features that would allow them to shop for products on the connected T...
12/03/2025
BOTHELL, Wash. The Alliance for IP Media Solutions (AIMS), Advanced Media Workflow Association (AMWA) and the Video Services Forum (VSF) will once again present...
12/03/2025
PHILADELPHIA Comcast announced that it has upgraded Xfinity Internet speeds for more than 20 million customers for no additional cost....
12/03/2025
Create with Maxon: Cinema 4D Fundamentals Workshop - March 12-14
Brie Clayton March 11, 2025
0 Comments
Makin' Waffles with Elly Wade
During Marc...
12/03/2025
Ottawa, Canada - March 12, 2025 - Ross Video is pleased to announce the appointment of Aaron Tunnell as Business Development Director, Cloud Solutions, reinforc...
12/03/2025
12 Mar 2025
VEON to release 4Q 2024 trading update on 20 March 2025 Dubai, 12 March 2025 - VEON Ltd. (NASDAQ: VEON), a global digital operator, today confirms ...
12/03/2025
Getting set for the Winter Olympics: Inside SVT's ongoing software-based pro...
12/03/2025
THE PLAYERS Championship 2025: AI Commentary, Shared-Reality Viewing at COSM, La...
12/03/2025
Seamless SMPTE 2110: A Discussion on Making the Move to IP Less Painful Leaders from Netflix, Monumental Sports & Entertainment, LinkedI, and Megapixel address ...
12/03/2025
Opening Doors of Perception: Meta's Ajit Ninan on Rethinking AR/MR Perceptua...
12/03/2025
With the 2025 Formula 1 season set to begin in Melbourne on March 16, Sky Sports is gearing up to deliver its most comprehensive F1 coverage yet. Following a th...
12/03/2025
Unicanal and Trece TV revolutionize Digital TV in Paraguay with Rohde & Schwarz ...
12/03/2025
Honoring Service, Celebrating Sport: Rohde & Schwarz UK Sponsors NavyFit Rugby D...
12/03/2025
New HVS-Q12 Represents a Quantum Leap in Switcher Design...
12/03/2025
Telespazio and ABS Expand Partnership to Deliver Tailored C-Band Connectivity So...
12/03/2025
ABC conducts independent audits across the TAG programs. In the March 2025 TAG s...
12/03/2025
Facebook
Twitter
LinkedIn
Moonlight: ESA program to create a satellite con...
12/03/2025
Facebook
Twitter
LinkedIn
In 2025, Thales ranks among the top 0.01% of the...
12/03/2025
Consumer show back following hugely successful first series
10 March 2025 Following a hugely successful first series, The Complaints Bureau returns to RT ...
11/03/2025
By Lucy Spicer
One of the most exciting things about the Sundance Film Festival...
11/03/2025
Salsa is making a comeback, captivating new listeners with its infectious energy...
11/03/2025
For many people, music can serve as a reflection of their roots and upbringing. ...
11/03/2025
The solution delivers reliable, scalable and secure connectivity for critical pu...
11/03/2025
SAN JOSE, Calif. Harmonic has announced that Weigel Broadcasting has deployed Harmonics VOS Media Software, which offers playout-to-delivery capabilities, inclu...
11/03/2025
NEW BERN, N.C. Wheatstone will introduce a Linux audio driver for its WheatNet IP audio network during the 2025 NAB Show, April 5-9, at the Las Vegas Convention...
11/03/2025
NEW YORK A new study finds that as TV viewership for women's sports surged by 131% in 2024, the programming also saw a 56% year-over-year increase in ad im...
11/03/2025
Powerful switcher for news studio
FOR-A, a cutting-edge video broadcast technology company backed by more than 50 years experience, has installed its HVS-1200 ...