Exemple #1
0
 def make_stream(cls, settings: ServiceSettings, client: ServiceClient):
     vod = VodEncodeStream(name=IStreamObject.DEFAULT_STREAM_NAME)
     vod.loop = False
     vod.input = [InputUrl.make_stub()]
     vod.output = [OutputUrl.make_stub()]
     IStreamObject.fill_defaults(vod)
     return cls(vod, settings, client)
Exemple #2
0
 def make_stream(cls, settings: ServiceSettings, client: ServiceClient):
     vod = VodEncodeStream(name=IStreamObject.DEFAULT_STREAM_NAME,
                           tvg_logo=IStreamObject.DEFAULT_ICON_URL)
     vod.loop = False
     vod.input = [InputUrl(id=InputUrl.generate_id())]
     vod.output = [OutputUrl(id=OutputUrl.generate_id())]
     return cls(vod, settings, client)
Exemple #3
0
 def update_entry(self, entry: VodEncodeStream):
     entry.description = self.description.data
     entry.trailer_url = self.trailer_url.data
     entry.user_score = self.user_score.data
     entry.prime_date = self.prime_date.data
     entry.country = self.country.data
     entry.duration = self.duration.data
     entry.vod_type = self.vod_type.data
     return EncodeStreamForm.update_entry(self, entry)
Exemple #4
0
 def make_vod_encode_stream(self) -> VodEncodeStream:
     return VodEncodeStream.make_stream(self._settings)
Exemple #5
0
 def make_entry(self):
     return self.update_entry(VodEncodeStream())
Exemple #6
0
 def make_stream(cls, settings: ServiceSettings, client: ServiceClient):
     vod = VodEncodeStream()
     vod.loop = False
     vod.input = [InputUrl(id=InputUrl.generate_id())]
     vod.output = [OutputUrl(id=OutputUrl.generate_id())]
     return cls(vod, settings, client)