PyObjC AudioVideoBridging Framework

12.1 · active · verified Tue Apr 14

PyObjC-framework-AudioVideoBridging provides Python wrappers for Apple's AudioVideoBridging framework on macOS, enabling Python applications to interact with AVB-capable hardware and software. It is part of the larger PyObjC bridge, which allows full-featured Cocoa applications to be written in pure Python. The library actively maintains compatibility with the latest macOS SDKs and Python versions, typically releasing updates in sync with new macOS releases.

Warnings

Install

Imports

Quickstart

This quickstart demonstrates how to import the AudioVideoBridging framework and access a fundamental class, `AVBManager`. PyObjC framework wrappers provide direct access to Objective-C classes and methods. Note that PyObjC itself does not include documentation for the wrapped macOS APIs; developers should consult Apple's official AudioVideoBridging documentation for detailed usage of the framework's classes and functions.

import AudioVideoBridging
import Foundation # Often needed for basic Cocoa types

try:
    # Access the shared manager instance for the AudioVideoBridging framework
    # This is a common pattern in Cocoa frameworks.
    manager = AudioVideoBridging.AVBManager.sharedManager()
    print(f"Successfully accessed AVBManager: {manager}")

    # For actual functionality, refer to Apple's AudioVideoBridging documentation.
    # Example (conceptual, requires deeper understanding of AVB framework):
    # interfaces = manager.availableInterfaces()
    # if interfaces:
    #     print("Available AVB Interfaces:")
    #     for interface in interfaces:
    #         print(f"  - Name: {interface.name()}, Entity ID: {interface.entityID()}")
    # else:
    #     print("No AVB interfaces found.")

except Exception as e:
    print(f"Error accessing AudioVideoBridging framework: {e}")

view raw JSON →