예제 #1
0
파일: forms.py 프로젝트: 5l1v3r1/pyfastotv
    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)
예제 #2
0
 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)
예제 #3
0
 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)
예제 #4
0
파일: forms.py 프로젝트: 5l1v3r1/pyfastotv
 def make_entry(self):
     return self.update_entry(HardwareStream())
예제 #5
0
 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)