Ejemplo n.º 1
0
def start_video_server():
    """
    Serve the HTML5 Video Sources from a local port
    """
    video_source_dir = '{}/data/video'.format(settings.TEST_ROOT)
    video_server = VideoSourceHttpService(port_num=settings.VIDEO_SOURCE_PORT)
    video_server.config['root_dir'] = video_source_dir
    world.video_source = video_server
Ejemplo n.º 2
0
def start_video_server():
    """
    Serve the HTML5 Video Sources from a local port
    """
    video_source_dir = '{}/data/video'.format(settings.TEST_ROOT)
    video_server = VideoSourceHttpService(port_num=settings.VIDEO_SOURCE_PORT)
    video_server.config['root_dir'] = video_source_dir
    setattr(world, 'video_source', video_server)
Ejemplo n.º 3
0
 def setUp(self):
     """
     Start the stub server.
     """
     super(StubVideoServiceTest, self).setUp()
     self.server = VideoSourceHttpService()
     self.server.config['root_dir'] = '{}/data/video'.format(settings.TEST_ROOT)
     self.addCleanup(self.server.shutdown)