To allow Flash URL redirection to take place, you must embed a JavaScript command in the MIME HTML (MHTML) Web pages that provide links to the multicast or unicast streams. Users display these Web pages in the browsers on their remote desktops to access the video streams.

In addition, you can customize the English error message that is displayed to end users when a problem occurs with Flash URL redirection. Take this optional step if you want to display a localized error message to your end users. You must embed the var vmwareScriptErroMessage configuration, together with your localized text string, in the MHTML Web page.

Prerequisites

Verify that the swfobject.js library is imported in the MHTML Web page.

Procedure

  1. Embed the viewmp.js JavaScript command in the MHTML Web page.
    For example: <script type="text/javascript" src="http://localhost:33333/viewmp.js"></script>
  2. (Optional) Customize the Flash URL redirection error message that is sent to end users.
    For example: "var vmwareScriptErroMessage=localized error message"
  3. Make sure to embed the viewmp.js JavaScript command, and optionally customize the Flash URL redirection error message, before the ShockWave Flash (SWF) file is imported into the MHTML Web page.

Results

When a user displays the Web page in a remote desktop, the viewmp.js JavaScript command invokes the Flash URL Redirection mechanism on the remote desktop, which redirects the SWF file from the desktop to the hosting client device.