this code generates a resposive video frame