def getPlayer(self):
        # Url to the flowplayer flashmovie
        url = 'swf/flowplayer.swf'
        
        # Create the initial configuration
        config = Configuration()
        
        # Add a Content
        plugin = self.getContentTop()
        config.addPlugin(plugin)
        
        # Customize Controls, if controls not added,
        # default controls will be used
        plugin = self.getControls()
        config.addPlugin(plugin)
        
        # Add the Common-Clip to configuration
        common_clip = Clip()
        common_clip.setAttr('autoBuffering', True)
        common_clip.setAttr('autoPlay', False)
        config.setCommonClip(common_clip)
        
        # Set a playlist
        playlist = self.getPlaylist()
        config.setPlaylist(playlist)
        
        # Create the Player Object with the initial configuration
        #log.writebr('Loading Player')
        player = Player(url, config)
        
        # Add Listener to the player
        player.addListener(self)
        
        return player
Create a player
dataset/ETHPy150Open anandology/pyjamas/examples/misc/flowplayer/fp.py/FlowPlayerExample.getPlayer