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