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: 87 visitors

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


Browse by date

<< February 2012 >>
MonTueWedThrFriSatSun
12345
6789101112
13141516171819
20212223242526
272829




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=3.0.4  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 26 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 26 times. More hits in More articles Enhancing YUI-based Applications With Audio Images about Enhancing YUI-based Applications With Audio
Joystiq Blogger

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

Dante's Inferno: The Book based on The Game based on The Poem based on the Theology
Image 0 en  - Dante In the introduction to the EA Games-approved, Del Rey Books-published edition of the classic epic poem Inferno, Visceral Games Executive Producer Jonathan Knight asks a question about the video game [..] Read complete article
Subscribe to Enhancing YUI-based Applications With Audio
Published 02-Feb-2010 by Rick Dakan in booksDantes-InfernoDel-Rey-BooksEAElectronic-ArtsJonathan-KnightVisceral-Games
Read 0 times. More hits in More articles Dante Images about Dante
Joystiq Blogger

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

Louisiana enhancing its tax incentives for game developers
[..] Read complete article
Subscribe to Enhancing YUI-based Applications With Audio
Published 12-Jul-2011 by Griffin McElroy in bobby-jindaleagameloftlouisianalsupoliticstax-credittaxes
Read 10 times. More hits in More articles Louisiana enhancing its tax incentives for game developers Images about Louisiana enhancing its tax incentives for game developers
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 TabView Accessibility with WAI-ARIA Roles and States
The YUI TabView Control is built on a strong foundation of semantic markup that provides users with some basic accessibility. But while TabView looks like a desktop tab control, screen readers don’t present it as an atomic widget, leaving users to figure out how the various HTML elements that compose a TabView relate to each other. However, [...] [..] Read complete article
Subscribe to Enhancing YUI-based Applications With Audio
Published 30-Jul-2008 by Todd Kloots in Development
Read 38 times. More hits in More articles Enhancing TabView Accessibility with WAI-ARIA Roles and States Images about Enhancing TabView Accessibility with WAI-ARIA Roles and States
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

Sony Enhancing PSN Trophy Bragging Online [Playstation 3]
Click here to read Rumor: Guitar Hero: Red Hot Chili Peppers In The Works - Rumor: Guitar Hero: Red Hot Chili Peppers In The Works [Activision] PlayStation 3 owners with a thirst for Trophy collecting are likely familiar with the above. It's the old way of seeing your PS3 e-accomplishments online, something Sony is planning to update with enhanced PlayStation Network Trophies feature on PlayStation.com. [..] Read complete article
Subscribe to Enhancing YUI-based Applications With Audio
Published 12-Aug-2009 by Michael McWhertor in Playstation 3 eric lempellplaystation networkPS3trophies
Read 12 times. More hits in More articles  Sony Enhancing PSN Trophy Bragging Online [Playstation 3] Images about  Sony Enhancing PSN Trophy Bragging Online [Playstation 3]
Joystiq Blogger

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

Rumor: Sony distributing new security-enhancing SDK to PS3 devs
[..] Read complete article
Subscribe to Enhancing YUI-based Applications With Audio
Published 27-Apr-2011 by Randy Nelson in playstationps3psnpsn-outage-2011sdksecuritysony
Read 7 times. More hits in More articles Rumor: Sony distributing new security-enhancing SDK to PS3 devs Images about Rumor: Sony distributing new security-enhancing SDK to PS3 devs
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.

An Introduction to Using YUI 3 in Offline Applications
About the author: Alex Kessinger works as a front-end engineer at Yahoo! Past working as a front-end, he enjoys working on the entire stack. He also spends a lot of time reading, curating, and writing about the internet, social media, and building websites. You can find all of it at his website alexkessinger.net. [...] [..] Read complete article
Subscribe to Enhancing YUI-based Applications With Audio
Published 27-May-2010 by Alexander Kessinger in Developmentapplication cacheofflineyui3
Read 33 times. More hits in More articles An Introduction to Using YUI 3 in Offline Applications Images about An Introduction to Using YUI 3 in Offline Applications
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.

20 Best Python and Accelerometer Applications
[..] Read complete article
Subscribe to Enhancing YUI-based Applications With Audio
Published 22-Apr-2009 by Chaos Inc. in
Read 25 times. More hits in More articles 20 Best Python and Accelerometer Applications Images about 20 Best Python and Accelerometer Applications

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