Skip to content
jwheare edited this page Sep 13, 2010 · 6 revisions

- method (params) → return

API methods

- load (url/sid[, sid]) → sid | fail (just indicates loading has started, onLoad is called later asynchronously)
- play (sid) → success | fail
- pauseToggle (sid) → paused | resumed
- stop (sid) → success | fail
- seekTo (sid, seconds) → success | fail

Status updates. Fetched via long polling most likely.

- whileLoading (sid) → bytes, completed → onLoad
- whilePlaying (sid) → seconds, finished → onFinish