Coder Social home page Coder Social logo

shyingboy / 1bit-audio-player Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dsingleton/1bit-audio-player

1.0 2.0 0.0 168 KB

A simple and lightweight web-based MP3 player, auto-generated with Javascript and Flash

Home Page: http://dsingleton.co.uk/code/1bit/

1bit-audio-player's Introduction

1 BIT AUDIO PLAYER (v1.4)

INTRODUCTION

1 Bit Audio Player is a simple way to play .mp3 links on a webpage. It uses Javascript and Flash to automatically generate play buttons for each linked MP3 file, for inline playback.

It’s no longer officially supported, this code is available for anyone to branch and make use of. God speed.

A memorial and former project homepage can be found at: http://1bit.markwheeler.net/rip/

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.

HOW TO USE

1 Bit can be used by uploading the ‘example’ 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.

FAQs

Q: Are there plans to resume active development?
A: No, maybe, possibly. No plans, but i’d like to work on this project some more. There just isn’t the time at the moment.

Q: Didn’t there used to be a wordpress plugin and such?
A: Yes, but it has been deprecated. There wasn’t the time to help with support questions, so it was decided to kill it rather than have an unsupported version. If you’re really fussed you can dig through the history of this repo.

The original plugin/bookmarklet code is available, if you want to fork it:
https://github.com/dsingleton/1bit-audio-player/tree/36e3f5c90c2fe3ca9c2a610cdb29de13b26ca008

1bit-audio-player's People

Contributors

dsingleton avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.