Re: Next step in trying to make use of real-time client side sound effects in a webpage

  • From: "Jacob Kruger" <jacobk@xxxxxxxxxxxxxx>
  • To: <programmingblind@xxxxxxxxxxxxx>
  • Date: Thu, 14 Oct 2010 17:27:46 +0200

I know, but this isn't any real type of work as such yet - just testing/trying 
out technology, but will change it shortly.

I still remember the one time as a software support guy when I had to explain 
to a customer to ignore the friday the 13th warning message that the one 
developer had forgotten to take out of the app before that version went into 
production.

Anyway, sorry - had sort of frogotten about that one, and there's another small 
one that will appear if someone tries to just go look at the javascript 
source...<smile>

Stay well

Jacob Kruger
Blind Biker
Skype: BlindZA
'...fate had broken his body, but not his spirit...'

  ----- Original Message ----- 
  From: Homme, James 
  To: programmingblind@xxxxxxxxxxxxx 
  Sent: Thursday, October 14, 2010 3:38 PM
  Subject: RE: Next step in trying to make use of real-time client side sound 
effects in a webpage


  Hi,

  Please remember that if you ever get into an employment situation that you 
should never put messages that you think are funny or cool in your debugging 
code. I've known programmers who have gotten fired for it.

   

  Jim

   

  Jim Homme,

  Usability Services,

  Phone: 412-544-1810. Skype: jim.homme

  Internal recipients,  Read my accessibility blog. Discuss accessibility here. 
Accessibility Wiki: Breaking news and accessibility advice

   

  From: programmingblind-bounce@xxxxxxxxxxxxx 
[mailto:programmingblind-bounce@xxxxxxxxxxxxx] On Behalf Of Jacob Kruger
  Sent: Thursday, October 14, 2010 7:20 AM
  To: programmingblind@xxxxxxxxxxxxx
  Subject: Re: Next step in trying to make use of real-time client side sound 
effects in a webpage

   

  Ok, have uploaded around 3 different versions in last 15 minutes or so...LOL!

   

  The other joke is that with the javascript source hidden in an external PHP 
file, it will also swear at someone who tries to go look at it...

   

  Anyway, you can do me a favour, and just try it one last time...thanks.

   

  Only other real limitation have noticed is it apparently needs flash 8 or 
higher, but anyway.

   

  Stay well


  Jacob Kruger
  Blind Biker
  Skype: BlindZA
  '...fate had broken his body, but not his spirit...'

    ----- Original Message ----- 

    From: Storm Dragon 

    To: programmingblind@xxxxxxxxxxxxx 

    Sent: Thursday, October 14, 2010 12:41 PM

    Subject: Re: Next step in trying to make use of real-time client side sound 
effects in a webpage

     

    Hi,
    This wins the coolest debugging message award. When the page loaded I got 
the following message and an ok button.
    shit happened
    After the second time this message was shown the page loaded with the 
following messages:
    Drum here (needs to make use of flash, and javaScript):  
    (number row 1-9)

    Back to BlindZA website debug: soundManager: Waiting indefinitely for Flash 
(will recover if unblocked)... soundManager: Firing 1 onready() item 
soundManager::flashBlockHandler(): No flash response, applying .swf_timedout 
CSS.. soundManager: No Flash response within expected time. Likely causes: 
Flash blocked or JS-Flash security error. soundManager.onload() complete 
soundManager::initComplete(): calling soundManager.onload() soundManager: 
Firing 1 onready() item soundManager::flashBlockHandler(): No flash response, 
applying .swf_timedout CSS.. (Flash loaded) soundManager: Getting impatient, 
still waiting for Flash (SWF loaded)... -- SoundManager 2 loaded (OK) -- 
(Flash): Enabling polling, 50 ms interval (Flash): JS to/from Flash OK Flash 
security sandbox type: remote (Flash): SM2 SWF V2.96a.20100822 (AS3/Flash 9) 
soundManager: Attempting to call Flash from JS.. -- SoundManager 2: HTML5 
support tests (/^probably$/i): mp3: false, mp4: false, ogg: true, wav: true -- 
-- soundManager::init() -- soundManager::externalInterfaceOK() (~4 ms) 
soundManager::initMovie(): Waiting for ExternalInterface call from Flash.. 
soundManager::initMovie(): Got EMBED element (created via JS) 
soundManager::createMovie(): Trying to load 
./swf/soundmanager2_flash9_debug.swf -- SoundManager 2 V2.96a.20100822 
(AS3/Flash 9) + HTML5 audio, MovieStar mode, normal polling, flashBlock mode -- 
Note: Switching to flash 9, required for MP4 formats. flashContainer: 

    Thanks
    Storm

          -- 

Registered Linux user number 508465:http://counter.li.org/My blog, Thoughts of 
a Dragon:http://www.stormdragon.us/Follow me on 
Twitter:http://www.twitter.com/stormdragon2976 

    On Thu, 2010-10-14 at 10:40 +0200, Jacob Kruger wrote:



     

      Ok, seems that while you have a document.ready function that JQuery makes 
use of since it then knows the whole document object model will have been 
initialised, and this is where you keep all of it's manipulation scripts, I 
seemd to need to in fact load the various soundManager options before the 
document initialised as such, so I moved it up to above that sort of 
event/function, but within the same script block since javascript still seems 
funny in that way with regard to variable scopes etc. 

      I am also now just keeping all script content within the source of the 
one page, but if can get this part/version to work, I might then try move it 
out to an external script source PHP handled file and again see if that causes 
any issues - but don't really think it would. 

      In other words, while it may not be too pretty since I've turned on quite 
a bit more debugging info, it should now, hopefully at least play one sound 
when you type in that text field, and this is since it now seems that something 
like FireFox isn't passing the same keycode value etc. via javascript, so am 
now going to have to try figure out a more workaround way to find out which key 
you've pressed - might look into something like just reading the value of the 
text/input field, and then work on that etc., but not sure it would work real 
time enough. 

      Anyway, this is still working for me in IE8, and at least now triggering 
the 1 sound to be played in FireFox, but that's all have tested it in so far. 

      Again, if you want to have a 'look', and let me know if the whole number 
row plays the same sounds (if any at all): 

      http://www.blindza.co.za/RTDrums/ 

      Stay well 


      Jacob Kruger
      Blind Biker
      Skype: BlindZA
      '...fate had broken his body, but not his spirit...'

        ----- Original Message ----- 

        From: Storm Dragon 

        To: programmingblind@xxxxxxxxxxxxx 

        Sent: Tuesday, October 12, 2010 12:54 PM 

        Subject: Re: Next step in trying to make use of real-time client side 
sound effects in a webpage 

         

        Hi,
        I tried this one and got no sounds. I am using Vinux (Ubuntu 10.04). 
Here's the output from the page:
        Drum here (needs to make use of flash, and javaScript):  
        (number row 1-9)

        Back to BlindZA website 

        -

        soundManager::initMovie(): Waiting for ExternalInterface call from 
Flash.. soundManager::initMovie(): Got EMBED element (created via JS) 
soundManager::createMovie(): Trying to load ./soundmanager2_debug.swf -- 
SoundManager 2 V2.96a.20100822 (AS2/Flash 8), MovieStar mode, normal polling
        Thanks
        Storm -- 

              -- 

Registered Linux user number 508465:http://counter.li.org/My blog, Thoughts of 
a Dragon:http://www.stormdragon.us/Vinux is Linux done 
right:http://vinux.org.uk/


             

        On Tue, 2010-10-12 at 12:45 +0200, Jacob Kruger wrote: 



        http://www.blindza.co.za/RTDrums/ 
        This one makes use of the JQuery javascript dynamic html library, as 
well as the soundManager embedded, flash object that should be (hopefully) 
relatively platform independent to sort of preload MP3 sound clips that can 
then be triggered to play almost real time, and if this works well enough 
across various platforms, it might then in fact be possible to use something 
similar to create relative dynamic sound effects to be used in conjunction with 
DHTML to create sort of platform independent games, sound providing tutorials, 
etc. etc. - hopefully anyway...<smile> 
        Stay well 

        Jacob Kruger
        Blind Biker
        Skype: BlindZA
        '...fate had broken his body, but not his spirit...'



        __________ Information from ESET NOD32 Antivirus, version of virus 
signature database 5523 (20101012) __________

        The message was checked by ESET NOD32 Antivirus.

        http://www.eset.com 



        __________ Information from ESET NOD32 Antivirus, version of virus 
signature database 5523 (20101012) __________

        The message was checked by ESET NOD32 Antivirus.

        http://www.eset.com 



------------------------------------------------------------------------------
  This e-mail and any attachments to it are confidential and are intended 
solely for use of the individual or entity to whom they are addressed. If you 
have received this e-mail in error, please notify the sender immediately and 
then delete it. If you are not the intended recipient, you must not keep, use, 
disclose, copy or distribute this e-mail without the author's prior permission. 
The views expressed in this e-mail message do not necessarily represent the 
views of Highmark Inc., its subsidiaries, or affiliates.



__________ Information from ESET NOD32 Antivirus, version of virus signature 
database 5531 (20101014) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com

Other related posts: