Viewpoint Forums
Viewpoint Forums
Viewpoint Media Player Support
install VMP?|
Go
![]() |
New
![]() |
Find
![]() |
Notify
![]() |
Tools
![]() |
Reply
![]() |
|
|
Member |
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 |
|||
|
| Powered by Eve Community |
| Please Wait. Your request is being processed... |
|

