Media APIs for the multi-platform web