4

Do you know any headless flash-based mp3 player scriptable trough javascript? I just need a public API to control playback (load, play, stop, seek) and a set of capturable events (onLoad, onPlay, onStop, onEnd). I need no UI, no helper scripts to embed the player, no support for playlists... and I'm spending so much time with no results.

I just need a fallback system for browsers that do not support HTML5 audio tag.

Do you have any recommendation?

knoopx
  • 17,089
  • 7
  • 36
  • 41

2 Answers2

2

SoundManager2 should do that fine.

Another, much more experimental option would be to take a look at GWT voices project and check how it interacts with Flash.

Petteri H
  • 11,779
  • 12
  • 64
  • 94
  • no, sorry. soundmanager2 actually has everything I don't need. I don't need a debug console and different ways of interacting with the player. I know I can archieve whatever I need with it but I need something lightweight and highly customizable (I'm trying to implement an infinite radio webapp ala Pandora) . – knoopx Jun 03 '11 at 14:45
  • It comes with a minimified version without debug code. 32 KB uncompressed. – Petteri H Jun 03 '11 at 14:50
1

I made a small tutorial and two templates for a really tiny such mp3 player that I found.

The player's capabilites are:

  • play
  • pause
  • stop
  • loop on/off

Read here.

Pithikos
  • 18,827
  • 15
  • 113
  • 136