View Full Version : Issue in Re-sizing the embedded video player received from the server

12 Jan 2012, 5:01 AM

I have an <iframe> tag consisting of an embedded video player that is received from the server.
The problem is, I am unable to resize this player on my panel. It gets stretched and goes beyond the panel's width & height.

Options that I tried out :-

Obtain the device's size (height and width). Calculate the player's height and width to be 60% of the device's size. Assign the width and height attributes to the <iframe> tag.
Made use of the <table> tag. Assigned the width to be 60%. Placed the iframe tag in this table.

The first option works fine when it comes to displaying it on a machine/tablet. It fails in case of a mobile device.
Thanks in advance.


12 Jan 2012, 7:02 AM
Why do you have it in an iframe?

12 Jan 2012, 7:31 AM
This is how I receive the embedded player from the server. Cannot change it.

12 Jan 2012, 7:38 AM
The issue is the video needs to be sized properly to the document body within the iframe. If you can get the source of the video then you can use it outside of the iframe which is preferred.