def make_stream(cls, settings: ServiceSettings, client: ServiceClient): cod = CodEncodeStream(name=IStreamObject.DEFAULT_STREAM_NAME) cod.input = [InputUrl.make_stub()] cod.output = [OutputUrl.make_stub()] IStreamObject.fill_defaults(cod) return cls(cod, settings, client)
def make_cod_encode_stream(self) -> CodEncodeStream: return CodEncodeStream.make_stream(self._settings)
def make_stream(cls, settings: ServiceSettings, client: ServiceClient): cod = CodEncodeStream() cod.input = [InputUrl(id=InputUrl.generate_id())] cod.output = [OutputUrl(id=OutputUrl.generate_id())] return cls(cod, settings, client)
def make_entry(self): return self.update_entry(CodEncodeStream())
def make_stream(cls, settings: ServiceSettings, client: ServiceClient): cod = CodEncodeStream(name=IStreamObject.DEFAULT_STREAM_NAME) cod.input = [InputUrl(id=InputUrl.generate_id())] cod.output = [OutputUrl(id=OutputUrl.generate_id())] return cls(cod, settings, client)