def __init__(self, player, servicename, name=None): """ :param servicename: the Provider name to listen for """ ElementBin.__init__(self, player, name=name) ProviderHandler.__init__(self, servicename) self.reset_providers() self.setup_elements()
def __init__(self, servicename, name=None): """ :param servicename: the Provider name to listen for """ if name is None: name = servicename ElementBin.__init__(self, name=name) ProviderHandler.__init__(self, servicename) self.reset_providers()
def __init__(self, player, servicename): gst.Bin.__init__(self, name=servicename) ProviderHandler.__init__(self, servicename) self.tee = gst.element_factory_make("tee", "sinkhandler-tee") self.add(self.tee) self.sinkpad = self.tee.get_static_pad("sink") self.sink = gst.GhostPad('sink', self.sinkpad) self.add_pad(self.sink) self.fake = gst.element_factory_make("fakesink", "sinkhandler-fake") self.fake.props.async = False self.add(self.fake) self.tee.link(self.fake) self.queuedict = {} self.sinks = {} self.added_sinks = [] event.add_callback(self.on_reconfigure_bins, 'playback_reconfigure_bins', player)
def __init__(self, player, servicename): gst.Bin.__init__(self, name=servicename) ProviderHandler.__init__(self, servicename) self.tee = gst.element_factory_make("tee", "sinkhandler-tee") self.add(self.tee) self.sinkpad = self.tee.get_static_pad("sink") self.sink = gst.GhostPad('sink', self.sinkpad) self.add_pad(self.sink) self.fake = gst.element_factory_make("fakesink", "sinkhandler-fake") self.fake.props. async = False self.add(self.fake) self.tee.link(self.fake) self.queuedict = {} self.sinks = {} self.added_sinks = [] event.add_callback(self.on_reconfigure_bins, 'playback_reconfigure_bins', player)