Ignore:
Timestamp:
09/22/08 11:14:49 (5 years ago)
Author:
jeroen
Message:

string of bugfixes and enahncements to the 4.2 player - see changelog

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/4.2/com/jeroenwijering/player/Player.as

    r64 r66  
    2020                description:undefined, 
    2121                duration:0, 
    22                 file:undefined, 
     22                file:'http://www.jeroenwijering.com/upload/xspf.xml', 
    2323                image:undefined, 
    2424                link:undefined, 
     
    3535                controlbarsize:20, 
    3636                height:300, 
     37                icons:true, 
    3738                logo:undefined, 
    38                 playlist:'none', 
     39                playlist:'bottom', 
    3940                playlistsize:180, 
    4041                skin:undefined, 
     
    4243 
    4344                autostart:false, 
    44                 bufferlength:0.1, 
     45                bufferlength:10, 
    4546                displayclick:'play', 
    4647                item:0, 
     
    5859                id:undefined, 
    5960                linktarget:'_blank', 
    60                 margins:'0,0,0,0', 
     61                margins:'0,0', 
    6162                plugins:undefined, 
    6263                streamer:undefined, 
    6364                token:undefined, 
    64                 tracecall:undefined, 
    65                 version:'4.1.60' 
     65                tracer:undefined, 
     66                version:'4.2.64' 
    6667        }; 
    6768        /** Object that loads all configuration variables. **/ 
     
    7778 
    7879 
    79         /** Constructor; Loads config parameters. **/ 
     80        /** Constructor; waits for stage adding. **/ 
    8081        public function Player():void { 
    8182                visible = false; 
     83                addEventListener(Event.ADDED_TO_STAGE,stageHandler); 
     84        }; 
     85 
     86 
     87        /** When added to stage, the player loads the config. **/ 
     88        private function stageHandler(evt:Event):void {  
     89                removeEventListener(Event.ADDED_TO_STAGE,stageHandler); 
    8290                configger = new Configger(this); 
    8391                configger.addEventListener(Event.COMPLETE,configHandler); 
     
    100108                _view = new View(configger.config,loader,controller,model); 
    101109                controller.start(model,_view); 
    102                 visible = true; 
    103110                addPlugins(); 
    104111        }; 
     
    107114        /** MVC inited; now add plugins. **/ 
    108115        private function addPlugins() { 
    109                 if(loader.skin['captions']) { new Captions().initializePlugin(view); } 
    110                 if(loader.skin['controlbar']) { new Controlbar().initializePlugin(view); } 
    111                 if(loader.skin['display']) { new Display().initializePlugin(view); } 
    112                 if(loader.skin['playlist']) { new Playlist().initializePlugin(view); } 
     116                new Rightclick().initializePlugin(view); 
     117                new Display().initializePlugin(view); 
     118                new Controlbar().initializePlugin(view); 
     119                if(loader.skin['playlist']) { 
     120                        new Playlist().initializePlugin(view); 
     121                } 
     122                visible = true; 
    113123                loader.loadPlugins(configger.config['plugins']); 
    114124        }; 
Note: See TracChangeset for help on using the changeset viewer.