Include to favorites
Log in Logout Register
Start Login Contact Help Photos What's new
Avanced Search
FAQ
RESULTS IN: TEXT IMAGES

Hello, Guest
Login  Register
Online: 227 visitors

Blogging (2)
Business (1)
Educational (2)
Gadgets (1)
Games (2)
High Tech News (1)
Internet (0)
PC (1)
PDA (0)
Photography (0)
Science (1)
Software (1)
Wireless (1)


Browse by date

<< July 2010 >>
MonTueWedThrFriSatSun
1234
567891011
12131415161718
19202122232425
262728293031




Recent searches

Popular searches

Hot this month

Weblogs Archive


GADGETS AND GAMES DIRECTORY :: > Software Register Weblog >  Software Tech Weblogs - WEEKLYBITS.COM GADGETS AND GAMES DIRECTORY
Yahoo User Interface Blog
generated by http://wordpress.org/?v=2.9.2  en Blogger
SEND A FRIEND
Suscribing to  please login first
User: Login

Is a collection of industrial-grade JavaScript utilities and widgets that enable you to efficiently get the most out of today’s powerful web applications.
News and Articles about Designing and Developing with Yahoo! Libraries.Visit Yahoo! User Interface Blog
Address URLhttp://www.yuiblog.com/blog    Registered: 26-Apr-2008
Ads:

Send to email
Visit Enhancing YUI-based Applications With Audio Enhancing YUI-based Applications With Audio in DevelopmentaudiofeedbackScott Schillersound effectssoundmanageryui
By Scott Schiller
el 30-Jun-2009

Scott SchillerAboot the author: Scott Schiller (@schill) is a front-end engineer on Flickr who joined Yahoo! in 2005, hailing from Canada. SoundManager 2 is one of his personal side-projects. As Flickr’s self-professed resident DJ, he can be seen playing at the occasional Web 2.0 party between tinkering with time-lapse videos and photographing things for sharing online. Scott’s experimental DHTML site is updated sporadically. In this article, Scott shows you how to use SoundManager to tie sound effects to specific user actions or events in YUI.

Sound is one of the major senses and a major part of daily life, and yet is largely ignored on the web. Web developers know that when it comes to HTML, audio is not as easy to add to a web site as it should be. Why is that? The following are some thoughts on the historical problems with embedding sound, a few ideas and some demos of embedding and controlling sound from Javascript with YUI.

Demos

If you’re like me, you’re probably wanting to see some fun stuff up-front because reading is work, and work is boring! ;) Feel free to play with the demos first and then read on for the details.

  • Demo 1 (practical): Play MP3 Links Inline
  • Demo 2 (fun): A Noisy DOM

A Brief History of HTML and “Multimedia”

The web is pretty good at visual presentation. It is easy to create, design and embed images, text, and links in HTML documents. Of the media formats natively supported today in HTML 4, audio and video – or rather, <audio> and <video> – are conspicuously missing.

HTML 5 should bring audio and video embedding closer to the simplicity of <img /> in the not-so-distant future. In the meantime, we have to resort to creative work-arounds to get HTML-5-like audio/video functionality across the gamut of today’s common HTML 4-supporting browsers.

The (HTML 4) Problem With Embedding Audio

For audio on web sites today, developers often display a list of HTML links directly to MP3 files. This method is simple, universally-understood and indexable by search engines, but makes for a confusing and inconsistent browsing experience by default.

Users are generally prompted to right-click, “save as” and finally open the file from their desktop, or click the link and have their browser download and open the MP3 file. The regular “click” typically opens in a new page with the embedded player or launches an external application like QuickTime or Windows Media Player.

Not only are “naked” MP3 links extra work and confusing for the user, the browser’s method of handling them is a distraction and takes them away from the experience of your site.

Using <object>/<embed> is another generic way to directly embed MP3 or other content, but again suffers from the problem of inconsistency; the developer won’t know what may show in that area of the web page, given the user could have any array of applications which may load in order to handle that file type – in this case, likely the same QuickTime or Windows Media Player which would handle direct downloads would be shown in-place in your page. Again, not a great solution.

Flash widgets are sometimes used as a solution for embedding MP3 content, but the UI and skins tend to be 100% Flash-based rather than HTML and CSS-based and thus are more difficult for most web developers to customize. HTML 5 should change this with standards-based, CSS-skinnable and scriptable audio/video elements.

In the meantime, some creative solutions can be used to get more “web developer-friendly” widgets for audio.

Making MP3 Links “Just Work”: YUI + SoundManager 2

To have “progressively-enhanced” links to MP3s that will play in-place when clicked, something must intercept the browser’s normal download action and subsequently handle the request; by combining Javascript and Flash to handle the loading and playing of MP3 content, this can be done very effectively.

In a personal quest to get cross-browser audio control for a DHTML game back in 2002, I developed a JS + Flash audio API called SoundManager. Having since evolved to include video, SoundManager 2 implements and extends Flash’s native sound API and exposes it to Javascript. The result is cross-browser/platform scripted audio functionality which can help to bridge the gap for JS-driven sound until HTML 5 is widely supported.

By combining SoundManager 2 with YUI’s DOM and Event utilities, you have an effective solution for embedding and controlling audio which can gracefully degrade to a browser download or embedded player.

Practical Example: Playable MP3 Links

The following demo uses YUI and SoundManager 2 to enhance MP3 links, making them playable inline. YUI’s event utilities intercept clicks on links pointing to MP3 files and then use the SoundManager API to load and play the relevant URL before returning “false”, and preventing the browser from loading the link. Subsequent clicks will toggle play/pause state.

In the event Javascript/Flash aren’t present or if anything else goes wrong, the browser will simply fall through and load the MP3 link as usual.

  • Demo 1 (practical): Play MP3 Links Inline

Adding Audio To Your UI

Javascript-based animation, transition and motion effects add fluidity to web interface design and are becoming more commonplace. Smartly-applied audio can complement and further enhance the UI, making the experience more meaningful.

In certain applications, sound in the form of UI feedback can be appropriate and helpful to the user experience. Sound effects are common for Flash-based sites and web-based games, and in desktop gaming audio is usually a key part of telling the story.

.. But Don’t Over-Do It

It’s important to know when to stop. Recall animated “under construction” .GIFs? How about the blink tag? Marquee text? Some things are best left alone. Not every HTML page needs to move, blink, slide, flash and be noisy at the same time; even “fun” is best applied in moderation. Annoying your users with auto-playing music or noise can quickly lead to abandonment of your site.

There is probably good reason that standard HTML elements such as form controls and the like do not have sound effects or notifications associated with them. Perhaps “silence is golden” and it’s best that the web be a quiet place by default, so as not to be annoying and distracting.

As one notable exception to the “silent web” theme, Internet Explorer usually makes a “click” sound when page navigation occurs, presumably to notify the user that an action has started. This has become more muted in recent times, but is still present and still seems to annoy some users to this day.

“Fun” Example: A Noisy DOM

Despite the arguments for silence, the following is an example of what it might be like to have “noisy” form elements, buttons and DOM elements which provide audible feedback as they’re being used. The novelty is certainly to wear off quickly, but it does add an element of childish fun to the UI.

  • Demo 2 (fun): A Noisy DOM

Looking Forward: HTML 5

Native <audio> and <video> support will mean it will be much easier to embed and control more media formats within the browser without relying on third-party plugins. Furthermore, an extensive Javascript API should encourage developers to create increasingly-innovative experiences.



Read 10 times

Suscribing to  please login first
Enhancing YUI-based Applications With Audio -  Tech Weblogs - WEEKLYBITS.COM  Blogger Is a collection of i

Photologs

Yahoo User Interface Blog Blogger

Is a collection of industrial-grade JavaScript utilities and widgets that enable you to efficiently get the most out of today’s powerful web applications. Yahoo! User Interface Blog News and Articles about Designing and Developing wiht Yahoo! Libraries.

Enhancing YUI-based Applications With Audio
Scott Schiller - Enhancing YUI-based Applications With Audio Aboot the author: Scott Schiller (@schill) is a front-end engineer on Flickr who joined Yahoo! in 2005, hailing from Canada. SoundManager 2 is one of his personal side-projects. As Flickr’s self-professed resident DJ, he can be seen playing at the occasional Web 2.0 party between tinkering with time-lapse videos and photographing things for sharing online. [...] [..] Read complete article
Subscribe to Enhancing YUI-based Applications With Audio
Published 30-Jun-2009 by Scott Schiller in DevelopmentaudiofeedbackScott Schillersound effectssoundmanageryui
Read 10 times. More hits in More articles Enhancing YUI-based Applications With Audio Images about Enhancing YUI-based Applications With Audio
Kotaku`s The Gamers Guide Blogger

XBOX 360 Gamers Weblog Gossip, news and leaks for obsessive gamers Kotaku As if you don't waste enough of your time in a gamer's haze, here's Kotaku: a gamer's guide that goes beyond the press release. Gossip, cheats, criticism, design, nostalgia, pred

The Video Game Audio Awards [Sound]
Click here to read StarCraft II Special Edition Launching For $100 - StarCraft II Special Edition Launching For $100 [Blizzard] Games have long preferred visual innovation to audio. I mean, they're called video games, not video and audio games. But that's not to say game audio doesn't deserve recognition! GANG stands for Game Audio Network Guild, a group dedicating themselves [..] Read complete article
Subscribe to Enhancing YUI-based Applications With Audio
Published 01-Apr-2009 by Luke Plunkett in Sound Audio Dead Space News
Read 16 times. More hits in More articles  The Video Game Audio Awards [Sound] Images about  The Video Game Audio Awards [Sound]
Problogger Blogger

Blog tips to help you blogging
ProBlogger Blog Tips Make Money Online

Seven Essential Applications For Bloggers Using Windows
Windows-Livewriter - Seven Essential Applications For Bloggers Using Windows Looking for some cool blog tools and applications to help you be a more productive? Today Shankar Ganesh from Killer Tech Tips shares 7 to check out if you’re a Windows based blogger. If you’re a blogger, you’ll be using a variety of applications that aid you in your daily chores. Most of them will be [...]Post from: Blog Tips at ProBlogger. Seven Essential Applications [..] Read complete article
Subscribe to Enhancing YUI-based Applications With Audio
Published 21-Apr-2009 by Darren Rowse in Blogging Tools and Services
Read 10 times. More hits in More articles Seven Essential Applications For Bloggers Using Windows Images about Seven Essential Applications For Bloggers Using Windows
Problogger Blogger

Blog tips to help you blogging
ProBlogger Blog Tips Make Money Online

Seven Essential Applications For Bloggers Using Windows
Windows-Livewriter - Seven Essential Applications For Bloggers Using Windows Looking for some cool blog tools and applications to help you be a more productive? Today Shankar Ganesh from Killer Tech Tips shares 7 to check out if you’re a Windows based blogger. If you’re a blogger, you’ll be using a variety of applications that aid you in your daily chores. Most of them will be [...]Post from: Blog Tips at ProBlogger. Seven Essential Applications [..] Read complete article
Subscribe to Enhancing YUI-based Applications With Audio
Published 21-Apr-2009 by Darren Rowse in Blogging Tools and Services
Read 10 times. More hits in More articles Seven Essential Applications For Bloggers Using Windows Images about Seven Essential Applications For Bloggers Using Windows
Nerdblog Blogger

Provides news about hardware, software, notebooks, laptops, PCs, Mac, PDAs
Nerdblog.Net

PS3 firmware adds HD audio
DTS-HD Master Audio, to be specific If you like watching Blu-ray Discs on your PlayStation 3, then things are about to get better. Sony has announced a firmware update that’ll give film fans the option to use another HD audio format. TheRegister [..] Read complete article
Subscribe to Enhancing YUI-based Applications With Audio
Published 11-Apr-2008 by Nerdblog in General
Read 16 times. More hits in More articles PS3 firmware adds HD audio Images about PS3 firmware adds HD audio
Kotaku`s The Gamers Guide Blogger

XBOX 360 Gamers Weblog Gossip, news and leaks for obsessive gamers Kotaku As if you don't waste enough of your time in a gamer's haze, here's Kotaku: a gamer's guide that goes beyond the press release. Gossip, cheats, criticism, design, nostalgia, pred

'Next-Gen Audio Square-Off': PS3 versus 360 [Audio]
In the battle over technological dominance, audio is one area that's usually ignored — Alexander Brandon set out to fix that, and interviewed Gene Semel (audio director of SCEA) and Brian Schmidt (head of the Xbox audio team). It's a pretty interesting interv [..] Read complete article
Subscribe to Enhancing YUI-based Applications With Audio
Published 12-Oct-2008 by Maggie Greene in Audio 360 Hardware Industry Microsoft PS3 Sony Technology Xbox
Read 0 times. More hits in More articles  Images about
Kotaku`s The Gamers Guide Blogger

XBOX 360 Gamers Weblog Gossip, news and leaks for obsessive gamers Kotaku As if you don't waste enough of your time in a gamer's haze, here's Kotaku: a gamer's guide that goes beyond the press release. Gossip, cheats, criticism, design, nostalgia, pred

Astro Gaming A40 Audio System Review: Sound Advice [Review]
Astro Gaming's A40 Audio System is largely pitched at the "pro gaming" market, a headset and amplifier combo that offers a private audio experience and the necessary options for voice chat while playing others. The A40 Audio System is comprised of Astro's A40 Headset an [..] Read complete article
Subscribe to Enhancing YUI-based Applications With Audio
Published 23-Nov-2009 by Michael McWhertor in Review A40 audio systemastro gamingHardwareHeadphonesOriginalTop
Read 2 times. More hits in More articles  Astro Gaming A40 Audio System Review: Sound Advice [Review] Images about  Astro Gaming A40 Audio System Review: Sound Advice [Review]
Problogger Blogger

Blog tips to help you blogging
ProBlogger Blog Tips Make Money Online

5 Methods to Enhancing Page Load
Memory Leak - 5 Methods to Enhancing Page Load ‘How do I make my page load faster?’ - it’s a question I get a bit so I thought I’d ask Aaron Brazell from Technosailor to tackle the question and offer some suggestions around enhancing page load times. “The internet is dying.” This phrase, though probably a bit sensationalist, is also not far from the truth. As [...] [..] Read complete article
Subscribe to Enhancing YUI-based Applications With Audio
Published 12-Aug-2008 by Darren Rowse in Blog Design
Read 17 times. More hits in More articles 5 Methods to Enhancing Page Load Images about 5 Methods to Enhancing Page Load
Nokia Mobile Themes 

Symbian Themes designed and developed by the best Nokia theme artist to date Chaos Inc. with free mobile games and applications all for free download. All themes are certified and signed. Themes are licensed under a CC License for free use. Nokia Symbian Themes Nokia Symbian Mobile Themes, Games & Applications by Chaos Inc.

LCG X-Plore, Rotate Me, Dictaphone
Greetings everyone! Today I am going to update the applications for you. As you all know that all my free Nokia applications are usually there in the applications page right? But, from now on I will embed them within the post or within categories so that you do not have to go there directly. That [...] [..] Read complete article
Subscribe to Enhancing YUI-based Applications With Audio
Published 27-Apr-2008 by Chaos Inc. in
Read 31 times. More hits in More articles LCG X-Plore, Rotate Me, Dictaphone Images about LCG X-Plore, Rotate Me, Dictaphone
Joystiq Blogger

Covers video game news from an independent, unbiased perspective
Joystiq Joystiq

LittleBigPlanet snags eight nominations in GANG audio awards
Image 0 en  - LittleBigPlanet snags eight nominations in GANG audio awards Filed under: Culture While not as prestigious as the highly coveted Vector Monkey, the Game Audio Network Guild's audio awards are the most respected acknowledgements of achievement in video game sound desig [..] Read complete article
Subscribe to Enhancing YUI-based Applications With Audio
Published 17-Feb-2009 by Griffin McElroy in awardsgame-audioganglittlebigplanet
Read 7 times. More hits in More articles LittleBigPlanet snags eight nominations in GANG audio awards Images about LittleBigPlanet snags eight nominations in GANG audio awards
Nerdblog Blogger

Provides news about hardware, software, notebooks, laptops, PCs, Mac, PDAs
Nerdblog.Net

IBM Develops Audio-masking Technology (PC World)
PC World - IBM India has developed audio masking technology that could protect confidential information in audio recordings. YahooTechNews [..] Read complete article
Subscribe to Enhancing YUI-based Applications With Audio
Published 02-Jul-2008 by Nerdblog in General
Read 9 times. More hits in More articles IBM Develops Audio-masking Technology 
    (PC World) Images about IBM Develops Audio-masking Technology 
    (PC World)
Nerdblog Blogger

Provides news about hardware, software, notebooks, laptops, PCs, Mac, PDAs
Nerdblog.Net

ION Audio LP DOCK USB/iPod Turntable
   If you’re desperate to get all your vinyl LPs onto your iPod, ION Audio has the answer. TrustedReviews [..] Read complete article
Subscribe to Enhancing YUI-based Applications With Audio
Published 18-May-2008 by Nerdblog in General
Read 21 times. More hits in More articles ION Audio LP DOCK USB/iPod Turntable Images about ION Audio LP DOCK USB/iPod Turntable

Warning We are not responsible of information posted from external feeds. Use this website at your own risk. Notice: We will not be liable for any direct or indirect loss or damage arising under this disclaimer or in connection with our website, whether arising in tort, contract, or otherwise.


Your Site here Your Site here Your site here Your site here Your site here