Start
|
Scan, Pair and Connect
|
Device Information
|
Control
|
Power Management
|
Features
|
Metadata
|
Listeners
|
Stream
|
Storage
|
Apps
|
Audio
|
Keyboard
|
Logging
|
Examples
Examples
There are a few example bundled with pyatv in the examples
subdirectory:
Filename | Description |
---|---|
auto_connect.py | Demonstrates the simple auto_connect helper. |
connect_with_credentials.py | Restores credentials for a device before connecting. |
manual_connect.py | Manual creation of a configuration used to connect to a device. |
pairing.py | Generic example demonstrating the pairing API. |
play_url.py | Play a video from URL using AirPlay. |
scan_and_connect.py | Scans for devices, picks the first one and connects to it. |
storage.py | Connect to a device using storage API. |
stream.py | Stream audio file to an AirPlay/RAOP receiver. |
tutorial.py | Complete source code of tutorial. |
These scripts that are bundled with pyatv can be used for inspiration as well:
More examples can be added on request, please write an issue if you want something more specific.