feature: add programmatic API to media query processing.