3DVIA player

Technical Information for Webmasters : Embed 3DVIA player

  • Version:
  • Posted on:

How to Insert a Virtools Composition (VMO file) into a Web Page

First you have to include Javascript files which contains a set of functions and variables to generate HTML code related to the 3DVIA player.

<head>
 <script src="http://3dlifeplayer.dl.3dvia.com/player/install/DetectBrowser.js"></script>
 <script src="http://3dlifeplayer.dl.3dvia.com/player/install/3DLifePlayer_last_version.js"></script>
 <script src="http://3dlifeplayer.dl.3dvia.com/player/install/3DLifePlayer.js"></script>
</head>

Then call a Javascript function to generate the HTML code embedding the 3DVIA player (depending the end user browser), specifying:

    • the VMO's URL (relative or absolute path) ("3dlifeplayer.vmo" in the following sample)
    • the VMO's window size in pixels (256,80 in the following sample) and
    • the plugin instance name ("Virtools" un the following sample).

(Items in bold need to be edited for your content)

<script language="JavaScript">
    Generate3DLifePlayerHtmlTag("3dlifeplayer.vmo",256,80,"Virtools");
</script>

 

IMPORTANT: HIGHLY RECOMMENDED : To improve the integration of the 3DVIA player in Firefox (and other Gecko based brother) under Microsoft Windows, we recommand the following: The integration of the 3DVIA player into your website should be divided in two parts.

1- A first HTML page (install.html) used to check the player installation or if it's the player's last version. This page can look like the following sample:

<html>
<head>
 <script src="http://3dlifeplayer.dl.3dvia.com/player/install/DetectBrowser.js"></script>
 <script src="http://3dlifeplayer.dl.3dvia.com/player/install/3DLifePlayer_last_version.js"></script>
 <script src="http://3dlifeplayer.dl.3dvia.com/player/install/3DLifePlayer.js"></script>
</head>
<body>
<script language="JavaScript">
    redirectionURL = "http://www.website.com/player/run.html";
    Generate3DLifePlayerHtmlTagForInstall("<img src='install_now.gif' width='110' height='26' border='0' alt='Click the button to begin installation.'>");
</script>
</body>
</html>

2- A second HTML page (run.html) which runs the player. The first page (install.html) redirect the user to this page once the player version has been checked or when the player has been installed (modifying the variable redirectionURL). This page can look like the following sample:

<html>
<head>
 <script src="http://3dlifeplayer.dl.3dvia.com/player/install/DetectBrowser.js"></script>
 <script src="http://3dlifeplayer.dl.3dvia.com/player/install/3DLifePlayer_last_version.js"></script>
 <script src="http://3dlifeplayer.dl.3dvia.com/player/install/3DLifePlayer.js"></script>
</head>
<body>
<script language="JavaScript">
    Generate3DLifePlayerHtmlTag("3dlifeplayer.vmo",256,80,"Virtools");
</script>
</body>
</html>

English version

Install Player

Test

Troubleshooting

Embed 3DVIA player

Version française

Installation

Test

Problèmes d'utilisation

Intégrer le 3DVIA player