audio_policy_player

Example of the component jason-mao/av_processor v0.7.0
# audio_policy_player

This example is a focused console case for the `audio_play_*` priority policy.

It opens:

- one `base` playback handle, bound to mixer together with one feeder handle
- one `high` playback handle with a priority higher than `base`
- one `low` playback handle with a priority lower than `base`

Console commands:

- `play <base|high|low> <url>`
- `stop <base|high|low|all>`
- `pause <base|high|low>`
- `resume <base|high|low>`
- `focus <playback|feeder|balanced>`
- `feeder <on|off|status>`
- `feeder_path <path>`
- `wifi <ssid> <password>`
- `wifi status`
- `wifi disconnect`
- `status`

Suggested checks:

- start `play base <url>`
- then start `play high <url>` and confirm it preempts the base/mixer playback path
- start `play low <url>` while `base` or `high` is active and confirm it does not win output focus
- use `feeder on` to start the PCM feeder loop and verify player-vs-feeder policy behavior
- connect Wi-Fi first when using HTTP or HLS URLs

To create a project from this example, run:

idf.py create-project-from-example "jason-mao/av_processor=0.7.0:audio_policy_player"

or download archive (~39.47 KB)