예제 #1
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)
예제 #2
0
 def make_stream(cls, settings: ServiceSettings, client: ServiceClient):
     relay = RelayStream(name=IStreamObject.DEFAULT_STREAM_NAME,
                         tvg_logo=IStreamObject.DEFAULT_ICON_URL)
     relay.input = [InputUrl(id=InputUrl.generate_id())]
     relay.output = [OutputUrl(id=OutputUrl.generate_id())]
     relay.video_parser = constants.DEFAULT_VIDEO_PARSER
     relay.audio_parser = constants.DEFAULT_AUDIO_PARSER
     return cls(relay, settings, client)
예제 #3
0
 def make_stream(cls, settings: ServiceSettings, client: ServiceClient):
     test = TestLifeStream()
     test.visible = False
     test.input = [InputUrl(id=InputUrl.generate_id())]
     test.output = [
         OutputUrl(id=OutputUrl.generate_id(),
                   uri=constants.DEFAULT_TEST_URL)
     ]
     return cls(test, settings, client)
예제 #4
0
 def make_stream(cls, settings: ServiceSettings, client: ServiceClient):
     test = TestLifeStream(name=IStreamObject.DEFAULT_STREAM_NAME,
                           tvg_logo=IStreamObject.DEFAULT_ICON_URL)
     test.visible = False
     test.input = [InputUrl(id=InputUrl.generate_id())]
     test.output = [
         OutputUrl(id=OutputUrl.generate_id(),
                   uri=constants.DEFAULT_TEST_URL)
     ]
     return cls(test, settings, client)
예제 #5
0
 def make_stream(cls, settings: ServiceSettings, client: ServiceClient):
     test = TestLifeStream(name=IStreamObject.DEFAULT_STREAM_NAME)
     test.visible = False
     test.input = [InputUrl.make_stub()]
     test.output = [OutputUrl.make_test()]
     IStreamObject.fill_defaults(test)
     return cls(test, settings, client)
예제 #6
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)
예제 #7
0
 def make_stream(cls, settings: ServiceSettings, client: ServiceClient):
     hard = HardwareStream(name=IStreamObject.DEFAULT_STREAM_NAME)
     hard.input = [InputUrl.make_stub()]
     hard.output = [OutputUrl.make_stub()]
     IStreamObject.fill_defaults(hard)
     return cls(hard, settings, client)
예제 #8
0
 def make_stream(cls, settings: ServiceSettings, client: ServiceClient):
     event = EventStream()
     event.input = [InputUrl(id=InputUrl.generate_id())]
     event.output = [OutputUrl(id=OutputUrl.generate_id())]
     return cls(event, settings, client)
예제 #9
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)
예제 #10
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)
예제 #11
0
 def make_stream(cls, settings: ServiceSettings):
     proxy = ProxyVodStream(name=IStreamObject.DEFAULT_STREAM_NAME)
     proxy.input = [InputUrl(id=InputUrl.generate_id())]
     proxy.output = [OutputUrl(id=OutputUrl.generate_id())]
     return cls(proxy, settings)
예제 #12
0
 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)
예제 #13
0
 def make_stream(cls, settings: ServiceSettings, client: ServiceClient):
     tr = TimeshiftRecorderStream(name=IStreamObject.DEFAULT_STREAM_NAME)
     tr.visible = False
     tr.input = [InputUrl.make_stub()]
     IStreamObject.fill_defaults(tr)
     return cls(tr, settings, client)
예제 #14
0
 def make_stream(cls, settings: ServiceSettings, client: ServiceClient):
     cat = CatchupStream()
     cat.input = [InputUrl(id=InputUrl.generate_id())]
     cat.output = [OutputUrl(id=OutputUrl.generate_id())]
     return cls(cat, settings, client)
예제 #15
0
 def make_stream(cls, settings: ServiceSettings, client: ServiceClient):
     tr = TimeshiftRecorderStream()
     tr.visible = False
     tr.input = [InputUrl(id=InputUrl.generate_id())]
     return cls(tr, settings, client)
예제 #16
0
 def make_stream(cls, settings: ServiceSettings, client: ServiceClient):
     encode = EncodeStream()
     encode.input = [InputUrl(id=InputUrl.generate_id())]
     encode.output = [OutputUrl(id=OutputUrl.generate_id())]
     return cls(encode, settings, client)
예제 #17
0
 def make_stream(cls, settings: ServiceSettings, client: ServiceClient):
     relay = RelayStream()
     relay.input = [InputUrl(id=InputUrl.generate_id())]
     relay.output = [OutputUrl(id=OutputUrl.generate_id())]
     return cls(relay, settings, client)
예제 #18
0
 def make_stream(cls, settings: ServiceSettings, client: ServiceClient):
     hard = HardwareStream()
     hard.input = [InputUrl(id=InputUrl.generate_id())]
     hard.output = [OutputUrl(id=OutputUrl.generate_id())]
     return cls(hard, settings, client)
예제 #19
0
 def make_stream(cls, settings: ServiceSettings, client: ServiceClient):
     event = EventStream(name=IStreamObject.DEFAULT_STREAM_NAME)
     event.input = [InputUrl(id=InputUrl.generate_id())]
     event.output = [OutputUrl(id=OutputUrl.generate_id())]
     return cls(event, settings, client)
예제 #20
0
 def make_stream(cls, settings: ServiceSettings, client: ServiceClient):
     relay = RelayStream(name=IStreamObject.DEFAULT_STREAM_NAME)
     relay.input = [InputUrl.make_stub()]
     relay.output = [OutputUrl.make_stub()]
     IStreamObject.fill_defaults(relay)
     return cls(relay, settings, client)
예제 #21
0
 def make_stream(cls, settings: ServiceSettings, client: ServiceClient):
     encode = EncodeStream(name=IStreamObject.DEFAULT_STREAM_NAME)
     encode.input = [InputUrl.make_stub()]
     encode.output = [OutputUrl.make_stub()]
     IStreamObject.fill_defaults(encode)
     return cls(encode, settings, client)
예제 #22
0
 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)
예제 #23
0
 def make_stream(cls, settings: ServiceSettings, client: ServiceClient):
     cat = CatchupStream(name=IStreamObject.DEFAULT_STREAM_NAME)
     cat.input = [InputUrl.make_stub()]
     cat.output = [OutputUrl.make_default_http()]
     IStreamObject.fill_defaults(cat)
     return cls(cat, settings, client)
예제 #24
0
 def make_stream(cls, settings: ServiceSettings, client: ServiceClient):
     cod = CodRelayStream(name=IStreamObject.DEFAULT_STREAM_NAME)
     cod.input = [InputUrl.make_stub()]
     cod.output = [OutputUrl.make_stub()]
     IStreamObject.fill_defaults(cod)
     return cls(cod, settings, client)
예제 #25
0
 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)
예제 #26
0
 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)
예제 #27
0
 def make_stream(cls, settings: ServiceSettings):
     proxy = ProxyVodStream(name=IStreamObject.DEFAULT_STREAM_NAME)
     proxy.input = [InputUrl.make_stub()]
     proxy.output = [OutputUrl.make_stub()]
     IStreamObject.fill_defaults(proxy)
     return cls(proxy, settings)
예제 #28
0
 def make_stream(cls, settings: ServiceSettings, client: ServiceClient):
     cat = CatchupStream(name=IStreamObject.DEFAULT_STREAM_NAME)
     cat.input = [InputUrl(id=InputUrl.generate_id())]
     cat.output = [OutputUrl(id=OutputUrl.generate_id())]
     return cls(cat, settings, client)
예제 #29
0
 def make_stream(cls, settings: ServiceSettings, client: ServiceClient):
     event = EventStream(name=IStreamObject.DEFAULT_STREAM_NAME)
     event.input = [InputUrl.make_stub()]
     event.output = [OutputUrl.make_stub()]
     IStreamObject.fill_defaults(event)
     return cls(event, settings, client)
예제 #30
0
 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)