WebWrap: Embed Interactive Webpages With Auto Return

WebWrap embeds any webpage inside a digital signage playlist and automatically returns to the playlist once the visitor stops interacting with it.

The Problem

SMIL playlists can open a webpage on various triggers, but have no way to detect user interaction inside the widget. The only option is a static duration, and that breaks interactive use cases: if a visitor opens a wayfinder or shopping guide and walks away mid session, the playlist is stuck until the fixed timer runs out.

The Solution

WebWrap wraps the target URL in an iframe and monitors touch and click activity. If the screen goes idle for a defined period, it calls the REST API from Garlic-Player or IAdea to switch back to the default playlist. The visitor gets a countdown overlay warning before the switch, and tapping anywhere cancels it.

Configuration

All parameters are set through any CMS that can read config.xml, here shown in Garlic-Hub, no code changes needed per deployment.

ParameterDefaultDescription
urlURL to display (required)
idle_timeout60Seconds of inactivity before returning to the playlist
warn_at10Seconds before timeout at which the countdown overlay shows
show_overlaytrueShow countdown overlay (true/false)
overlay_msgTap to continueMessage shown in the countdown overlay
player_hostlocalhostREST API host
player_port8080REST API port

Once idle timeout is reached, the countdown overlay appears over the embedded page:

Features

SMIL Example

<ref src="WebWrap.wgt">
  <param name="url"          value="https://your-wayfinder.example.com"/>
  <param name="idle_timeout" value="60"/>
  <param name="warn_at"      value="10"/>
  <param name="overlay_msg"  value="Returning to main screen..."/>
</ref>

Use Cases

Compatibility

WebWrap uses the Garlic-Player REST API. IAdea media players are 1:1 compatible with this API. Cross origin URLs load normally. Same origin URLs additionally allow idle detection inside the iframe itself.

Download WebWrap