Hello,
is it possible to play a flat video full size over the whole browser window?
Example: http://demosthenes.info/samples/polina.html
height should be proportional, but no black borders - it should fit screen.
best regards,
marc
Hello,
is it possible to play a flat video full size over the whole browser window?
Example: http://demosthenes.info/samples/polina.html
height should be proportional, but no black borders - it should fit screen.
best regards,
marc
Hi,
yes, just resize the video accordingly - here a full example:
<layer name="video"
url.flash="videoplayer.swf"
url.html5="videoplayer.js"
videourl="..."
align="center"
enabled="false"
loop="true"
onvideoready="fit_video_image();"
/>
<events name="video_fitting"
onresize="fit_video_image();"
/>
<action name="fit_video_image">
div(video_aspectratio, layer[video].videowidth, layer[video].videoheight);
div(screen_aspectratio, area.pixelwidth, area.pixelheight);
if(video_aspectratio LT screen_aspectratio,
set(layer[video].width, 100%);
set(layer[video].height, prop);
,
set(layer[video].width, prop);
set(layer[video].height, 100%);
);
</action>
Display More
Best regards,
Klaus
Thank you. But now I have borders on left and right side at some window-sizes as you can see in the attached screenshot.
regards,
Marc
Please post a link to your example.
Don’t have an account yet? Register yourself now and be a part of our community!