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)
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)
def make_relay_stream(self) -> RelayStream: return RelayStream.make_stream(self._settings)
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)
def make_entry(self): return self.update_entry(RelayStream())
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)
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)