spacer

Webref WebRef   Sitemap · Experts · Tools · Services · Newsletters · About i.com

home / experts / javascript / column20


Navigator's LiveAudio Plug-in

Developer News
Mandrake Linux Founder Back, Virtually
Amazon: We're a Technology Company
Sun Expands MySQL With Closed Source

Navigator uses the LiveAudio plug-in to play sound tracks embedded in Web pages. You can use the JavaScript's object associated with the EMBED HTML element. On the Mac, calling JavaScript methods does not affect the buttons of the Navigator's control panel. Here are the methods supported by the EMBED object:

MethodDescription
play({loop[true|false|n]}, URL)Plays the soundtrack saved in the specified URL. The first parameter specifies whether to loop the sound track forever (true), for a specified number of times (n), or not at all (false). Parameters are optional. The default for the first one is false. The default for the second one is the current object's sound track. The first parameter is mandatory on Mac (no default is supported).
pause()Pauses the sound track at the current position along the track. You can continue playing from the same spot by calling the play() method.
stop()Stops playing the sound and returns the track position to its beginning. You can start playing the sound again by calling the play() method.
StopAll()Stops all playing plug-ins.
start_time(n)Starts playing the audio track from a position that is n seconds from the beginning of the track.
end_time(n)Stops playing the audio track at a position that is n seconds from the beginning of the track.
setvol(n)Sets the volume at n percents of the maximum level (no % sign).
fade_to(n)Fades to a volume level that is n percents of the maximum level (no % sign).
fade_from_to(n, m)Fades from a volume level of n percents to a volume level of m percents (no % sign).
start_at_beginning()Starts playing at the beginning of the sound track. You can achieve this effect also by stopping the sound track and playing it again. This method overwrites the start_time() method.
stop_at_end()Stops playing at the end of the sound track. This method overwrites the end_time() method.

The following methods are state indicators which do not control the plug-in but rather give its state:

MethodDescription
IsReady()Returns true if the plug-in instance has completed loading, false otherwise.
IsPlaying()Returns true if the plug-in is currently playing the sound track, false otherwise.
IsPaused()Returns true if the plug-in is currently paused, false otherwise.
GetVolume()Returns the volume level in percents.

http://www.internet.com

internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and JupiterOnlineMedia

Jupitermedia Corporate Info

Legal Notices, Licensing, Reprints, Permissions, Privacy Policy.
Advertise | Newsletters | Tech Jobs | Shopping | E-mail Offers

Whitepapers and eBooks

Intel Whitepaper: Comparing Two- and Four-Socket Platforms for Server Virtualization
IBM Solutions Brief: Go Green With IBM System xTM And Intel
HP eBook: Simplifying SQL Server Management
IBM Contest: Are You the Next Superstar? Join the "Search for the XML Superstar" Contest to Find Out
Microsoft PDF: Top 10 Reasons to Move to Server Virtualization with Hyper-V
Microsoft PDF: Six Reasons Why Microsoft's Hyper-V Will Overtake Vmware
Microsoft Step-by-Step Guide: Hyper-V and Failover Clustering
Intel PDF: Quad-Core Impacts More Than the Data Center
Intel PDF: Virtualization Delivers Data Center Efficiency
Go Parallel Article: PDC 2008 in Review
Microsoft PDF: Top 11 Reasons to Upgrade to Windows Server 2008
Avaya Article: Communication-Enabled Mashups: Empowering Both Business Owners and IT
Intel Whitepaper: Building a Real-World Model to Assess Virtualization Platforms
  PDF: Intel Centrino Duo Processor Technology with Intel Core2 Duo Processor
Microsoft Article: Build and Run Virtual Machines with Hyper-V Server 2008
Go Parallel Article: Q&A with a TBB Junkie
IBM Whitepaper: Innovative Collaboration to Advance Your Business
Internet.com eBook: Real Life Rails
IBM eBook: The Pros and Cons of Outsourcing
Internet.com eBook: Best Practices for Developing a Web Site
IBM CXO Whitepaper: The 2008 Global CEO Study "The Enterprise of the Future"
Avaya Article: Call Control XML in Action - A CCXML Auto Attendant
IBM CXO Whitepaper: Unlocking the DNA of the Adaptable Workforce--The Global Human Capital Study 2008
Adobe Acrobat Connect Pro: Web Conferencing and eLearning Whitepapers
HP eBook: Guide to Storage Networking
MORE WHITEPAPERS, EBOOKS, AND ARTICLES
webref The latest from WebReference.com Browse >
Popular JavaScript Framework Libraries: An Overview - Part 3 · Accessing Your MySQL Database from the Web with PHP · Working with the DOM Stylesheets Collection
Sitemap · Experts · Tools · Services · Email a Colleague · Contact FREE Newsletters 
 The latest from internet.com
Fixing MySQL Replication · Firewall Guide: First Steps to Securing the Enterprise · VoxOx Tames the Tumultuous Communications Tangle


Created: May 31, 1998
Revised: May 31, 1998

URL: http://www.webreference.com/js/column20/liveaudio.html