Developer Forum »
Videoplayer - Crop to fill
11 posts

Is it possible to crop to fill a videofile so it use the whole width? I have a video field that is very wide. The customer buys mp4 files that comes in a quite tall format. The video contains some abstract content, so I would like to crop the video so only the middle part of the video is shown in the player. As it is now it does a crop to fit on  the video (se image)

Attachments
31 posts

I don't know if crop to fill is posible with a video. But you can generate an image from the video that fills the whole area:

Article.Image.GetUrl(600, 200); //Width and height HAVE to be even numbers
Article.Image.GetUrl(600, 200, 5.0); //Last variable is percentage into video

But then you have to open the video when the user clicks on the image. For example in a javascript popup.

That doesn't exactly answer your question, but you'll at least be able to show a bigger video player as well as having a thumbnail of which ever size you want.

11 posts

Not quite what I'm looking for.

The video is an abstract video and should be set to autoplay in top of the frontpage

 

Picture 

Attachments
1