PyObjC DVDPlayback Framework

12.1 · maintenance · verified Tue Apr 14

The `pyobjc-framework-dvdplayback` library provides Python bindings for the macOS DVDPlayback framework, allowing Python applications to interact with DVD playback functionalities. As part of the broader PyObjC project (current version 12.1), which bridges Python and Objective-C, this specific framework wrapper is now deprecated by Apple. PyObjC generally follows a regular release cadence, updating bindings for new macOS SDKs and Python versions.

Warnings

Install

Imports

Quickstart

This quickstart demonstrates importing and attempting to use a function from the `DVDPlayback` framework. Due to the framework's deprecation by Apple, this example primarily serves to illustrate the import pattern, and its functionality may be limited or non-existent on modern macOS systems or without specific hardware/media. It explicitly notes the deprecation.

from Foundation import NSLog
from DVDPlayback import DVDGetScanRate

# Note: The DVDPlayback framework and its APIs are deprecated by Apple.
# This example is illustrative and may not function on recent macOS versions or 
# without a DVD drive/mounted DVD image.

try:
    scan_rate = DVDGetScanRate()
    NSLog(f"Current DVD scan rate: %{{float}}", scan_rate)
except Exception as e:
    NSLog(f"Failed to get DVD scan rate: %{{@}}", str(e))

view raw JSON →