Changeset 407
- Timestamp:
- 10/06/09 21:53:39 (4 years ago)
- Location:
- trunk/fl5/src/com/longtailvideo/jwplayer
- Files:
-
- 2 added
- 20 edited
-
controller/PlayerSetup.as (modified) (2 diffs)
-
controller/PluginLoader.as (modified) (1 diff)
-
events/ViewEvent.as (modified) (12 diffs)
-
media/HTTPMediaProvider.as (modified) (1 diff)
-
media/ImageMediaProvider.as (modified) (1 diff)
-
media/MediaProvider.as (modified) (5 diffs)
-
media/RTMPMediaProvider.as (modified) (2 diffs)
-
media/VideoMediaProvider.as (modified) (1 diff)
-
media/YouTubeMediaProvider.as (modified) (1 diff)
-
model/PlayerConfig.as (modified) (9 diffs)
-
model/Playlist.as (modified) (2 diffs)
-
player/Player.as (modified) (1 diff)
-
plugins/PluginConfig.as (modified) (1 diff)
-
view/PlayerComponents.as (modified) (5 diffs)
-
view/PlayerLayoutManager.as (added)
-
view/View.as (modified) (5 diffs)
-
view/interfaces/IControlbarComponent.as (modified) (1 diff)
-
view/interfaces/IDisplayComponent.as (modified) (1 diff)
-
view/interfaces/IDockComponent.as (modified) (1 diff)
-
view/interfaces/IPlayerComponent.as (added)
-
view/interfaces/IPlaylistComponent.as (modified) (1 diff)
-
view/skins/SWFSkin.as (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/fl5/src/com/longtailvideo/jwplayer/controller/PlayerSetup.as
r400 r407 141 141 if (event) { 142 142 var skin:ISkin = event.target as ISkin; 143 144 143 _view.skin = skin; 145 144 var props:SkinProperties = skin.getSkinProperties(); … … 178 177 179 178 private function loadPlaylist():void { 180 if (_model.config.playlist ) {179 if (_model.config.playlistfile) { 181 180 _model.playlist.addEventListener(PlaylistEvent.JWPLAYER_PLAYLIST_LOADED, tasker.success); 182 181 _model.playlist.addEventListener(ErrorEvent.ERROR, tasker.failure); 183 _model.playlist.load(_model.config.playlist );182 _model.playlist.load(_model.config.playlistfile); 184 183 } else { 185 184 tasker.success(); -
trunk/fl5/src/com/longtailvideo/jwplayer/controller/PluginLoader.as
r353 r407 104 104 var loader:AssetLoader = evt.target as AssetLoader; 105 105 delete loaders[loader]; 106 checkComplete(); 106 107 } 107 108 -
trunk/fl5/src/com/longtailvideo/jwplayer/events/ViewEvent.as
r396 r407 9 9 * for a <code>jwplayerReady</code> event. 10 10 * 11 * @eventType jw PlayerViewPlay11 * @eventType jwplayerViewPlay 12 12 */ 13 public static var JWPLAYER_VIEW_PLAY:String = "jw PlayerViewPlay";13 public static var JWPLAYER_VIEW_PLAY:String = "jwplayerViewPlay"; 14 14 15 15 /** … … 18 18 * for a <code>jwplayerReady</code> event. 19 19 * 20 * @eventType jw PlayerViewPause20 * @eventType jwplayerViewPause 21 21 */ 22 public static var JWPLAYER_VIEW_PAUSE:String = "jw PlayerViewPause";22 public static var JWPLAYER_VIEW_PAUSE:String = "jwplayerViewPause"; 23 23 24 24 /** … … 27 27 * for a <code>jwplayerReady</code> event. 28 28 * 29 * @eventType jw PlayerViewStop29 * @eventType jwplayerViewStop 30 30 */ 31 public static var JWPLAYER_VIEW_STOP:String = "jw PlayerViewStop";31 public static var JWPLAYER_VIEW_STOP:String = "jwplayerViewStop"; 32 32 33 33 /** … … 36 36 * for a <code>jwplayerReady</code> event. 37 37 * 38 * @eventType jw PlayerViewNext38 * @eventType jwplayerViewNext 39 39 */ 40 public static var JWPLAYER_VIEW_NEXT:String = "jw PlayerViewNext";40 public static var JWPLAYER_VIEW_NEXT:String = "jwplayerViewNext"; 41 41 42 42 /** … … 45 45 * for a <code>jwplayerReady</code> event. 46 46 * 47 * @eventType jw PlayerViewPrev47 * @eventType jwplayerViewPrev 48 48 */ 49 public static var JWPLAYER_VIEW_PREV:String = "jw PlayerViewPrev";49 public static var JWPLAYER_VIEW_PREV:String = "jwplayerViewPrev"; 50 50 51 51 /** … … 54 54 * for a <code>jwplayerReady</code> event. 55 55 * 56 * @eventType jw PlayerViewMute56 * @eventType jwplayerViewMute 57 57 */ 58 public static var JWPLAYER_VIEW_MUTE:String = "jw PlayerViewMute";58 public static var JWPLAYER_VIEW_MUTE:String = "jwplayerViewMute"; 59 59 60 60 /** … … 63 63 * for a <code>jwplayerReady</code> event. 64 64 * 65 * @eventType jw PlayerViewFullscreen65 * @eventType jwplayerViewFullscreen 66 66 */ 67 public static var JWPLAYER_VIEW_FULLSCREEN:String = "jw PlayerViewFullscreen";67 public static var JWPLAYER_VIEW_FULLSCREEN:String = "jwplayerViewFullscreen"; 68 68 69 69 /** … … 72 72 * for a <code>jwplayerReady</code> event. 73 73 * 74 * @eventType jw PlayerViewItem74 * @eventType jwplayerViewItem 75 75 */ 76 public static var JWPLAYER_VIEW_ITEM:String = "jw PlayerViewItem";76 public static var JWPLAYER_VIEW_ITEM:String = "jwplayerViewItem"; 77 77 78 78 /** … … 81 81 * for a <code>jwplayerReady</code> event. 82 82 * 83 * @eventType jw PlayerViewVolume83 * @eventType jwplayerViewVolume 84 84 */ 85 public static var JWPLAYER_VIEW_VOLUME:String = "jw PlayerViewVolume";85 public static var JWPLAYER_VIEW_VOLUME:String = "jwplayerViewVolume"; 86 86 87 87 /** … … 90 90 * for a <code>jwplayerReady</code> event. 91 91 * 92 * @eventType jw PlayerViewLoad92 * @eventType jwplayerViewLoad 93 93 */ 94 public static var JWPLAYER_VIEW_LOAD:String = "jw PlayerViewLoad";94 public static var JWPLAYER_VIEW_LOAD:String = "jwplayerViewLoad"; 95 95 96 96 /** … … 99 99 * for a <code>jwplayerReady</code> event. 100 100 * 101 * @eventType jw PlayerViewRedraw101 * @eventType jwplayerViewRedraw 102 102 */ 103 public static var JWPLAYER_VIEW_REDRAW:String = "jw PlayerViewRedraw";103 public static var JWPLAYER_VIEW_REDRAW:String = "jwplayerViewRedraw"; 104 104 105 105 /** … … 108 108 * for a <code>jwplayerReady</code> event. 109 109 * 110 * @eventType jw PlayerViewSeek110 * @eventType jwplayerViewSeek 111 111 */ 112 public static var JWPLAYER_VIEW_SEEK:String = "jw PlayerViewSeek";112 public static var JWPLAYER_VIEW_SEEK:String = "jwplayerViewSeek"; 113 113 114 114 /** 115 115 * The ViewEvent.JWPLAYER_VIEW_CLICK constant defines the value of the 116 116 * <code>type</code> property of the event object 117 * for a <code>jw PlayerViewClick</code> event.117 * for a <code>jwplayerViewClick</code> event. 118 118 * 119 * @eventType jw PlayerViewClick119 * @eventType jwplayerViewClick 120 120 */ 121 public static var JWPLAYER_VIEW_CLICK:String = "jw PlayerDisplayClick";121 public static var JWPLAYER_VIEW_CLICK:String = "jwplayerDisplayClick"; 122 122 123 123 /** Sent along with REQUEST Event types. **/ -
trunk/fl5/src/com/longtailvideo/jwplayer/media/HTTPMediaProvider.as
r380 r407 148 148 stream.close(); 149 149 } 150 _media = video;150 media = video; 151 151 stream.play(getURL()); 152 152 iterator = 0; -
trunk/fl5/src/com/longtailvideo/jwplayer/media/ImageMediaProvider.as
r395 r407 56 56 /** Load and place the image on stage. **/ 57 57 private function loaderHandler(evt:Event):void { 58 _media = loader;58 media = loader; 59 59 try { 60 60 Bitmap(loader.content).smoothing = true; -
trunk/fl5/src/com/longtailvideo/jwplayer/media/MediaProvider.as
r396 r407 3 3 import com.longtailvideo.jwplayer.events.IGlobalEventDispatcher; 4 4 import com.longtailvideo.jwplayer.events.MediaEvent; 5 import com.longtailvideo.jwplayer.events.PlayerEvent;6 5 import com.longtailvideo.jwplayer.events.PlayerStateEvent; 7 6 import com.longtailvideo.jwplayer.model.PlayerConfig; … … 11 10 12 11 import flash.display.DisplayObject; 13 import flash.display.Loader;14 12 import flash.display.Sprite; 15 13 import flash.events.Event; 16 import flash.events.IOErrorEvent;17 import flash.net.URLRequest;18 14 19 15 /** … … 69 65 protected var _state:String; 70 66 /** Graphical representation of the currently playing media **/ 71 pr otectedvar _media:DisplayObject;67 private var _media:DisplayObject; 72 68 /** Most recent buffer data **/ 73 69 protected var bufferPercent:Number; 74 70 /** Handles event dispatching **/ 75 71 protected var _dispatcher:GlobalEventDispatcher; 72 73 protected var _width:Number; 74 protected var _height:Number; 76 75 77 76 public function MediaProvider(){ … … 193 192 **/ 194 193 public function resize(width:Number, height:Number):void { 194 _width = width; 195 _height = height; 195 196 if (_media) { 196 197 Stretcher.stretch(_media, width, height, _config.stretching); 197 } 198 198 } 199 199 } 200 200 … … 277 277 } 278 278 279 protected function set media(m:DisplayObject):void { 280 _media = m; 281 if (m && _width * _height > 0) { 282 Stretcher.stretch(m, _width, _height, _config.stretching); 283 } 284 } 285 286 protected function get media():DisplayObject { 287 return _media; 288 } 289 279 290 } 280 291 } -
trunk/fl5/src/com/longtailvideo/jwplayer/media/RTMPMediaProvider.as
r395 r407 96 96 loader.load(new URLRequest(smil)); 97 97 } else { 98 _media = video;98 media = video; 99 99 connection.connect(item.streamer); 100 100 } … … 107 107 item.streamer = xml.children()[0].children()[0].@base.toString(); 108 108 item.file = xml.children()[1].children()[0].@src.toString(); 109 _media = video;109 media = video; 110 110 connection.connect(item.streamer); 111 111 } -
trunk/fl5/src/com/longtailvideo/jwplayer/media/VideoMediaProvider.as
r406 r407 64 64 override public function load(itm:PlaylistItem):void { 65 65 _item = itm; 66 _media = video;66 media = video; 67 67 stream.checkPolicyFile = true; 68 68 stream.play(item.file); -
trunk/fl5/src/com/longtailvideo/jwplayer/media/YouTubeMediaProvider.as
r395 r407 104 104 resize(_config.width, _config.width / 4 * 3); 105 105 outgoing.send('AS3_' + unique, "loadVideoById", gid, _item.start); 106 _media = loader;106 media = loader; 107 107 } 108 108 } else { -
trunk/fl5/src/com/longtailvideo/jwplayer/model/PlayerConfig.as
r396 r407 14 14 /** Internal playlist reference **/ 15 15 private var _list:Playlist; 16 17 private var _playlistfile:String = null; 16 18 17 19 private var _autostart:Boolean = false; … … 34 36 private var _screencolor:uint = 0x000000; 35 37 36 private var _controlbar:String = " none";38 private var _controlbar:String = "bottom"; 37 39 private var _dock:Boolean = false; 38 40 private var _height:Number = 400; 39 41 private var _icons:Boolean = true; 40 42 private var _logo:String = null; 41 private var _playlist:String = null;43 private var _playlist:String = "none"; 42 44 private var _playlistsize:Number = 180; 43 45 private var _skin:String = null; … … 49 51 private var _playerready:String = ""; 50 52 51 public function PlayerConfig( playlist:Playlist):void {53 public function PlayerConfig(newlist:Playlist):void { 52 54 getCookiedParams(); 53 setPlaylist(playlist); 55 controlbar = _controlbar; 56 playlist = _playlist; 57 playlistsize = _playlistsize; 58 setPlaylist(newlist); 54 59 } 55 60 … … 64 69 if (newItem.hasOwnProperty(item)) { 65 70 if (item == "file" && Strings.extension(config[item]) == "xml") { 66 setProperty("playlist ", config[item]);71 setProperty("playlistfile", config[item]); 67 72 } else if (_list.length > 0) { 68 73 _list.currentItem[item] = config[item]; … … 135 140 // PLAYLIST PROPERTIES 136 141 ///////////////////////////////////////////////////////////////////////////////////////////////////////////////// 142 143 /** Location of xml playlist file to load **/ 144 public function get playlistfile():String { return _playlistfile; } 145 public function set playlistfile(x:String):void { _playlistfile = x; } 146 137 147 138 148 /** Author of the video, shown in the display or playlist. **/ … … 157 167 public function get link():String { return playlistItem('link'); } 158 168 159 /** Unique identifier. **/ public function get mediaid():String { return playlistItem('mediaid'); } /** Position in seconds where playback has to start. Won't work for regular (progressive) videos, but only for streaming (HTTP / RTMP). **/ 169 /** Unique identifier. **/ 170 public function get mediaid():String { return playlistItem('mediaid'); } 171 172 /** Position in seconds where playback has to start. Won't work for regular (progressive) videos, but only for streaming (HTTP / RTMP). **/ 160 173 public function get start():String { return playlistItem('start'); } 161 174 … … 208 221 209 222 /** Position of the controlbar. Can be set to top, bottom, over and none. @default bottom **/ 210 public function get controlbar():String { return _controlbar; } 211 public function set controlbar(x:String):void { _controlbar= x; } 223 public function get controlbar():String { 224 if (pluginConfig('controlbar').hasOwnProperty('position')) 225 return pluginConfig('controlbar')['position']; 226 else return _controlbar; 227 } 228 public function set controlbar(x:String):void { 229 setPluginProperty('controlbar.position', x); 230 } 212 231 213 232 /** Set this to true to show the dock with large buttons in the top right of the player. Available since 4.5. @default true **/ … … 228 247 229 248 /** Position of the playlist. Can be set to bottom, over, right or none. @default none **/ 230 public function get playlist():String { return _playlist; } 231 public function set playlist(x:String):void { _playlist = x; } 249 public function get playlist():String { 250 if (pluginConfig('playlist').hasOwnProperty('position')) 251 return pluginConfig('playlist')['position']; 252 else return _playlist; 253 } 254 public function set playlist(x:String):void { 255 setPluginProperty('playlist.position', x); 256 } 232 257 233 258 /** When below this refers to the height, when right this refers to the width of the playlist. @default 180 **/ … … 329 354 if (_pluginConfig.hasOwnProperty(pluginName)) { 330 355 return _pluginConfig[pluginName] as PluginConfig; 331 } 332 333 return new PluginConfig(pluginName); 356 } else { 357 var newConfig:PluginConfig = new PluginConfig(pluginName); 358 _pluginConfig[pluginName] = newConfig; 359 return newConfig; 360 } 361 } 362 363 /** 364 * A list of available pluginConfig keys. 365 */ 366 public function get pluginNames():Array { 367 var names:Array = []; 368 for (var plug:String in _pluginConfig) { 369 if ( (['controlbar','playlist','dock','display']).indexOf(plug) == -1 ) { 370 names.push(plug); 371 } 372 } 373 return names; 334 374 } 335 375 -
trunk/fl5/src/com/longtailvideo/jwplayer/model/Playlist.as
r396 r407 13 13 * Sent when a playlist has been loaded. 14 14 * 15 * @eventType com.longtailvideo.jwplayer.eve ts.PlaylistEvent.JWPLAYER_PLAYLIST_LOADED16 */ 17 [Event(name="jwplayerPlaylistLoaded", type = "com.longtailvideo.jwplayer.eve ts.PlaylistEvent")]15 * @eventType com.longtailvideo.jwplayer.events.PlaylistEvent.JWPLAYER_PLAYLIST_LOADED 16 */ 17 [Event(name="jwplayerPlaylistLoaded", type = "com.longtailvideo.jwplayer.events.PlaylistEvent")] 18 18 19 19 /** 20 20 * Sent when the playlist has been updated. 21 21 * 22 * @eventType com.longtailvideo.jwplayer.eve ts.PlaylistEvent.JWPLAYER_PLAYLIST_UPDATED23 */ 24 [Event(name="jwplayerPlaylistUpdated", type = "com.longtailvideo.jwplayer.eve ts.PlaylistEvent")]22 * @eventType com.longtailvideo.jwplayer.events.PlaylistEvent.JWPLAYER_PLAYLIST_UPDATED 23 */ 24 [Event(name="jwplayerPlaylistUpdated", type = "com.longtailvideo.jwplayer.events.PlaylistEvent")] 25 25 26 26 /** 27 27 * Sent when the playlist's current item has changed. 28 28 * 29 * @eventType com.longtailvideo.jwplayer.eve ts.PlaylistEvent.JWPLAYER_PLAYLIST_ITEM30 */ 31 [Event(name="jwplayerPlaylistItem", type = "com.longtailvideo.jwplayer.eve ts.PlaylistEvent")]29 * @eventType com.longtailvideo.jwplayer.events.PlaylistEvent.JWPLAYER_PLAYLIST_ITEM 30 */ 31 [Event(name="jwplayerPlaylistItem", type = "com.longtailvideo.jwplayer.events.PlaylistEvent")] 32 32 33 33 /** 34 34 * Sent when an error ocurred when loading or parsing the playlist 35 35 * 36 * @eventType flash.events.ErrorEvent.ERROR37 */ 38 [Event(name=" error", type = "flash.events.ErrorEvent")]36 * @eventType com.longtailvideo.jwplayer.events.PlayerEvent.JWPLAYER_ERROR 37 */ 38 [Event(name="jwPlayerError", type = "com.longtailvideo.jwplayer.events.PlayerEvent")] 39 39 40 40 public class Playlist extends GlobalEventDispatcher { … … 122 122 123 123 protected function playlistError(message:String):void { 124 dispatchEvent(new ErrorEvent(ErrorEvent.ERROR, "Playlist could not be loaded: " + message));124 dispatchEvent(new PlayerEvent(PlayerEvent.JWPLAYER_ERROR, "Playlist could not be loaded: " + message)); 125 125 } 126 126 -
trunk/fl5/src/com/longtailvideo/jwplayer/player/Player.as
r400 r407 198 198 } 199 199 200 public function get uiComponents():PlayerComponents {200 public function get controls():PlayerComponents { 201 201 return view.components; 202 202 } -
trunk/fl5/src/com/longtailvideo/jwplayer/plugins/PluginConfig.as
r396 r407 7 7 public function PluginConfig(pluginName:String) { 8 8 this._name = pluginName; 9 this['width'] = 0;10 this['height'] = 0;11 9 } 12 10 -
trunk/fl5/src/com/longtailvideo/jwplayer/view/PlayerComponents.as
r401 r407 2 2 import com.longtailvideo.jwplayer.model.PlayerConfig; 3 3 import com.longtailvideo.jwplayer.player.Player; 4 import com.longtailvideo.jwplayer.view.components.ControlbarComponent; 5 import com.longtailvideo.jwplayer.view.components.ControlbarComponentV4; 6 import com.longtailvideo.jwplayer.view.components.DisplayComponent; 4 7 import com.longtailvideo.jwplayer.view.interfaces.IControlbarComponent; 5 8 import com.longtailvideo.jwplayer.view.interfaces.IDisplayComponent; … … 8 11 import com.longtailvideo.jwplayer.view.interfaces.ISkin; 9 12 import com.longtailvideo.jwplayer.view.skins.SWFSkin; 10 import com.longtailvideo.jwplayer.view.components.ControlbarComponentV4; 11 import com.longtailvideo.jwplayer.view.components.ControlbarComponent; 12 import com.longtailvideo.jwplayer.view.components.DisplayComponent; 13 14 import flash.display.DisplayObject; 13 15 import com.longtailvideo.jwplayer.view.components.PlaylistComponent; 14 16 import com.longtailvideo.jwplayer.view.components.DockComponent; … … 16 18 17 19 public class PlayerComponents { 20 private var _player:Player; 21 18 22 private var _controlbar:IControlbarComponent; 19 23 private var _display:IDisplayComponent; … … 25 29 26 30 public function PlayerComponents(player:Player) { 31 _player = player; 32 27 33 if (player.skin is SWFSkin) { 28 34 _controlbar = new ControlbarComponentV4(player); … … 62 68 63 69 public function resize(width:Number, height:Number):void { 64 display.resize(width, height); 70 _display.resize(width, height); 71 _display.x = Number(_player.config.pluginConfig('display')['x']); 72 _display.y = Number(_player.config.pluginConfig('display')['y']); 73 65 74 _controlbar.resize(width, height); 75 _controlbar.x = Number(_player.config.pluginConfig('controlbar')['x']); 76 _controlbar.y = Number(_player.config.pluginConfig('controlbar')['y']); 77 78 66 79 } 67 80 } -
trunk/fl5/src/com/longtailvideo/jwplayer/view/View.as
r400 r407 15 15 import com.longtailvideo.jwplayer.view.interfaces.IDisplayComponent; 16 16 import com.longtailvideo.jwplayer.view.interfaces.IDockComponent; 17 import com.longtailvideo.jwplayer.view.interfaces.IPlayerComponent; 17 18 import com.longtailvideo.jwplayer.view.interfaces.IPlaylistComponent; 18 19 import com.longtailvideo.jwplayer.view.interfaces.ISkin; 19 20 20 21 import flash.display.DisplayObject; 21 22 import flash.display.Loader; … … 97 98 _backgroundLayer.getChildByName("background").height = height; 98 99 99 _components.resize(width, height);100 101 _player.config.width = width; 102 _ player.config.height = height;103 100 var layoutManager:PlayerLayoutManager = new PlayerLayoutManager(_player); 101 layoutManager.resize(width, height); 102 103 _components.resize(_player.config.width, _player.config.height); 104 104 105 if (_imageLayer.numChildren) { 105 Stretcher.stretch(_image, width, height, _player.config.stretching); 106 _imageLayer.x = _components.display.x; 107 _imageLayer.y = _components.display.y; 108 Stretcher.stretch(_image, _player.config.width, _player.config.height, _player.config.stretching); 106 109 } 107 110 108 111 if (_mediaLayer.numChildren) { 109 _model.media.resize(width, height); 110 } 111 } 112 112 _mediaLayer.x = _components.display.x; 113 _mediaLayer.y = _components.display.y; 114 _model.media.resize(_player.config.width, _player.config.height); 115 } 116 117 } 113 118 114 119 public function set skin(skn:ISkin):void { … … 161 166 162 167 163 public function overrideComponent(newComponent: *):void {168 public function overrideComponent(newComponent:IPlayerComponent):void { 164 169 if (newComponent is IControlbarComponent) { 165 170 // Replace controlbar … … 209 214 _mediaLayer.removeChildAt(0); 210 215 } 216 _model.media.resize(_player.config.width, _player.config.height); 217 218 _mediaLayer.x = _components.display.x; 219 _mediaLayer.y = _components.display.y; 211 220 _mediaLayer.addChild(_model.media.display); 212 _model.media.resize(_player.config.width, _player.config.height);213 221 } 214 222 … … 226 234 while (_imageLayer.numChildren) { _imageLayer.removeChildAt(0); } 227 235 _imageLayer.addChild(_image); 236 _imageLayer.x = _components.display.x; 237 _imageLayer.y = _components.display.y; 228 238 Stretcher.stretch(_image, _player.config.width, _player.config.height, _player.config.stretching); 229 239 } -
trunk/fl5/src/com/longtailvideo/jwplayer/view/interfaces/IControlbarComponent.as
r400 r407 67 67 [Event(name="jwPlayerViewSeek", type = "com.longtailvideo.jwplayer.events.ViewEvent")] 68 68 69 public interface IControlbarComponent extends I GlobalEventDispatcher{69 public interface IControlbarComponent extends IPlayerComponent { 70 70 function addButton(name:String, icon:DisplayObject, handler:Function = null):void; 71 71 function removeButton(name:String):void; 72 function resize(width:Number, height:Number):void;73 72 function show():void; 74 73 function hide():void; -
trunk/fl5/src/com/longtailvideo/jwplayer/view/interfaces/IDisplayComponent.as
r400 r407 26 26 [Event(name="jwPlayerViewClick", type = "com.longtailvideo.jwplayer.events.ViewEvent")] 27 27 28 public interface IDisplayComponent extends I GlobalEventDispatcher{28 public interface IDisplayComponent extends IPlayerComponent { 29 29 function setIcon(displayIcon:DisplayObject):void; 30 30 function setText(displayText:String):void; 31 function resize(width:Number, height:Number):void;32 31 } 33 32 } -
trunk/fl5/src/com/longtailvideo/jwplayer/view/interfaces/IDockComponent.as
r400 r407 4 4 import flash.display.DisplayObject; 5 5 6 public interface IDockComponent extends I GlobalEventDispatcher{6 public interface IDockComponent extends IPlayerComponent { 7 7 function addButton(name:String, icon:DisplayObject, clickHandler:Function):void; 8 8 function removeButton(name:String):void; 9 function resize(width:Number, height:Number):void;10 9 function show():void; 11 10 function hide():void; -
trunk/fl5/src/com/longtailvideo/jwplayer/view/interfaces/IPlaylistComponent.as
r400 r407 24 24 [Event(name="jwPlayerViewItem", type = "com.longtailvideo.jwplayer.events.ViewEvent")] 25 25 26 public interface IPlaylistComponent extends IGlobalEventDispatcher { 27 function resize(width:Number, height:Number):void; 26 public interface IPlaylistComponent extends IPlayerComponent { 28 27 function show():void; 29 28 function hide():void; -
trunk/fl5/src/com/longtailvideo/jwplayer/view/skins/SWFSkin.as
r400 r407 11 11 12 12 public class SWFSkin extends SkinBase implements ISkin { 13 14 private var props:SkinProperties; 15 13 16 14 17 public function SWFSkin(loadedSkin:DisplayObject=null) { 18 props = new SkinProperties(); 19 15 20 if (loadedSkin) { 16 21 overwriteSkin(loadedSkin); … … 25 30 _skin.addChild(newSkin); 26 31 } 32 if (_skin.getChildByName('controlbar')) { 33 props['controlbar.size'] = _skin.getChildByName('controlbar').height; 34 } 27 35 } 28 36 … … 49 57 50 58 public override function getSkinProperties():SkinProperties { 51 return null;59 return props; 52 60 } 53 61
Note: See TracChangeset
for help on using the changeset viewer.
