
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
02/04/2025
Pedro Pascal appears in Anna Boden and Ryan Fleck's Freaky Tales, which pr...
02/04/2025
With a focus on safeguarding premium content value and authenticity, NAGRA highlighted key areas of interest in the media and entertainment industry. Of note wa...
02/04/2025
In our latest blog, gain insights into the media industry's challenges and how NAGRA Active Streaming Protection provides a framework for holistic content p...
02/04/2025
In our latest blog Tim Pearson considers Generative AI and the opportunities it presents as well as some of the challenges it can cause for media, entertainment...
02/04/2025
Learn valuable insights into strengthening your content protection strategy and discover how multi-DRM helped transform content security for leading post-produc...
02/04/2025
This year's IBC 2024 was an incredible opportunity to connect with industry leaders and innovators, and the conversations around consumer cybersecurity were...
02/04/2025
As a lifelong sports enthusiast from the U.S., I've always been captivated by how sports can unite people. From the roar of the crowd during major events to...
02/04/2025
In our latest blog, Tim Pearson caught up with Julian Williams at Anthropic to explore the science of conversations and how the increasing adoption of generativ...
02/04/2025
In our latest blog, Tim Pearson considers recent industry successes in dismantling large-scale pirate operations and what defensive steps video service provider...
02/04/2025
In our latest blog, Laura Rognoni explores OpenTV ENTera, the latest innovation from NAGRAVISION that's designed as a blueprint for today's streaming se...
02/04/2025
Scott Alexander, President of Missile Solutions, Aerojet Rocketdyne, L3Harris, writes in Breaking Defense: L3Harris is building the factories of the future that...
02/04/2025
Calrec's Argo S ramps up Raycom's output for OTT, FAST and OTA channels North Carolina's Raycom Sports has upgraded its flagship RHD1 mobile product...
02/04/2025
Calrec expands ecosystem at NAB 2025 giving broadcasters access to dynamic workflows and ultimate flexibility Helping broadcasters meet the shifting needs of me...
02/04/2025
aconnic AG (ISIN: DE000A0LBKW6), Munich, is launching a new 10 Gigabit Carrier Ethernet system for industrial application. The ACCEED 4108 DR provides full MEF ...
02/04/2025
TV Tech: What do you anticipate will be the most significant technology trends at the 2025 NAB Show?...
02/04/2025
SKY and DGO, the streaming and live TV platforms of DIRECTV Latin America and SKY Brasil, are moving forward with consolidating the highest-level experience fo...
02/04/2025
IABM is delivering a strategic transformation at NAB Show designed to fiercely champion members amidst global, industry challenges, elevating and innovating to ...
02/04/2025
Following a well-attended February 27th-28th GovSatCom in Luxembourg, Hiltron Communications promoted its wide range of satellite communication products, system...
02/04/2025
MASV, the fastest large file transfer platform for media professionals, is revolutionizing enterprise media workflows by enabling faster, more reliable, and sca...
02/04/2025
AgileTV, a leader in TV and video technology solutions, is partnering with CANAL Germany, the leading B2B TV-licensing provider in Germany, to introduce "The E...
02/04/2025
New model leverages 20Gbps USB 3.2 Gen 2x2 interface to capture 12G SDI without a driver or external power
Magewell, developer of innovative, high-performance ...
02/04/2025
MwareTV, a leading cloud-based multi-tenant TV platform provider, is set to launch a ground-breaking new toolset at NAB 2025 (booth W3457, Las Vegas Convention ...
02/04/2025
LiveU will spotlight its latest technical collaborations around efficient story-centric workflows and cloud collaboration in its expanded EcoSystem at the upcom...
02/04/2025
Live Media Group, a leader in live broadcast solutions and event production, has named Ryan Hatch as Vice President, Strategic Accounts, effective April 1st. In...
02/04/2025
New AI Innovation in Industry-Leading Adobe Premiere Pro Empowers Video Pros to ...
02/04/2025
DigitalGlue and Symply Partner to Deliver Next-Generation Storage Solutions for ...
02/04/2025
Music Therapy Students Awarded First Internship Stipend from Children's Musi...
02/04/2025
WASHINGTON The National Association of Broadcasters (NAB) will present the Television Chairman's Award to renowned magicians and television personalities, P...
02/04/2025
MINNEAPOLIS-ST. PAUL The Minnesota Twin have inked a new, multi-year partnership with Gray Media and FOX 9, KMSP, to broadcast 10 Tuesday night regular season g...
02/04/2025
SAN JOSE Adobe today announced the official launch of its Generative Extend AI tool for Premiere Pro. The feature announced at its Adobe Max conference last fa...
02/04/2025
Sally Wallington, SVP of sales at Pebble, explores the mission-critical considerations broadcasters should make when choosing a playout provider
Sponsored Cont...
02/04/2025
TVBEurope meets Tim Claman, chief product officer at Avid, to discuss the compan...
02/04/2025
Submissions will be accepted up until 23:59 PST on 2nd April
By Jenny Priestley
Published: March 24, 2025 Updated: April 2, 2025
Submissions will be acc...
02/04/2025
Leclerc will work with group members to explore and champion UK digital media distribution via broadcast, IP, mobile or hybrid delivery
By Jenny Priestley
Pu...
02/04/2025
Global media technology company Backlight will showcase new advancements in AI-driven automation, media management, and live content production at the 2025 NAB ...
02/04/2025
Radio Marca, a Spanish radio broadcaster transmitting round-the-clock sports coverage, has chosen DHD audio mixers and routing as the heart of recently expanded...
02/04/2025
As media organizations increasingly rely on IP-based media production and distribution, security remains a critical challenge. Net Insight is addressing these i...
02/04/2025
Lightware, a leader in connectivity solutions for the professional AV industry, has officially opened its new global headquarters at the HOP Technology Office P...
02/04/2025
Groundbreaking Product Integration Enables Pixotope Customers to Add ST 2110 Support to Existing or New Solutions
Matrox Video today announced that Pixotope, a...
02/04/2025
V-Nova, best known for MPEG-5 LCEVC, joins the Access Advance program to contribute its essential HEVC patents
Inaugural participation underscores V-Nova'...
02/04/2025
Amagi, a cloud-based SaaS solutions provider for broadcast and streaming TV (CTV), announced that it has been chosen by Sports Studio, Inc, a premier sports pla...
02/04/2025
Helping broadcasters meet the shifting needs of media consumption, Calrec is showcasing an expanded suite of interconnected technologies at NAB 2025, on Booth #...
02/04/2025
CYPRESS, Calif FOR-A America will showcase its new FOR-A MixBoard powered by ClassX at the 2025 NAB Show, April 6-9 in Las Vegas. The FOR-A MixBoard is a fully...
02/04/2025
As pro sports teams' engagements with TV station groups explode into a historic search for a successor to the pay-TV distribution model, they're generat...
02/04/2025
At the 2025 NAB Show, April 6-9 in Las Vegas, Cinegy will showcase its strategic partnership with Scale Logic, a provider of high-performance storage and workfl...
02/04/2025
CESSON-SEVIGNE, France Broadpeak has announced that it has launched EdgePeak, a video and data cache software engine. The new solution is designed to help opera...
02/04/2025
Camera tracking and virtual production technology provider Mo-Sys has announced it will be showcasing its new StarTracker Mini at the 2025 NAB Show between Apri...
02/04/2025
Telos Alliance and Telestream Announce Integration of Audio and Video Processin...
02/04/2025
NAB 2025 Preview: Audio To Be a Major Presence Across the Show Conferences, vendor exhibits cover a wide range of issues and products By Dan Daley, Audio Edito...
02/04/2025
NHL Inks 12-year, $7.7B Deal With Rogers Communications to Tie Up Media Rights i...