|
Methods defined here:
- __getattribute__(...)
- x.__getattribute__('name') <==> x.name
- eject(...)
- eject() -> None
Eject tray
- getName(...)
- getName() -> name
Return the name of the drive
- getPathName(...)
- getPathName() -> path
Return the path where the drive was mounted if any
- getProperties(...)
- getProperties() -> props
Return properties for a selected ROM as a dictionary
'label' is always set and represent the media volume label
'type' is always set and can be ( { 'DVD' | 'AudioCD' | 'VCD' | 'Data' } )
For DVD it would be:
'titles' list of titles on DVD.
Once title is opened through the open() call,
you may request additional propertirs by calling getProperties() -> props
Properies will be returned as a dictinary with the following members:
'length' length of the title
'video_streams' list of video streams as dictionaries
'audio_streams' list of audio streams as dictionaries
'chapters' list of absolute positions for chapters( to be used in seek )
'seeks' list of pairs( time_sec, seek_pos )
'languages' list of languages for a title as dictionaries
For AudioCD it would be:
'toc' TOC of a disk
'titles' list of title names on a disk( matches TOC )
Once title is opened through the open() call,
you may request additional propertirs by calling getProperties() -> props
Properies will be returned as a dictinary with the following members:
'length' length of the title
For VideoCD it would be:
'titles' -> list of file names for a movie
- isReady(...)
- isReady() -> ready
Returns whether drive is ready or not
- open(...)
- open( name ) -> File
Return file like object mapped to given track.
Track supports following methods:
read( bytes ) -> data
seek( offset, seek_pos ) -> None
close() -> None
tell() -> pos
Data and other attributes defined here:
- __new__ = <built-in method __new__ of type object at 0x01012018>
- T.__new__(S, ...) -> a new object with type S, a subtype of T
|