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_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_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)