EMBEDDING A VIEWPOINT OBJECT
INTO YOUR WEB PAGE

The Viewpoint Media Player constructor line, a component of the MTS3Interface JavaScript library, automatically readies your web page for display on either Windows or Macintosh operating systems and on any of the supported web browsers (namely, Internet Explorer, Netscape Navigator, AOL, or CompuServe). This ensures communication between JavaScript function calls and the Player.

Once you embed the generated code into your HTML file, your web page should contain MTS3Interface.js and the constructor line variable, resembling the following sample:

<html>
<head>
<script language="javascript" src="MTS3Interface.js"></script>
<script language="javascript">
   var vmp;
</script>
</head>
<body>
<script language="javascript">
   vmp = new MTSPlugin( parameters here );
</script>
</body>
</html>

LOOK AT THE EMBED SOURCE CODE ON THIS PAGE:
"test.mtx" = your Viewpoint MTX/MTZ file
"<img src="alt.jpg">" = an alternate image to show if MTX does not load
"layer=mylayer" = is your MTX object on a layer?
"BroadcastKey.mtx" = MUST be in same directory as file showing content

THESE FILES MUST BE IN THE SAME FOLDER:
  • BroadcastKey.mtx
  • MTS3Interface.js
  • both of your MTZ & MTX & MTS files
  • a JS file for your MTZ/MTX files if it has actions
Broadcast Keys Begone!
Purchasing Broadcast Keys is no longer necessary to legally display content using VMP. Visit Viewpoint Developer Central to download a free Universal B-key for your site if you have previously created Viewpoint objects. Objects created using Viewpoint version 3.3 or later do not need to use a Broadcast Key.


copyright © 2006-2007, Deby.com. All rights reserved.
.