VE-1598: Move mediaLoaded handler to constructor