MP4ERequest access
On the videoBy MP4E

Webview

Opens a web page in a panel on the video, so viewers can look at it without leaving.

  • Sends 4 events
  • Provides 2 variables
  • The address can come from a variable, so a click can change the page
  • Border, corners, background and scrolling are settings
  • Tells rules when the page loads and when the viewer starts using it
  • Shows plain pages; sites that need cookies or block framing do not show
Version 1.1.1

It opens in the Studio, where you place it on your video.

Preview

Scroll the page, or click the video outside the panel to close it.

About

Shows a web page inside the video, in a panel you place like any overlay. The address can come from a variable (for example {{selectedProductUrl}}), so a rule can change the page when the viewer clicks something.

What it can show

  • Plain pages: text, images, tables, product and reference pages, and embeds that need no cookies or storage.
  • Addresses that start with https://. An http:// address is shown only when the player page itself is served over http, because browsers block an http page inside an https page.

What it cannot show at the player's default isolation

  • The page runs inside the plugin's frame and gets the same limits: it has no origin of its own, so it cannot use cookies, localStorage or sign-ins. A site that needs them shows an error or stays empty; many web apps are such sites.
  • It cannot open new windows or tabs, or change the viewer's page, so links that open a new tab do nothing.
  • A site that refuses to be shown in a frame (X-Frame-Options or frame-ancestors) shows the browser's own error page. The plugin cannot tell this apart from a page that loaded.
  • When the host limits plugins' network to the domains they declare, no page loads, because the player then allows no frames.

What a host can change A host can raise this plugin to the trusted level, with a config.pluginSecurity rule giving mp4e:webview sandbox: 'trusted' (or trustContent: true for every plugin). The page then runs with its own site's origin and can use cookies and storage as far as the browser allows them in an embedded page. It still cannot open new windows or change the viewer's page. The plugin's own frame then shares the host page's origin, and a page from the host's own site would have full access to the host page, so do this only for pages you trust.

For the viewer

  • An open button at the top right opens the page in a new tab when the host allows it; use it for pages that cannot be shown here.
  • A close button hides the panel, and a click on the video outside the panel can close it too.
  • When an address cannot be used, or the page has not loaded after 15 seconds, the panel says so.

Events and variables

  • loaded: the frame finished loading. It also fires when a site refused to be shown, because the browser then loads its error page.
  • focused and blurred: the viewer clicked into the page, or back out of it.
  • closed: the viewer closed the panel.
  • mp4e:webview:isLoaded and mp4e:webview:isFocused, for rules such as pausing the video while the viewer reads the page.

Settings

What a creator can set in the Studio, and what a host can set in its overrides.

Content

Content
SettingTypeDefaultWhat it does
URLurlText-Address of the web page to show, starting with https://. It can use {{variable}} templates, so a rule can change the page.

Behavior

Behavior
SettingTypeDefaultWhat it does
ScrollingscrollingOne of
  • auto
  • yes
  • no
autoWhether the viewer can scroll the page inside the panel: auto shows scroll bars only when the page is longer than the panel.
Show Open ButtonshowOpenButtonOn or offOnShows a button at the top right that opens the page in a new tab, when the host allows it.
Show Close ButtonshowCloseButtonOn or offOnShows a close button at the top right that hides the panel.
Close on Click AwaycloseOnClickAwayOn or offOnHides the panel when the viewer clicks the video outside it.

Styling

Styling
SettingTypeDefaultWhat it does
Border ColorborderColorColour#333333Colour of the border around the panel, when it has one.
Border WidthborderWidthNumber, 0 to 100Thickness of the border around the panel in pixels; 0 means no border.
Corner RadiusborderRadiusNumber, 0 to 500How rounded the panel's corners are, in pixels.
Background ColorbackgroundColorColourtransparentColour behind the page, seen while it loads and through a page with a transparent background.

Events and actions

Events you can react to

EventWhen it is sentData
Closedplugin:mp4e:webview:closedFired when the user clicks the close button
  • {{eventData.url}}URL that was showing when closed
Page Loadedplugin:mp4e:webview:loadedFired when the page frame finishes loading; also when a site refused to be shown, because the browser then loads its error page
  • {{eventData.url}}The URL that loaded
User Leftplugin:mp4e:webview:blurredFired when the user clicks back to the video from the webview
  • {{eventData.url}}Current URL
User Focusedplugin:mp4e:webview:focusedFired when the user clicks into the webview and starts interacting with it
  • {{eventData.url}}Current URL

Variables it provides

VariableWhat it holdsType and default
Page Loaded{{mp4e:webview:isLoaded}}Whether the external page has finished loadingbooleanStarts as OffRead only
User Focused{{mp4e:webview:isFocused}}Whether the user is currently interacting with the webviewbooleanStarts as OffRead only

What it can reach

  • Contacts servers only when the host page allows the requestShows the web page at the address you set, loaded from that page's own site.

Versions

  1. v1.1.1November 28, 2026Current
    What changed

    Variables say readOnly instead of the older editable flag.

  2. v1.0.0November 26, 2026
    What changed

    Archived before v1.1.0.

  3. v1.1.0November 26, 2026
    What changed

    The panel now says in plain words when an address cannot be used or the page is slow, and offers to open the page in a new tab. http:// addresses are refused inside a player served over https, and the description now says which pages work.

Webview · MP4E Marketplace