Resize the embed tag rather than trimming it.

How to resize an inline tag (for example, how can I resize an img tag)?

Example:

<embed src="1.mp4" width="1280" height="1024" />

This works fine because the original is 1280 x 1024. But if I

<embed src="1.mp4" width="640" height="512" />

Then he cuts the film, and does not determine its size.

+3
source share
1 answer

Is it possible to resize the built-in .mov?

You need an attribute scale="tofit"at the end of your embed tag.

<embed src="1.mp4" width="640" height="512" scale="tofit"/>

In IE 7, 8 when using Quicktime you should add:

<param name="SCALE" VALUE="aspect" >

Otherwise, the video will be cropped.

+7
source

Source: https://habr.com/ru/post/1751238/


All Articles