def update_entry(self, entry: HardwareStream): entry.input = self.input.data entry.audio_select = self.audio_select.data entry.have_video = self.have_video.data entry.have_audio = self.have_audio.data entry.log_level = self.log_level.data entry.loop = self.loop.data entry.avformat = self.avformat.data entry.restart_attempts = self.restart_attempts.data entry.auto_exit_time = self.auto_exit_time.data entry.extra_config_fields = self.extra_config_fields.data return super(HardwareStreamForm, self).update_entry(entry)
def make_stream(cls, settings: ServiceSettings, client: ServiceClient): hard = HardwareStream(name=IStreamObject.DEFAULT_STREAM_NAME) hard.input = [InputUrl.make_stub()] hard.output = [OutputUrl.make_stub()] IStreamObject.fill_defaults(hard) return cls(hard, settings, client)
def make_stream(cls, settings: ServiceSettings, client: ServiceClient): hard = HardwareStream() hard.input = [InputUrl(id=InputUrl.generate_id())] hard.output = [OutputUrl(id=OutputUrl.generate_id())] return cls(hard, settings, client)
def make_entry(self): return self.update_entry(HardwareStream())
def make_stream(cls, settings: ServiceSettings, client: ServiceClient): hard = HardwareStream(name=IStreamObject.DEFAULT_STREAM_NAME) hard.input = [InputUrl(id=InputUrl.generate_id())] hard.output = [OutputUrl(id=OutputUrl.generate_id())] return cls(hard, settings, client)