Moderators: e_phoenix13
Go
New
Find
Notify
Tools
Reply
  
-star Rating Rate It!  Login/Join 
<bj>
Posted
Hi

Is there any way to install the VMP on a site that don't have any
viewpoint materiel on it, and when the plugging is installed
I what to automatic transfer to a site whites have viewpoint contents on it.

/B
 
Reply With QuoteEdit or Delete MessageReport This Post
Member
Picture of viewpoint d-d
Posted Hide Post
Yes you can do that. If you include the MTS3Interface.js file and the mtsAxDetect.vbs file, they offer you a JavaScript function called IsMTSInstalled() which you can call.

If it returns true, the visitor has the Viewpoint Media Player installed and you can redirect them to another page with VET content.

Here's an example of how such a test might look (in the HTML):

< script language="javascript" src="MTS3Interface.js"> < / script>

< script language="VBScript" src="mtsAxDetect.vbs"> < / script>

< script language="javascript" >

if (IsMTSInstalled()) window.location="http://somewhereelse.com";

< / script >

That would achieve what you asked for, if the visitor has the VMP then it will take them to another site. There is an alternative though. You can have only one page or one site and the alternate content is handled within the HTML page. In the constructor call to create the VET Scene, there's a parameter where you can define alternate content. If you were to set the alt parameter to "alternate.gif" then if the plugin is not installed, it will display that GIF where the VET content would have been.

You might want to download some of the tutorials and VET guides from the developer central area on the viewpoint website.

-Derek
 
Posts: 793 | Location: Viewpoint, New York, New York | Registered: January 24, 2003Reply With QuoteEdit or Delete MessageReport This Post
  Powered by Eve Community