OSDN Git Service

Version 0.6.184, fi x X.AudioSprite & X.Audio, add X.WMPAudio.
[pettanr/clientJs.git] / 0.6.x / js / 03_plugin / 00_XPlugin.js
index 07420dd..ffcdedc 100644 (file)
@@ -60,8 +60,20 @@ var X_Pulgin_FLASH_VERSION =
                            return X_Script_createActiveXObjectSafty( 'Gears.Factory' );
                        })() :
                        X_Object_find( navigator, 'mimeTypes>application/x-googlegears>enabledPlugin' )
-               );
-       
+               ),
+
+// https://support.microsoft.com/ja-jp/kb/279022
+// Windows Media Player 7 がクライアントにインストールされている場合に、自動的に Web ページに埋め込む方法
+// TODO GeckoActiveXObject
+       X_Pulgin_WMP_VERSION =  
+               !X_UA[ 'IE' ] || !X_UA[ 'ActiveX' ] ? parseFloat( X_Object_find( navigator, 'plugins>Windows Media Player Plug-in Dynamic Link Library>version' ) || 0 ) :
+               (function(){
+                           var obj = X_Script_createActiveXObjectSafty( 'WMPlayer.OCX.7' );
+
+                           return obj ? parseFloat( obj[ 'versionInfo' ] ) :
+                               X_Script_createActiveXObjectSafty( '{22D6F312-B0F6-11D0-94AB-0080C74C7E95}' ) ? 6.4 : 0;
+                       })();
+
        // QuickTime Plug-in 7.7.6
        /*
        X_Pulgin_QUICKTIME_VERSION =
@@ -79,7 +91,6 @@ var X_Pulgin_FLASH_VERSION =
                                })() :
                                0, */
 
-
 /**
  * @namespace X.Pulgin
  */
@@ -95,7 +106,9 @@ X[ 'Pulgin' ] = {
        
        //'QuickTime'          : X_Pulgin_QUICKTIME_VERSION,
        
-       'Gears'       : !!X_Pulgin_GEARS_ENABLED
+       'Gears'       : !!X_Pulgin_GEARS_ENABLED,
+       
+       'WMP'         : X_Pulgin_WMP_VERSION
        
 };