Exemple #1
0
    def __init__(self):
        # This is to verify against some needed variables
        import mkchromecast.__init__
        self.platform = mkchromecast.__init__.platform
        self.tray = mkchromecast.__init__.tray
        self.select_device = mkchromecast.__init__.select_device
        self.debug = mkchromecast.__init__.debug
        self.backend = mkchromecast.__init__.backend
        self.adevice = mkchromecast.__init__.adevice
        self.source_url = mkchromecast.__init__.source_url
        self.discover = mkchromecast.__init__.discover
        self.host = mkchromecast.__init__.host
        self.device_name = mkchromecast.__init__.device_name
        self.hijack = mkchromecast.__init__.hijack
        self.tries = mkchromecast.__init__.tries
        self.port = str(mkchromecast.__init__.port)
        self.title = 'Mkchromecast v' + mkchromecast.__init__.__version__

        self.ip = utils.get_effective_ip(self.platform, host_override=self.host)
Exemple #2
0
    def __init__(self):
        # This is to verify against some needed variables
        import mkchromecast.__init__
        self.platform = mkchromecast.__init__.platform
        self.tray = mkchromecast.__init__.tray
        self.select_device = mkchromecast.__init__.select_device
        self.debug = mkchromecast.__init__.debug
        self.backend = mkchromecast.__init__.backend
        self.adevice = mkchromecast.__init__.adevice
        self.source_url = mkchromecast.__init__.source_url
        self.discover = mkchromecast.__init__.discover
        self.host = mkchromecast.__init__.host
        self.device_name = mkchromecast.__init__.device_name
        self.hijack = mkchromecast.__init__.hijack
        self.tries = mkchromecast.__init__.tries
        self.port = str(mkchromecast.__init__.port)
        self.title = 'Mkchromecast v' + mkchromecast.__init__.__version__

        self.ip = utils.get_effective_ip(self.platform, host_override=self.host)
Exemple #3
0
input_file = mkchromecast.__init__.input_file
res = mkchromecast.__init__.resolution
seek = mkchromecast.__init__.seek
debug = mkchromecast.__init__.debug
source_url = mkchromecast.__init__.source_url
encoder_backend = mkchromecast.__init__.backend
screencast = mkchromecast.__init__.screencast
display = mkchromecast.__init__.display
vcodec = mkchromecast.__init__.vcodec
host = mkchromecast.__init__.host
port = mkchromecast.__init__.port
loop = mkchromecast.__init__.loop
mtype = mkchromecast.__init__.mtype

ip = utils.get_effective_ip(platform,
                            host_override=host,
                            fallback_ip="0.0.0.0")

try:
    if input_file[-3:] == "mkv":
        mkv = True
    else:
        mkv = False
except TypeError:
    mkv = False

try:
    youtube_url = mkchromecast.__init__.youtube_url
except AttributeError:
    youtube_url = None