Changeset 634
- Timestamp:
- 11/16/09 20:24:04 (4 years ago)
- Location:
- trunk/fl5
- Files:
-
- 5 edited
-
player.swf (modified) (previous)
-
src/com/longtailvideo/jwplayer/model/PlayerConfig.as (modified) (1 diff)
-
src/com/longtailvideo/jwplayer/player/Player.as (modified) (3 diffs)
-
src/com/longtailvideo/jwplayer/player/PlayerV4Emulation.as (modified) (2 diffs)
-
src/com/longtailvideo/jwplayer/player/PlayerVersion.as (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/fl5/src/com/longtailvideo/jwplayer/model/PlayerConfig.as
r628 r634 368 368 public function get pluginIds():Array { 369 369 var names:Array = []; 370 for (var plug:String in _pluginConfig) { 371 if ( (['controlbar','playlist','dock','display']).indexOf(plug) == -1 ) { 372 names.push(plug); 370 371 // Only include loaded plugins 372 for each (var lp:String in _plugins.split(",")) { 373 var plugName:String = (lp.substr(lp.lastIndexOf("/")+1).replace(/(.*)\.swf$/i, "$1").split("-")[0] as String).toLowerCase(); 374 if (plugName) { 375 names.push(plugName); 373 376 } 374 /* TODO: Make sure this only returns loaded plugins 375 if (_plugins.indexOf(plug)) { 376 names.push(plug); 377 } 378 */ 379 } 377 } 378 380 379 return names; 381 380 } -
trunk/fl5/src/com/longtailvideo/jwplayer/player/Player.as
r618 r634 13 13 import com.longtailvideo.jwplayer.view.interfaces.ISkin; 14 14 15 import flash.display.DisplayObject; 15 16 import flash.display.Sprite; 16 17 import flash.events.Event; … … 55 56 view = new View(this, model); 56 57 controller = new Controller(this, model, view); 57 controller.addEventListener(PlayerEvent.JWPLAYER_READY, playerReady );58 controller.addEventListener(PlayerEvent.JWPLAYER_READY, playerReady, false, -1); 58 59 controller.setupPlayer(); 59 60 } … … 296 297 return view.getPlugin(id); 297 298 } 299 300 /** The player should not accept any calls referencing its display stack **/ 301 public override function addChild(child:DisplayObject):DisplayObject { 302 return null; 303 } 304 305 /** The player should not accept any calls referencing its display stack **/ 306 public override function addChildAt(child:DisplayObject, index:int):DisplayObject { 307 return null; 308 } 309 310 /** The player should not accept any calls referencing its display stack **/ 311 public override function removeChild(child:DisplayObject):DisplayObject { 312 return null; 313 } 314 315 /** The player should not accept any calls referencing its display stack **/ 316 public override function removeChildAt(index:int):DisplayObject { 317 return null; 318 } 319 298 320 } 299 321 } -
trunk/fl5/src/com/longtailvideo/jwplayer/player/PlayerV4Emulation.as
r629 r634 13 13 import com.longtailvideo.jwplayer.model.Model; 14 14 import com.longtailvideo.jwplayer.model.PlaylistItem; 15 import com.longtailvideo.jwplayer.plugins.IPlugin; 15 16 import com.longtailvideo.jwplayer.plugins.PluginConfig; 16 17 import com.longtailvideo.jwplayer.plugins.V4Plugin; … … 369 370 370 371 public override function getPluginConfig(plugin:Object):Object { 371 var pluginParent:V4Plugin = (plugin as DisplayObject).parent as V4Plugin; 372 if (pluginParent) { 373 return _player.config.pluginConfig(pluginParent.pluginId); 372 if (plugin is IPlugin) { 373 return _player.config.pluginConfig((plugin as IPlugin).id) 374 } else if (plugin is V4Plugin) { 375 return _player.config.pluginConfig((plugin as V4Plugin).pluginId); 376 } else if ((plugin as DisplayObject).parent is V4Plugin) { 377 return _player.config.pluginConfig((plugin.parent as V4Plugin).pluginId); 374 378 } else if (plugin is IDockComponent) { 375 379 return _player.config.pluginConfig('dock'); -
trunk/fl5/src/com/longtailvideo/jwplayer/player/PlayerVersion.as
r629 r634 3 3 4 4 public class PlayerVersion { 5 protected static var _version:String = "5.0.62 6beta";5 protected static var _version:String = "5.0.627 beta"; 6 6 7 7 public static function get version():String {
Note: See TracChangeset
for help on using the changeset viewer.
