Factorize code for auto sized div iframe for video.