Package advene :: Package server :: Module webcherry :: Class AdveneWebServer
[hide private]
[frames] | no frames]

Class AdveneWebServer

source code

Embedded HTTP server for the Advene framework.

This is an embedded HTTP Server dedicated to serving Advene packages content, and interacting with a media player.

Instance Methods [hide private]
 
__init__(self, controller=None, port=1234)
HTTP Server initialization.
source code
 
start(self)
Start the webserver.
source code
 
stop(self)
Stop the webserver.
source code
Instance Variables [hide private]
dict authorized_hosts
the list of authorized hosts
advene.core.controller.Controller controller
the controller
string displaymode
the default display-mode
string urlbase
the base URL for this server
Method Details [hide private]

__init__(self, controller=None, port=1234)
(Constructor)

source code 

HTTP Server initialization.

When running embedded, the server should be provided a controller parameter, responsible for handling package loading and player interaction.

Parameters:
  • controller (advene.core.controller.Controller) - the controller
  • port (int) - the port number the server should bind to