Revision 1c2d3c8c
| b/py/scenic/application.py | ||
|---|---|---|
| 224 | 224 |
""" |
| 225 | 225 |
print("The application is shutting down.")
|
| 226 | 226 |
# TODO: stop streamers |
| 227 |
self.save_configuration() |
|
| 227 | 228 |
if self.client.is_connected(): |
| 228 | 229 |
if not self.got_bye: |
| 229 | 230 |
self.send_bye() |
| ... | ... | |
| 231 | 232 |
self.disconnect_client() |
| 232 | 233 |
print('stopping server')
|
| 233 | 234 |
self.server.close() |
| 235 |
|
|
| 234 | 236 |
# ------------------------- session occuring ------------- |
| 235 | 237 |
def has_session(self): |
| 236 | 238 |
""" |
| ... | ... | |
| 442 | 444 |
else: |
| 443 | 445 |
# UPDATE when initiating session |
| 444 | 446 |
self.gui._gather_configuration() |
| 447 |
self.save_configuration() |
|
| 445 | 448 |
msg = {
|
| 446 | 449 |
"msg":"INVITE", |
| 447 | 450 |
"protocol": self.protocol_version, |
| ... | ... | |
| 471 | 474 |
def send_accept(self, addr): |
| 472 | 475 |
# UPDATE config once we accept the invitie |
| 473 | 476 |
self.gui._gather_configuration() |
| 477 |
self.save_configuration() |
|
| 474 | 478 |
self.allocate_ports() |
| 475 | 479 |
msg = {
|
| 476 | 480 |
"msg":"ACCEPT", |
| b/py/scenic/gui.py | ||
|---|---|---|
| 365 | 365 |
print 'video_view_preview toggled', widget.get_active() |
| 366 | 366 |
if widget.get_active(): |
| 367 | 367 |
self._gather_configuration() |
| 368 |
self.app.save_configuration() |
|
| 368 | 369 |
command = "milhouse --videosource %s --videodevice %s --localvideo --window-title preview" % (self.app.config.video_source, self.app.config.video_device) |
| 369 | 370 |
print "spawning", command |
| 370 | 371 |
process.run_once(*command.split()) |
Also available in: Unified diff