Ejemplo n.º 1
0
 def P_webtv(self, request):
     if config.OpenWebif.auth_for_streaming.value:
         session = GetSession()
         if session.GetAuth(request) is not None:
             auth = ':'.join(session.GetAuth(request)) + "@"
         else:
             auth = '-sid:' + str(session.GetSID(request)) + "@"
     else:
         auth = ''
     vxgenabled = False
     if fileExists(getPublicPath("/vxg/media_player.pexe")):
         vxgenabled = True
     transcoding = getHaveTranscoding()
     transcoder_port = 0
     if transcoding:
         try:
             transcoder_port = int(
                 config.plugins.transcodingsetup.port.value)
             if getBoxType() in ("sezammarvel", "xpeedlx3", "atemionemesis",
                                 "mbultra", "beyonwizt4", "hd2400",
                                 "et10000", "et13000", "beyonwizu4",
                                 "sf5008", "x2plus", "formuler1",
                                 "tiviaraplus", "e4hdultra", "protek4k"):
                 transcoder_port = int(config.OpenWebif.streamport.value)
         except StandardError:
             transcoder_port = 0
     return {
         "transcoder_port": transcoder_port,
         "vxgenabled": vxgenabled,
         "auth": auth
     }
Ejemplo n.º 2
0
 def P_webtv(self, request):
     streaming_port = int(config.OpenWebif.streamport.value)
     if config.OpenWebif.auth_for_streaming.value:
         session = GetSession()
         if session.GetAuth(request) is not None:
             auth = ':'.join(session.GetAuth(request)) + "@"
         else:
             auth = '-sid:' + str(session.GetSID(request)) + "@"
     else:
         auth = ''
     vxgenabled = False
     if fileExists(getPublicPath("/vxg/media_player.pexe")):
         vxgenabled = True
     transcoding = TRANSCODING
     transcoder_port = 0
     if transcoding:
         try:
             transcoder_port = int(
                 config.plugins.transcodingsetup.port.value)
             if getMachineBuild() in ('inihdp', 'hd2400', 'et10000',
                                      'et13000', 'sf5008', 'ew7356',
                                      'formuler1tc', 'tiviaraplus',
                                      '8100s'):
                 transcoder_port = int(config.OpenWebif.streamport.value)
         except Exception:
             transcoder_port = 0
     return {
         "transcoder_port": transcoder_port,
         "vxgenabled": vxgenabled,
         "auth": auth,
         "streaming_port": streaming_port
     }
Ejemplo n.º 3
0
 def P_webtv(self, request):
     streaming_port = int(config.OpenWebif.streamport.value)
     if config.OpenWebif.auth_for_streaming.value:
         session = GetSession()
         if session.GetAuth(request) is not None:
             auth = ':'.join(session.GetAuth(request)) + "@"
         else:
             auth = '-sid:' + str(session.GetSID(request)) + "@"
     else:
         auth = ''
     vxgenabled = False
     if fileExists(getPublicPath("/vxg/media_player.pexe")):
         vxgenabled = True
     transcoding = TRANSCODING
     transcoder_port = 0
     if transcoding:
         try:
             transcoder_port = int(
                 config.plugins.transcodingsetup.port.value)
             if BoxInfo.getItem("platform") in (
                     "inihdp",
                     "8100s") or type in ("hd2400", "et10000", "et13000",
                                          "beyonwizu4", "sf5008", "x2plus",
                                          "formuler1", "tiviaraplus"):
                 transcoder_port = int(config.OpenWebif.streamport.value)
         except Exception:
             transcoder_port = 0
     return {
         "transcoder_port": transcoder_port,
         "vxgenabled": vxgenabled,
         "auth": auth,
         "streaming_port": streaming_port
     }