Add first pass at play-when-visible plugin. No UI yet.