core: move autoPlayVisible codebase from media control to core (refs #175)