Embed Video so that it resizes when viewed on Mobile device

Tagged: 

ThemeBurn SupportForumsOpenCart ThemesPavilion OpenCart ThemeEmbed Video so that it resizes when viewed on Mobile device

This topic has been marked as resolved.

Hi there

Could you tell me how to embed a video that will resize automatically to fit a mobile device.

The videos I have are held on my server and I use the following code:

<div>
<video controls="controls" poster="http://www.now-vaping.co.uk/image/data/poster-name.JPG"><source src="http://www.now-vaping.co.uk/images/video-name.mp4" type="video/mp4" /> Your browser does not support video</video>
</div>

Works fine on a laptop / desktop but when viewed on a mobile the image / video is huge and goes off the screen (ie: it is not resizing)

Any ideas? Am I using the wrong code or is there some CSS I need to use? I thought that the image / video would resize automatically as the theme is responsive.

Thanks in advance

December 11, 2014 at 8:29 pm #35483
You will need to register in order to post topics and read replies in the ThemeBurn.com support forums!
December 12, 2014 at 10:04 am #35511

worked a treat – thank you

December 12, 2014 at 2:49 pm #35544

Glad we’ve helped :)

BR,
ThemeBurn team

December 15, 2014 at 11:09 am #35596
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.