Beispiel #1
0
 def make_stream(cls, settings: ServiceSettings, client: ServiceClient):
     tr = TimeshiftRecorderStream(name=IStreamObject.DEFAULT_STREAM_NAME)
     tr.visible = False
     tr.input = [InputUrl.make_stub()]
     IStreamObject.fill_defaults(tr)
     return cls(tr, settings, client)
Beispiel #2
0
 def make_timeshift_recorder_stream(self) -> TimeshiftRecorderStream:
     return TimeshiftRecorderStream.make_stream(self._settings)
Beispiel #3
0
 def update_entry(self, entry: TimeshiftRecorderStream):
     entry.timeshift_chunk_duration = self.timeshift_chunk_duration.data
     entry.timeshift_chunk_life_time = self.timeshift_chunk_life_time.data
     return super(TimeshiftRecorderStreamForm, self).update_entry(entry)
Beispiel #4
0
 def make_entry(self):
     return self.update_entry(TimeshiftRecorderStream())
Beispiel #5
0
 def make_stream(cls, settings: ServiceSettings, client: ServiceClient):
     tr = TimeshiftRecorderStream()
     tr.visible = False
     tr.input = [InputUrl(id=InputUrl.generate_id())]
     return cls(tr, settings, client)
Beispiel #6
0
 def make_stream(cls, settings: ServiceSettings, client: ServiceClient):
     tr = TimeshiftRecorderStream(name=IStreamObject.DEFAULT_STREAM_NAME)
     tr.visible = False
     tr.input = [InputUrl(id=InputUrl.generate_id())]
     return cls(tr, settings, client)