The Karma Project: Code Less, Teach More

June 4, 2009

“can and can’t” that is the question

Filed under: News — subzero @ 5:53 pm

Hi guys.

I have been working with the “Can and can’t activity”, the good part is that I have done almost everything, the bad part is that I work in different versions: one around animation and the other about everything else, long story.

In this post I’m talking about “everything else”, specially the sound part:

jQuery has its own sound plugin, but it’s useless:

This is a simple sound player, it uses flash to play the sounds, but DOES NOT provide a flash interface for any controls, everything is controlled via jQuery

Bryan recently sent me a link about nice space invaders game 🙂
I was guessing how it plays sound files, so I peeked a little. It uses soundmanager2, it works, yes!!, but it depends too on a swf file (soundmanager2.swf).

what about swf?, why not to use a flash based solution?
well, if you don’t have the flash plugin the sounds don’t play (I tested it with ff3.5 beta4+), here you can find more information about it. Also, I remember you.. we’re creating something that must be flash independent.

By the way, here is another flash audio wrapper: JS Sound Kit

Also, if you want something harder….there’re java applet solutions :S

At this point, do you have any good suggestion??

well, do you remember HTML5??
I hope, well one of the good new things is the tag:

The audio element is used to embed sound content in an HTML or XHTML document. The audio element was added as part of HTML 5.

Here you can se the “can’t and can activity” with audio support. 🙂

It has some points to need to improve:

  • [Bug] the canvas text moves after redrawing the rectangle.
  • [Improve] preload all the images and sound files

The bad part about html5 is that it only load-plays .ogg files. By the way in unix you can use mp321ogg to convert mp3 to ogg.

what do you think?

Advertisements

4 Comments »

  1. I am looking at “can can’t” with firefox 3.5 B4 but I don’t see any animation. Does it work on another browser?

    Comment by bryanwb — June 5, 2009 @ 2:08 am

    • I have tried it with:

      firefox 3.5 beta4 win/ubuntu passed
      chrome 2.0.172.30: gives errors (no sound, no click function, etc)
      ie7: …obviously it didn’t pass

      Comment by subzero — June 6, 2009 @ 12:28 am

  2. Sorry! I mixed up my desktop shortcuts and was accidentally using firefox 3.0. It works w/ ff3.5 . Looks great! Can’t wait to see more.

    Comment by bryanwb — June 6, 2009 @ 1:49 am

  3. […] the past post I tell you about “can and can’t” audio troubles. And here I tell you about […]

    Pingback by Animation with JavaScript: that little beast « Karma Project Learn.Teach.Everything — June 9, 2009 @ 3:05 am


RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Blog at WordPress.com.

%d bloggers like this: