Order Now AdSolution Sign Up | Login » Bits on the Run Sign Up | Login »

Forums

/

addbutton demo?

8 replies [Last post]

Is there an example script somewhere showing how to use the javascript api's addbutton command to add a button to the control bar?

You had me scared there for a moment!

I thought I'd missed something really useful.

addButton() is for plugins — ActionScript not JavaScript.

It looks like I misread the docs. Thanks for pointing this out.

I want to add a buffering animation for an audio-only playlist application (the controlbar and playlist are the only part of the player that are visible) and would love a buffering animation to appear in the controlbar between the time that someone presses play and when playback starts.

Is writing a plug-in in Flash the only practical way to do that?

Unless you're already proficient in Flash or want to become proficient in Flash, I would recommend positioning an animated GIF with the JS API and CSS.

There's a fairly steep learning curve for the plugins even if you start with the examples that Longtail Video has so generously provided for us.

I'm working on about 15 of them, mostly started as mods from the LTV code, and it isn't so easy for somenone new to Flash.

@hobbs: is it possible to place an additional button in the controlbar via javascript? i would like to place my own button/functionality between timeslider and volumebutton ...

Currently not possible, though we're looking into adding it.

@zach: any progress on sebastians question? we are currently looking for the same solution.

Sorry, no progress yet. We're still investigating where this best fits into our roadmap.

I've created a ticket for this issue:

http://developer.longtailvideo.com/trac/ticket/927