From SpinetiX Support Wiki
- 1 Introduction
- 2 Simple cases
- 3 Advanced cases
When it comes to preparing content for the HMP, one of the frequently asked questions is "Can a web page be displayed on the HMP?" - before answering to this or similar questions, note you might not need to display a web page in the first place - make sure to check the common situations detailed below.
Some static and semi-static HTML pages can be displayed on HMP300 and HMP350. Note that some more complex web pages might not work. On HMP200, HMP130, and HMP100 models, it is not possible to display a web page.
The HMP internal rendering engine is based on SVG (Scalable Vector Graphics) which is better suited for displaying typical digital signage content than HTML is, so it's always better to create SVG content for the HMP than using HTML content.
Display a media from a web page
If you want to display an image / video from a web page, you have two options:
- Download that image / video and import it into your project.
- Display that image / video directly from the web server - for that, find the image / video address, add a media layer from the Edit panel, and enter the image / video address as the layer URI.
Display a video from YouTube or similar
Videos from public sharing websites, like YouTube, Vimeo etc., cannot be played by the HMP directly from the source because these sites are using streaming protocols that are not supported by the HMP.
Display static HTML content
If you want to display a static HTML page (like simple presentational websites) the best is to use the original file from your design application (e.g. Illustrator, Photoshop) and export it to SVG or save the graphical assets as PNG / JPEG images.
Display semi-static HTML content
For semi-static websites, which combine HTML code, JS / CSS animations, and eventually simple Ajax calls, the solution is to use the web page layer, available starting with Elementi 2015 for HMP300 and HMP350 models.
See more about the Web Page layer.
Display complex web content
Display web streaming content
Streaming content from sites like YouTube, Vimeo etc., cannot be displayed through the Web Page layer - first, because those sites prohibit using their content (intellectual property rights, non-commercial usage etc.) outside their website, and second, because that would require higher priority and resources for real-time rendering of the web page, which is not possible on the current player platform.
See the Streaming page for alternatives.
Display data from a web service
If you want to display data from a web service / API / data source, you can use the data feed feature - the HMP can connect to most data sources from the web using the data-driven widgets from Elementi.
You might want to check these tutorials as well:
- RSS ticker tutorial to see how to display Google News as a ticker;
- JSON data feeds tutorial to see how to connect to a REST API based on JSON.
Display data from a web page
The HTML table widget is an example of such customization of the existing data feed widgets.