Commit d7939c07 authored by Daniel Rossi's avatar Daniel Rossi
Browse files

- #7 add start event filter for clips with bitrateitems as well as bitrateselect resolver checks.

- #7 check for stage availability on menu before positioning the dock or position once stage is available when resetting menu items.
parent 0e1f99e6
......@@ -4,6 +4,7 @@ Version history:
------
- #605 Fixes for autoHide configuration
- #623 Fixes for widget enabled state. Require to also update the main controls config correctly as the controlbar config gets reset on updates.
- #7 add start event filter for clips with bitrateitems as well as bitrateselect resolver checks.
3.2.11
------
......
......@@ -146,10 +146,11 @@ package org.flowplayer.bitrateselect {
//#488 regression with #r1764 filter onStart events to only work with bitrateselect configured clips. Problem when autobuffering with playlst splash images.
//#7 filter for clips with bitrateitems also.
private function applyForClip(clip:Clip):Boolean {
log.debug("applyForClip(), clip.urlResolvers == " + clip.urlResolvers);
if (clip.urlResolvers == null) return false;
var apply:Boolean = clip.urlResolvers.indexOf(_model.name) >= 0;
var apply:Boolean = clip.urlResolvers.indexOf(_model.name) >= 0 && clip.getCustomProperty("bitrateItems");
log.debug("applyForClip? " + apply);
return apply;
}
......
......@@ -3,6 +3,7 @@ Version history:
3.2.10
------
- new build because of changes in common libraries this plugin uses
- #7 check for stage availability before positioning the dock or position once stage is available when resetting menu items.
3.2.9
-----
......
......@@ -234,9 +234,8 @@ package org.flowplayer.menu.ui {
adjustDockPosition();
} else {
// the position will be adjuster every time the menu becomes visible
this.addEventListener(Event.ADDED_TO_STAGE, function(event:Event):void {
adjustDockPosition();
});
//#7 adjust the dock once the stage is available
this.addEventListener(Event.ADDED_TO_STAGE, adjustDockOnStage);
}
}
......@@ -251,13 +250,31 @@ package org.flowplayer.menu.ui {
}
if (! verticalPosConfigured) {
log.debug("stage == " + stage);
myModel.bottom = stage.stageHeight - DisplayObject(_menuButtonContainer).y;
if ( stage) {
myModel.bottom = stage.stageHeight - DisplayObject(_menuButtonContainer).y;
} else {
//#7 adjust the dock once the stage is available
this.addEventListener(Event.ADDED_TO_STAGE, adjustDockOnStage);
return;
}
log.debug("adjustDockPosition(), menuButtonContainer.y = " + _menuButtonContainer["y"]);
log.debug("adjustDockPosition(), vertical menu position adjusted to " + myModel.position);
}
_player.animationEngine.animate(this, myModel, 0);
}
/**
* #7 adjust the dock once the stage is available once only.
* @param event
*/
private function adjustDockOnStage(event:Event):void
{
adjustDockPosition();
this.removeEventListener(Event.ADDED_TO_STAGE, adjustDockOnStage);
}
private function createDock():void {
log.debug("createDock()");
var dockConfig:DockConfig = new DockConfig();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment