Initial implementation of playback middleware.