summaryrefslogtreecommitdiff
path: root/voctocore/voctocore.py
blob: bec2c039d7e1bf1f4c1838876e3b8898563dcea4 (plain)
  1. #!/usr/bin/python3
  2. import gi
  3. import signal
  4. # import GStreamer and GTK-Helper classes
  5. gi.require_version('Gst', '1.0')
  6. from gi.repository import GLib, Gst, Gtk, GObject
  7. # init GObject before importing local classes
  8. GObject.threads_init()
  9. Gst.init(None)
  10. # import local classes
  11. from videomix import Videomix
  12. from controlserver import ControlServer
  13. class Main:
  14. def __init__(self):
  15. # initialize subsystem
  16. self.videomix = Videomix()
  17. self.controlserver = ControlServer(self.videomix)
  18. def runmain():
  19. # make killable by ctrl-c
  20. signal.signal(signal.SIGINT, signal.SIG_DFL)
  21. # start main-class and main-loop
  22. start=Main()
  23. Gtk.main()
  24. if __name__ == '__main__':
  25. runmain()