Home | Trees | Indices | Help |
---|
|
1 #!/usr/bin/python 2 # -*- coding: utf-8 -*- 3 # Elisa - Home multimedia server 4 # Copyright (C) 2007-2008 Fluendo Embedded S.L. (www.fluendo.com). 5 # All rights reserved. 6 # 7 # This file is available under one of two license agreements. 8 # 9 # This file is licensed under the GPL version 2. 10 # See "LICENSE.GPL" in the root of this distribution including a special 11 # exception to use Elisa with Fluendo's plugins. 12 # 13 # The GPL part of Elisa is also available under a commercial licensing 14 # agreement from Fluendo. 15 # See "LICENSE.Elisa" in the root directory of this distribution package 16 # for details on that license. 17 18 import gobject 19 gobject.threads_init() 20 from elisa.core import common 21 common.boot() 22 23 from elisa.plugins.good.gstreamer_plugin.gst_metadata import \ 24 GstMetadata, GstMetadataPipeline, TimeoutError 25 from elisa.core.media_uri import MediaUri 26 27 import sys 28 from twisted.internet import reactor 29 from twisted.spread import pb, flavors, jelly 30 from twisted.internet.stdio import StandardIO 31 40 5759 # we are being run out of process, run perspective broker over stdin/stdout 60 # to communicate with elisa 61 62 import platform 63 if platform.system() != 'Windows': 64 # be nice while scanning 65 import os 66 os.nice(19) 67 68 root = GstMetadataPBRoot() 69 factory = pb.PBServerFactory(root) 70 factory.protocol = GstMetadataBroker 71 protocol = factory.buildProtocol(None) 72 transport = StandardIO(protocol) 73 reactor.run()74 75 if __name__ == '__main__': 76 sys.exit(main()) 77
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0beta1 on Wed Jan 16 19:10:31 2008 | http://epydoc.sourceforge.net |