You will recieve your password to this address. Address is not made public.

Your preferred username that is used when logging in.

Callback when control bar hides and shows... ? Created Aug 27, 2009

This thread is solved

Views: 2788     Replies: 3     Last reply Dec 1, 2010  
You must login first before you can use this feature

pauls

Posts: 15

Registered:
Feb 9, 2009

Callback when control bar hides and shows... ?

Posted: Aug 27, 2009

Hi, just a quick question that someone may be able to quickly answer :)

I'm writing a Flash (AS3) display based plugin for Flowplayer and I've been trying to work out how to receive notifications when the control bar shows and hides...

There doesn't seem to be an API on the Player class to do this and I couldn't see anything on the Controls plugin itself... (e.g. as per player.onMute() etc. )....

Does anyone know if it's possible to register for a callback event (in AS3 not Javascript) when the controls show and hide?

Thanks in advance for your help...

Paul.

Liam Gooding
Custom swf skins, custom swf plugins, custom JS plugins, video CMS - http://goodingsmedia.com

Posts: 352

Registered:
Dec 16, 2008

» Callback when control bar hides and shows... ?

Posted: Aug 30, 2009

Reply to: Callback when control bar hides and shows... ?, from paul_schulz
Hey,

This was added in 3.1.2 after we implemented it into our 3.1.1 custom controlbar plugins.

Download the new source and you'll be able to see an implementation.

Cheers,
Liam

pauls

Posts: 15

Registered:
Feb 9, 2009

» » Callback when control bar hides and shows... ?

Posted: Aug 31, 2009

Reply to: » Callback when control bar hides and shows... ?, from LiamGooding
Hiya,

Thanks for the guidance...

I looked into the 3.1.3-dev code and can see the event dispatching:


_model.dispatch(PluginEventType.PLUGIN_EVENT, "onShowed");

So I figure all I need to do is to addEventListener against the "controls" model... but I'm stuck trying to do that. The way I normally get a handle to the controls model returns a clone so registering the listener doesn't seem to have any impact...


var controlProps:org.flowplayer.model.DisplayProperties = 
       _player.pluginRegistry.getPlugin("controls") as
             org.flowplayer.model.DisplayProperties;

What's the correct way to add an event listener to the controls model?

Thanks for your help in advance...

Paul.

wuddha

Posts: 4

Registered:
Dec 1, 2010

» Callback when control bar hides and shows... ?

Posted: Dec 1, 2010

Reply to: Callback when control bar hides and shows... ?, from paul_schulz
Hi,

I also want to register a callback for some control bar events (onShowed and onHidden) within a flash plugin.

Is there a way to do that?

Thanks in advance.
wuddha