What are those html code resize videos?

Asked By 50 points N/A Posted on -


Hello techyv,

What are those html code resize videos? Php or html codes that would probably help me resize an uploaded video on my website is a great help. My webpage visitors are leaving suggestions about resizing the uploaded videos over the internet; I have to add this feature to feed my webpage visitors need.

Expecting some help from you guys. Thank you.

Best Answer by Luker Malcom
Answered By 0 points N/A #185902

What are those html code resize videos?


Hi Curtis,

With the invent of html5 the code may be easier to use.But it is still under research stage.If you are sure of how much space is available for embedding your video then you can use this simple codes before uploading.

<embed src=”marry.flv” width=”350″ height=”400″ controller=”true”>

This code will not work if you want to edit at real time.It is a complex programming for own proprietary flash player.

Don't worry, I am suggesting you a simple process through which you can allow visitors to resize player size on iPhone,tab,notebook or other devices.

First install the 'JW player' from its official website and follow the instruction given in the url below.


Hope this answer your query.


Best Answer
Best Answer
Answered By 5 points N/A #185903

What are those html code resize videos?


Hi there!

It would be much better if you will use PHP code instead of HTML because its easier. If you have an embedded video on your website (say the video is from YouTube), try to use this PHP code:

$embeddedVid = ‘<param name="movie" value="http://www.youtube.com/ sample123=en&fs=1"></param><embed src="http://www.youtube.com/v/sample123" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true"></embed>’;
$video = preg_replace('/(width)=("[^"]*")/i', 'width="200"', $embeddedVid);
$video = preg_replace('/(height)=("[^"]*")/i', 'height="300"', $embeddedVid);
echo $video;

Now here is the explanation of the code above:
Your YouTube embedded video is temporarily placed in a file name called ‘embeddedVid’ in PHP. Afterwards you set the width and height of the video and put it on a file name ‘video’ then call it so it will be shown on your web page. Try it out on your website videos and surely your visitors will get delighted on seeing them resized.

Login/Register to Answer

Related Questions