Python_2  1.0
Functions | Variables
mplayerdvd Namespace Reference

Intended to play dvd discs using mplayer. More...

Functions

def getLocale ()
 
def getParam (p)
 
def readDir (dir)
 
def playdvd (device, chp)
 
def playvcd (device, chp)
 
def getExt (fname)
 
def main (argv=None)
 

Variables

list validDevices
 
list validFileTypes
 

Detailed Description

Intended to play dvd discs using mplayer.

$1 is the dvdplayer device. $2 is the chapter to be played.

Author
Paulo Roma
Since
Jul 31th 2009

Function Documentation

◆ getExt()

def mplayerdvd.getExt (   fname)
Returns fname extension.

Referenced by main().

◆ getLocale()

def mplayerdvd.getLocale ( )
Returns the current locale (language,charcode).

Referenced by main().

◆ getParam()

def mplayerdvd.getParam (   p)
Return the device and chapter number.

Referenced by main().

◆ main()

def mplayerdvd.main (   argv = None)

◆ playdvd()

def mplayerdvd.playdvd (   device,
  chp 
)
Plays a DVD on device starting at chapter \'chp\'.

References _12a_poly.exit().

Referenced by main().

◆ playvcd()

def mplayerdvd.playvcd (   device,
  chp 
)
Plays a VCD on device starting at chapter \'chp\'.

Referenced by main().

◆ readDir()

def mplayerdvd.readDir (   dir)
Performs the equivalent of "ls -l dir/*".

Referenced by main().

Variable Documentation

◆ validDevices

list mplayerdvd.validDevices
Initial value:
1 = ['sr0', 'sr1', 'sr2', 'rdisk1', 'hda',
2  'hdb', 'hdc', 'cdrom', 'cdrom1', 'dvd', 'dvd1']

◆ validFileTypes

list mplayerdvd.validFileTypes
Initial value:
1 = ['.cda', '.flac', '.mp3', '.m3u', '.mod', '.ogg',
2  '.pls', '.s3m', '.wav', '.xm',
3  '.avi', '.flv', '.mkv', '.mov', '.mp4', '.mpeg',
4  '.mpg', '.ogm', '.VOB', '.wma', '.wmv']