Forum Support

 
Advanced Search


[1]

Offline danab
Free Member
Posts: 49

Hi,

The corporate video is playing fine and displaying fine on my laptop, computer and everything (talking about Width and Length)., however, when i load the page on my mobile the size of the video goes far off. Meaning the website length is fine and all vertical, but on a mobile it stretches off the actually website length.

Any way i can add code that it will stick to the size it is meant to be on both mobile and desktop?

This is my current code i use in my module:

<iframe width="1519" height="650" src="https://www.youtube.com/embed/v0c3AGv9PTc" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen="allowfullscreen"></iframe>

I found that width (above referred to as length) was perfect at 1519 pixels... On mobile the video height is not insanely high but the width is.

Please can you assist.

Best regards,
Daniel Booysen
Logged

Offline mikek
Free Member
Posts: 28743 WWW

Hello,

We don't provide support on setting up your own content. You are setting up an iframe with a specific height and width call, which means it will always be that size and will be cut off on small screens or distorted. Iframes are never good to use on responsive websites. You can try removing the height and call and set the width to 100%, but it most likely won't work as iframes need a height. You should consider a different way to integrate videos. We give instructions for that here:

http://www.shape5.com/demo/hexa_corp/index.php/features-mainmenu-47/continued-vertex-features/typography

You can wrap your code above in a div with the class "s5_video_container".
Logged

Offline danab
Free Member
Posts: 49

Thanks Mike will get back to you if i struggle
Logged
[1]

Jump to:  


Powered by SMF | SMF © 2013, Simple Machines
Joomla Bridge by JoomlaHacks.com
Page created in 0.019 seconds with 20 queries.
Need some help getting your site up and running? Be sure to check out our tutorials area, post on the forum or hire us
Send Us An Email
Please send us your questions and we will email you back as soon as we can. Product support questions should be posted in our support forums under the Help menu. Our staff will assist you from there.