Adding a flex-video wrapper function