Skip to content

Commit

Permalink
Moved stuff common to Air[Video|Photo|Tunes|Mirroring] into own folder.
Browse files Browse the repository at this point in the history
  • Loading branch information
tzwenn committed Feb 19, 2015
1 parent 92104ad commit 4374d7b
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 7 deletions.
1 change: 0 additions & 1 deletion air-py

This file was deleted.

File renamed without changes.
Empty file added common/__init__.py
Empty file.
File renamed without changes.
6 changes: 3 additions & 3 deletions main.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#!/usr/bin/env python

import register
import threading

import BaseHTTPServer

import common.register

def runServer(port, handler):
try:
httpd = BaseHTTPServer.HTTPServer(('', port), handler)
Expand All @@ -13,7 +13,7 @@ def runServer(port, handler):
pass

def main():
register_thread = threading.Thread(target=register.registerAirPlay)
register_thread = threading.Thread(target=common.register.registerAirPlay)
register_thread.setDaemon(True)
register_thread.start()

Expand Down
6 changes: 3 additions & 3 deletions mirror/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,20 @@
import fply
import config
import h264decode
import AirPlayHandler
import FrameSink

import common.AirPlayHandler
import mirror.Packet
import mirror.Cryptor

class MirrorService(AirPlayHandler.AirPlayHandler):
class MirrorService(common.AirPlayHandler.AirPlayHandler):
server_version = "%s/%s" % (config.server_name, config.server_version)
protocol_version = "HTTP/1.1"
decoder_cls = h264decode.Decoder

def setup(self):
self.fply = fply.FPLY()
AirPlayHandler.AirPlayHandler.setup(self)
common.AirPlayHandler.AirPlayHandler.setup(self)

def do_GET(self):
if self.path == "/stream.xml" and self.checkAuth():
Expand Down

0 comments on commit 4374d7b

Please sign in to comment.