Пример #1
0
 def make_stream(cls, settings: ServiceSettings, client: ServiceClient):
     relay = RelayStream(name=IStreamObject.DEFAULT_STREAM_NAME,
                         tvg_logo=IStreamObject.DEFAULT_ICON_URL)
     relay.input = [InputUrl(id=InputUrl.generate_id())]
     relay.output = [OutputUrl(id=OutputUrl.generate_id())]
     relay.video_parser = constants.DEFAULT_VIDEO_PARSER
     relay.audio_parser = constants.DEFAULT_AUDIO_PARSER
     return cls(relay, settings, client)
Пример #2
0
 def make_stream(cls, settings: ServiceSettings, client: ServiceClient):
     relay = RelayStream(name=IStreamObject.DEFAULT_STREAM_NAME)
     relay.input = [InputUrl.make_stub()]
     relay.output = [OutputUrl.make_stub()]
     IStreamObject.fill_defaults(relay)
     return cls(relay, settings, client)
Пример #3
0
 def make_relay_stream(self) -> RelayStream:
     return RelayStream.make_stream(self._settings)
Пример #4
0
 def update_entry(self, entry: RelayStream):
     entry.video_parser = self.video_parser.data
     entry.audio_parser = self.audio_parser.data
     return super(RelayStreamForm, self).update_entry(entry)
Пример #5
0
 def make_entry(self):
     return self.update_entry(RelayStream())
Пример #6
0
 def make_stream(cls, settings: ServiceSettings, client: ServiceClient):
     relay = RelayStream()
     relay.input = [InputUrl(id=InputUrl.generate_id())]
     relay.output = [OutputUrl(id=OutputUrl.generate_id())]
     return cls(relay, settings, client)
Пример #7
0
 def make_stream(cls, settings: ServiceSettings, client: ServiceClient):
     relay = RelayStream(name=IStreamObject.DEFAULT_STREAM_NAME)
     relay.input = [InputUrl(id=InputUrl.generate_id())]
     relay.output = [OutputUrl(id=OutputUrl.generate_id())]
     return cls(relay, settings, client)