예제 #1
0
 def make_stream(cls, settings: ServiceSettings, client: ServiceClient):
     tp = TimeshiftPlayerStream(name=IStreamObject.DEFAULT_STREAM_NAME)
     tp.input = [InputUrl.make_stub()]
     tp.output = [OutputUrl.make_stub()]
     IStreamObject.fill_defaults(tp)
     return cls(tp, settings, client)
예제 #2
0
 def make_timeshift_player_stream(self) -> TimeshiftPlayerStream:
     return TimeshiftPlayerStream.make_stream(self._settings)
예제 #3
0
파일: forms.py 프로젝트: 5l1v3r1/pyfastotv
 def update_entry(self, entry: TimeshiftPlayerStream):
     entry.timeshift_delay = self.timeshift_delay.data
     entry.timeshift_dir = self.timeshift_dir.data
     return super(TimeshiftPlayerStreamForm, self).update_entry(entry)
예제 #4
0
파일: forms.py 프로젝트: 5l1v3r1/pyfastotv
 def make_entry(self):
     return self.update_entry(TimeshiftPlayerStream())
예제 #5
0
 def make_stream(cls, settings: ServiceSettings, client: ServiceClient):
     tp = TimeshiftPlayerStream()
     tp.input = [InputUrl(id=InputUrl.generate_id())]
     tp.output = [OutputUrl(id=OutputUrl.generate_id())]
     return cls(tp, settings, client)
예제 #6
0
 def make_stream(cls, settings: ServiceSettings, client: ServiceClient):
     tp = TimeshiftPlayerStream(name=IStreamObject.DEFAULT_STREAM_NAME)
     tp.input = [InputUrl(id=InputUrl.generate_id())]
     tp.output = [OutputUrl(id=OutputUrl.generate_id())]
     return cls(tp, settings, client)