OSDN Git Service

version 0.6.101, add X.Doc.
[pettanr/clientJs.git] / 0.6.x / js / 06_audio / 02_XSilverlightAudio.js
index 2019d4a..dfddccb 100644 (file)
@@ -34,7 +34,7 @@ if( X.Pulgin.SilverlightEnabled ){
                        detect : function( source, ext ){\r
                                var ok = ext === 'mp3' || ext === 'wma';\r
                                \r
-                               this.asyncDispatch( 0, ok ? 'support' : 'nosupport' );\r
+                               this.asyncDispatch( ok ? 'support' : 'nosupport' );\r
                                \r
                                return this;\r
                        },\r
@@ -130,7 +130,7 @@ if( X.Pulgin.SilverlightEnabled ){
                                 * このページのサンプルは sl5+firefox32 環境で動いている。xaml を js から利用する形ではなく、.xap を sl4 以下で作るのがよさそう.\r
                                 */\r
                                this.proxy       = proxy;\r
-                       this._onload     = 'XAudioSilverlightOnLoad';// + ( ++X_Audio_SLAudio_uid );\r
+                       this._onload     = 'XAudioSilverlightOnLoad' + ( ++X_Audio_SLAudio_uid );\r
                                this._callback   = window[ this._onload ] = X_Callback_create( this, this.onSLReady, [ option.autoplay ] );\r
                        this.xnodeObject = X.Dom.Node._body\r
                                .create( 'object', {\r
@@ -165,6 +165,8 @@ if( X.Pulgin.SilverlightEnabled ){
                                this._callback.kill();\r
                                delete this._callback;\r
 \r
+                               //if( sender.findName('media') ) alert( 'exist' );\r
+\r
                                sender.children.add(\r
                                        sender.GetHost().\r
                                        content.\r