Type: Integer
Returns an integer indicating whether the RealPlayer installed and, if so, what type of player it is. . The returned value will be one of the following:
0: The plug-in is not installed
1: The original RealPlayer is installed
2: The RealVideo player is installed
3: The RealPlayer G2 plug-in is installed
4-6: Not used
7: RealPlayer 7 installed
8: RealPlayer 8 installed
9: RealOne Player installed
10: RealPlayer 10 or later installed
-1: It is not possible to detect if the plug-in is installed
Note: You must call the GetExtPropertiesEx method before checking the value of this property. This property requires either the Professional or Enterprise Edition of BrowserHawk.
Tip: See the extproperties.asp example located in your BrowserHawk directory for detailed information and examples on using this property.
Example:
<% set bhObj = Server.CreateObject("cyScape.browserObj")
bhObj.SetExtProperties "Plugin_Realplayer"
bhObj.GetExtPropertiesEx
%>
<html>Status of RealPlayer plug-in:
<%
rp = bhObj.Plugin_RealPlayer
if rp = -1 then
PropVal = "Not detectable"
elseif rp = 0 then
PropVal = "Not installed"
elseif rp = 1 then
Propval = "Original RealPlayer installed"
elseif rp = 2 then
Propval = " RealVideo installed"
elseif rp = 3 then
Propval = " RealPlayer G2 installed"
elseif rp = 7 then
Propval = " RealPlayer 7"
elseif rp = 8 then
Propval = " RealPlayer 8"
elseif rp = 9 then
Propval = " RealPlayer "
elseif rp = 10 then
Propval = " RealPlayer 10"
end if
response.write PropVal
%>
</html>
Special notes for this property:
Not all browsers are capable of having their plug-ins detected. If this is the case the return value will be -1.
In some cases if the user installs the RealOne player for the first time the browser may need to be restarted before it can be detected.
If the user’s JavaScript is disabled this property will not be available.
See Also: