AudividProvides functions for HTML5's audio and video tags. FunctionsisplayingReturns if the selector is playing Example$('audio').audivid("isplaying");playpauseHas the selector pause if playing and play if paused. Example$('audio').audivid("playpause");stopStops the song (Pauses and sets the time to 0) Example$('audio').audivid("stop");Functions (already build into javascript)volumeReturns or sets the volume. If setting volume, parameter 2 should be between 0 and 1. timeReturns or sets the current time. durationReturns the duration pausePauses the selector playPlays the selector srcReturns or sets the source. Coming SoononchangeRuns the callback when the the time changes onreadyRuns the callback when the audio or video clip finishes loading onprobablereadyRuns 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)
|