The plugins site is currently in development.
We've been looking to provide a higher-quality, spam-free experience at the plugins site for some time, and a major error on our part forced us to shut down the current site before we could put the new one in place. We are developing a new site, and you can follow along with its development on GitHub. For more information about this transition, including steps you can take as a plugin author to prepare, please read our post about what's going on.
Audivid
Provides functions for HTML5's audio and video tags.
Functions
isplaying
Returns if the selector is playing
Example
$('audio').audivid("isplaying");playpause
Has the selector pause if playing and play if paused.
Example
$('audio').audivid("playpause");stop
Stops the song (Pauses and sets the time to 0)
Example
$('audio').audivid("stop");Functions (already in javascript):
These functions are already accessible using javascript but you can also use them in audivid.
volume
Returns or sets the volume. If setting volume, parameter 2 should be between 0 and 1.
$('audio').audivid("volume"); // Returns volume
$('audio').audivid("volume", .7); // Sets volume to 70%time
returns or sets the current time.
Example
$('audio').audivid("time"); // Returns the current time
$('audio').audivid("time", 20); // Sets current time to 20 secondsduration
Returns the duration
Example
$('audio').audivid("duration"); // Returns the durationpause
Pauses the selector
Example
$('audio').audivid("pause");play
Plays the selector
Example
$('audio').audivid("play");src
Returns or sets the source.
Example
$('audio').audivid("src"); // Returns the source
$('audio').audivid("src", "song.mp3"); // Sets the source to "song.mp3"Coming Soon
onchange
Runs the callback when the the time changes
onready
Runs the callback when the audio or video clip finishes loading
onprobableready
Runs the callback when the audio or video should be ready to play without buffering problems (Will need to be run as soon as source is changed)
Downloads
Resources
Development
- Login to post comments

Comments
appreciated
I was having a bit of a fight with the audivid plugin here, so thanks for posting these pieces of code, which really saved me some time. The country I'm in doesn't really have too many books on this kind of code.
Good job! Thank you very
Good job! Thank you very much. Now I know more about jQuery plugins, about audivid in particular. My job is a little bit connected with this stuff. I only wanted to ask a question, you may know the answer. Can I use this tutorial http://www.videorolls.com/watch/How-to-add-plugins-Counter-Strike-Bunny-Hop-More-Plugins ? I badly need advice. Thanks in advance.