Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
A simple and lightweight web-based MP3 player, auto-generated with Javascript and Flash
JavaScript
branch: modal-playback

This branch is 2 commits ahead, 4 commits behind master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
core
distributions
README.textile
TODO.textile

README.textile

1 BIT AUDIO PLAYER (v1.4)

INTRODUCTION

1 Bit Audio Player is a very simple and lightweight Adobe Flash MP3 player with automatic JavaScript insertion. It’s main purpose is to act as a quick in-page preview for audio files you link to from your website or blog.

The player can be easily installed as a "WordPress plugin or used stand-alone in any website. Small audio players will than automatically appear next to any MP3s you link to.

INSTALLATION

The simplest way to use 1Bit is to get the stand-alone version from distributions/custom-install and copy the files to your own server. example.html shows how to setup 1bit.

DEPENDENCIES

1 Bit is designed to as stand alone as possible, you do not need a Javascript framework to use it. However it does rely on some external javascript:

  • SWFObject – Used to embed the flash players into the page safely and cross browser.

DISTRIBUTION

WORDPRESS PLUGIN INSTALLATION

To install, simple extract the ‘1bit’ folder into your ‘wp-content/plugins/’ directory. Once extracted, you must activate the plugin within the WordPress Site Admin ‘Plugins’ section. The 1 Bit Audio Player options will then appear within ‘Options’.

You should make sure your MP3 links are always to absolute paths.

CUSTOM INSTALLATION

1 Bit can be used on any non-WordPress website simply by uploading the ‘Custom Install’ files to your web server and adding the following code within the <head> of your pages:


<script type="text/javascript" src="swfobject.js"></script>
<script type="text/javascript" src="1bit.js"></script>

<script type="text/javascript">
	oneBit = new OneBit('1bit.swf');
	oneBit.ready(function() {
		oneBit.specify('color', '#000000');
		oneBit.specify('background', '#FFFFFF');
		oneBit.specify('playerSize', '10');
		oneBit.specify('position', 'after');
		oneBit.specify('analytics', false);
		oneBit.apply('a');
	});
</script>

You must then adjust the path to 1bit.swf within the line that creates a new 1 Bit object. All of the oneBit.specify lines are optional, however, oneBit.apply must be called and passed a valid CSS selector.

BOOKMARKLET

Details to come.

FURTHER INFORMATION

More information and the latest updates can be found at
http://1bit.markwheeler.net

Something went wrong with that request. Please try again.