Web content

From SpinetiX Support Wiki

Jump to: navigation, search

Introduction

"Can web content be displayed by the player?" is definitely one of the frequently asked questions we receive. The answer is not straightforward, as web content can mean a lot of things - here are some examples:

  • an image from a certain web page
  • a video from sites like YouTube, Vimeo etc.
  • an entire web page
  • some data from a social network site or web service

These cases are further detailed below.

Display a media from a web page

If you want to display an image / video from a web page, you have two options:

Display web streaming content

Streaming content from sites like YouTube, Vimeo and others alike, cannot be captured and replayed on the HMP because the streaming protocols used are usually not supported by the HMP. Furthermore, these sites usually prohibit using their content (intellectual property rights, non-commercial usage etc.) outside their website or apps.

Using the Web Page layer doesn't work either because the webkit process dealing with web content has limited resources allocated and lower priority - not enough for real-time rendering of that web page.

The workaround is to download the video(s) locally (using browser add-ons, extension etc.) and then import the video into your project or upload it onto the player web interface.

Display a web page

The HMP internal rendering engine has been optimized for SVG content, as Scalable Vector Graphics format is better suited for displaying typical digital signage content than HTML is, so there's no native support for HTML content, like a built-in browser.

  • HMP300 and HMP350 devices are able to understand HTML through a JavaScript library (Phantom.js), but whether a certain web page can be displayed, depends on the complexity web page content - static and semi-static web pages can be displayed, while complex web pages might not work because they would require too many resources.
  • HMP200, HMP130, and HMP100 players don't have support for displaying web pages.

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.

Static content can also be displayed using the web page layer, available starting with Elementi 2015 for HMP300 and HMP350 models.

An example of such static HTML page is this one: https://download.spinetix.com/content/elementi/weblayer/ .

Display semi-static HTML content

Add a Web Page layer

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

Highly dynamic web sites, like those where all the content is generated through JavaScript, including the animations, might or might not be displayed through the web page layer mentioned above. That is dependent on the capability of the Phantom.js library used to render such websites and the amount of resources required in the process.

Note Note:
If the web page displays in Elementi, make sure to test it on the player as well because the player has limited resources comparing to the PC running Elementi.

Display data from a web service

If you want to display data from social networks, web services, APIs or similar sources, 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:

Display data from a web page

If you want to display data some data from a web page and the data you are looking for is included into the page as pure text (and not generated upon rendering), you can use the data feed widgets from Elementi (or write some jSignage / JavaScript code if page is more complex) to retrieve the text content of the entire page, parse it (i.e. remove all the HTML tags and keep only the needed information) and display the results on the screen. The HTML table widget is an example of such customization of the existing data feed widgets.

This page was last modified on 20 September 2018, at 19:38.