Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

robtandy/SimpleHTML5AudioPlayer

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SimpleHTML5AudioPlayer

DESCRIPTION

This is simply to make using the HTML5 audio tag a little bit easier. It abstracts away some of the cruft of creating an audio player and specifically, makes it easy to have more than one (or many!) audio players on a single page.

USAGE

Make the .js .png .css files reachable from your web page and set up an audio player like this:

<div id=1 class='player'></div>

Call this javascript function on document ready

build_player (1, 'some_file.wav', 'some_file.png', 20, 600, 100);

The signature of build_player is

build_player (id_of_player_div, path_to_wav_file, path_to_png_file,
    height_of_controls, width_of_player, height_of_player)

EXAMPLE

See http://robtandy.github.com/SimpleHTML5AudioPlayer/ for an example several players on a page formatted differently

About

Simple audio player based around the HTML5 audio tag.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
Morty Proxy This is a proxified and sanitized view of the page, visit original site.