My favorites | Sign in
Project Home Downloads Wiki Issues Source
Project Information
Members

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 build into javascript)

volume

Returns or sets the volume. If setting volume, parameter 2 should be between 0 and 1.

time

Returns or sets the current time.

duration

Returns the duration

pause

Pauses the selector

play

Plays the selector

src

Returns or sets the source.

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)

Powered by Google Project Hosting