Generate iframe based on vid attribute