예제 #1
0
 def make_stream(cls, settings: ServiceSettings):
     proxy = ProxyVodStream()
     proxy.input = [InputUrl(id=InputUrl.generate_id())]
     proxy.output = [OutputUrl(id=OutputUrl.generate_id())]
     return cls(proxy, settings)
예제 #2
0
 def make_stream(cls, settings: ServiceSettings):
     proxy = ProxyVodStream(name=IStreamObject.DEFAULT_STREAM_NAME,
                            tvg_logo=IStreamObject.DEFAULT_ICON_URL)
     proxy.input = [InputUrl(id=InputUrl.generate_id())]
     proxy.output = [OutputUrl(id=OutputUrl.generate_id())]
     return cls(proxy, settings)