invisible sound on webpage?
08-06-2010, 08:31 AM,
#1
invisible sound on webpage?
any1 no the html code for invisible sound on webpage?
Exclamation Caution! Im A WiErDo Exclamation
Reply
08-06-2010, 11:02 AM, (This post was last modified: 08-06-2010, 11:07 AM by RichardGv.)
#2
RE: invisible sound on webpage?
There are several ways to achieve the effect, I believe:
  1. A hidden < audio > tag will probably work, but since it's a HTML5 tag, the cross-browser compatibility is not so great right now.
    Code:
    IE 6/7/8                No support
    Firefox 3.5.x - 3.6.x   wav, ogg
    Safari                  "Safari on the desktop supports any media the installed version of QuickTime can play", they said, thus H.264, MP3, AAC, and WAV should work, but ogg may not work.
    Chromium/Chrome         ogg, wav, mp3, aac
    Opera                   ogg, wav (On Linux, Opera supports the formats GStreamer does)
    The detailed methods can be found on Google, or some links given here:
    http://net.tutsplus.com/tutorials/html-c...o-element/
    http://dev.opera.com/articles/view/every...and-audio/
    http://developer.apple.com/safari/librar...asics.html
  2. Flash. It works on most cases, provided that the user did not intentionally block Flash, and does have Flash installed. There are a lot of Flash audio players available, for instance: (Keep in mind that I cannot guarantee these things are safe!)
    http://www.longtailvideo.com/players/jw-flv-player/
    http://musicplayer.sourceforge.net/
    http://flowplayer.org/
    (And you can hide a Flash player easily.)
  3. There are also cases of video relying on other plugins, e.g. Windows Media Plugin. Of course, this is usually a bad idea.
Last but not least, it's usually not a good idea to play audio automatically on a webpage without a way to let user stop it manually. :) And playing music in the background is annoying in viewpoints of some people, like me.
Gentoo Linux User (w/ fvwm) / Loyal Firefox User / Owner of a Stupid Old Computer - My PGP Public Key

No man is an island, entire of itself; every man is a piece of the continent, a part of the main; if a clod be washed away by the sea, Europe is the less, as well as if a promontory were, as well as if a manor of thy friends or of thine own were; any man's death diminishes me, because I am involved in mankind; and therefore never send to know for whom the bell tolls; it tolls for thee.
-- Devotions Upon Emergent Occasions (1624), John Donn
Reply
08-06-2010, 11:36 AM,
#3
RE: invisible sound on webpage?
me too
as I'm listening my own music in my mp3 player
Reply
08-06-2010, 11:23 PM, (This post was last modified: 08-06-2010, 11:26 PM by Vanilla.)
#4
RE: invisible sound on webpage?
IE9 will support it, but only play MP3 and AAC, not WAV, which is weird, as it's a Microsoft-IBM developed format.

By the way, you can stack multiple sources inside the audio tag, so that if one format is incompatible, it will automatically go on to the next format, and play it if possible:

Code:
<audio controls autobuffer>
  <source src="elvis.ogg" />
  <source src="elvis.mp3" />
  <!-- now include flash fall back -->
</audio>
Reply
08-07-2010, 03:21 AM,
#5
RE: invisible sound on webpage?
(08-06-2010, 11:02 AM)RichardGv Wrote: Last but not least, it's usually not a good idea to play audio automatically on a webpage without a way to let user stop it manually. :) And playing music in the background is annoying in viewpoints of some people, like me.

Seriously, a lot of people are browsing the internet at night while the rest of the people are asleep, autoplaying is annoying, autoplaying + hidden is awful!
With love,
HiddenKnowledge
A.k.a. Yoruichi Shihouin

If you have any questions, feel free to contact me trough email or pm. :)
Reply
08-07-2010, 10:52 PM, (This post was last modified: 08-07-2010, 10:53 PM by CrazySp4ce.)
#6
RE: invisible sound on webpage?
(08-06-2010, 11:23 PM)Vanilla Wrote: IE9 will support it, but only play MP3 and AAC, not WAV, which is weird, as it's a Microsoft-IBM developed format.

By the way, you can stack multiple sources inside the audio tag, so that if one format is incompatible, it will automatically go on to the next format, and play it if possible:

Code:
<audio controls autobuffer>
  <source src="elvis.ogg" />
  <source src="elvis.mp3" />
  <!-- now include flash fall back -->
</audio>

Thanks all for the help butt this 1 works
(08-07-2010, 03:21 AM)HiddenKnowledge Wrote:
(08-06-2010, 11:02 AM)RichardGv Wrote: Last but not least, it's usually not a good idea to play audio automatically on a webpage without a way to let user stop it manually. :) And playing music in the background is annoying in viewpoints of some people, like me.

Seriously, a lot of people are browsing the internet at night while the rest of the people are asleep, autoplaying is annoying, autoplaying + hidden is awful!

u really think that hk i was thinking on like a 20 second intro thingy
Exclamation Caution! Im A WiErDo Exclamation
Reply
08-08-2010, 06:24 AM,
#7
RE: invisible sound on webpage?
(08-07-2010, 10:52 PM)CrazySp4ce Wrote:
(08-07-2010, 03:21 AM)HiddenKnowledge Wrote:
(08-06-2010, 11:02 AM)RichardGv Wrote: Last but not least, it's usually not a good idea to play audio automatically on a webpage without a way to let user stop it manually. :) And playing music in the background is annoying in viewpoints of some people, like me.

Seriously, a lot of people are browsing the internet at night while the rest of the people are asleep, autoplaying is annoying, autoplaying + hidden is awful!

u really think that hk i was thinking on like a 20 second intro thingy
Yes, I will kill you if you don't allow people to shut it off. :P
With love,
HiddenKnowledge
A.k.a. Yoruichi Shihouin

If you have any questions, feel free to contact me trough email or pm. :)
Reply


Forum Jump: