Skip to content

Commit

Permalink
add ForceDirectPlay, ForceTranscoding to Settings
Browse files Browse the repository at this point in the history
  • Loading branch information
iBaa committed Apr 27, 2013
1 parent 51d261a commit f2b1ef1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
9 changes: 8 additions & 1 deletion Settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,11 @@ def getIP_aTV():
return '192.168.178.22' # todo: how about more than one aTV?

def getIP_DNSmaster(): # Router, ISP's DNS, ...
return '192.168.178.1'
return '192.168.178.1'

# AppleTV capabilities
def getForceDirectPlay(): # if true, this has higher priority than transcoding
return True

def getForceTranscoding():
return False
4 changes: 3 additions & 1 deletion XMLConverter.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,9 @@ def XML_processMEDIAPATH(params, src):

# check "Media' element and get key
if el!=None:
if el.get('container','') in ("mov", "mp4") and \
if Settings.getForceDirectPlay()==True or \
Settings.getForceTranscoding()==False and \
el.get('container','') in ("mov", "mp4") and \
el.get('videoCodec','') in ("mpeg4", "h264") and \
el.get('audioCodec','') in ("aac", "ac3"):
# native aTV media
Expand Down

0 comments on commit f2b1ef1

Please sign in to comment.